Codex 加强防护,降低误删用户文件风险
OpenAI Codex 团队表示,GPT-5.6 在少数情况下可能执行超出用户要求的破坏性操作。团队已升级临时目录处理、删除命令审查、权限控制和自动审查机制。
Codex 团队披露,近期调查发现,GPT-5.6 在执行任务时偶尔会错误处理临时文件清理操作,极端情况下可能将目标指向用户文件,而不是临时目录。问题还包括在删除或覆盖临时路径前未充分确认其现有内容。
团队已增加多层防护,包括要求模型使用新的临时目录、避免复用系统环境变量、执行删除前检查目标,并在范围不明确时停止操作。高风险删除命令会接受更严格的执行检查,Full access 权限也增加了提示和限制,Auto-review 也进行了更新。
团队称,针对历史失败案例的回放评测显示,相关改动显著降低了此类行为,同时保留了正常编码任务的完成能力。用户被建议及时更新 Codex,并优先使用“请求批准”或“代为批准”沙盒模式;Full access 仅适用于可信且具备恢复能力的环境。
来源证据
OpenAI Codex Rolls Out Protections Against Destructive ...digg.com · supportingThe team investigated reports of GPT-5.6 performing actions outside its intended work. The changes add multiple layers of protection. Engineer Dax Raad
Codex Security: now in research previewopenai.com · supportingfalse positive rates on detections have fallen by more than 50% across all repositories. These improvements help Codex Security better align reported severity with real-world risk and reduce unnecessary triage burden for security teams, and we expect the signal-to-noise ratio to continue to improve. [...] Formerly known as Aardvark, Codex Security began last year as a private beta with a small group of customers. In early internal deployments, it surfaced a real SSRF, a critical cross-tenant authentication vulnerability, and many other issues which our security team patched within hours. Early deployments with external testers helped us improve how users provide relevant product context and move from onboarding to securing their code. We also significantly improved the quality of our findings over the course of the beta: scans on the same repositories over time show increasing precision, in one case cutting noise by 84% since initial rollout. We’ve reduced the rate of findings with o
OpenAI Codex Update Reduces Risk of Destructive Actionslinkedin.com · supportingRecapping some changes we have rolled out over the last couple of weeks that have further reduced the risk associated to potentially destructive
Codex Security, One Month Later | Michael Banksmichaelbanks.org · supporting## Fewer findings, better signal The headline number changed from 11 findings in June to 4 findings in July. I would not frame that as "Codex Security got better because the number went down." That is too simple. The codebase changed during the month, and I had already fixed or reduced several classes of risk. The more interesting part was that the July run felt better calibrated. The findings clustered around practical application-security themes: public workflow abuse controls, safe rendering of metadata, and safer handling of URLs and filesystem writes in maintenance tooling. I am intentionally keeping that description high-level because the goal of this post is not to publish a playbook for the specific issues. [...] That may sound like a small UI change, but it made the scan easier to trust. Security reviews have a lot of quiet time. When the tool tells you what phase it is in, you spend less time wondering whether it is stuck and more time waiting for the right handoff point.
Paul Solt on X: "Codex can do bad things by accident. Back ...x.com · supportingRecapping some changes we have rolled out over the last couple of weeks that have further reduced the risk associated to potentially
Tibo on X: "Hi! Recapping some changes we have rolled out over the last couple of weeks that have further reduced the risk associated to potentially destructive actions being performed by Codex during its work. A few weeks ago, we started investigating a small number of reports where GPT-5.6 in … / Xx.com · supportingadded clearer warnings, and further restricted especially risky permission combinations. - We updated Auto-review to better identify destructive actions. - We built targeted evaluations that replay the failures we observed. We’re also adding reinforcement-learning tasks and graders focused on these risks, and filtering destructive actions from training data. In those replay evaluations, the changes substantially reduced the behavior while preserving Codex’s ability to complete normal coding work. Two things to do on your end: - Keep the Codex app up to date. We are always improving safety, performance and many other things. - Use one of the sandbox modes: "Ask for approval" or "Approve for me". Only use Full access for environments you trust and can recover. Thanks and happy Codexing out [...] added clearer warnings, and further restricted especially risky permission combinations. - We updated Auto-review to better identify destructive actions. - We built targeted evaluations that repl