Quoting Thibault Sottiaux

· Source: Simon Willison's Weblog · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cybersecurity & Data Privacy · Depth: Advanced, quick

Summary

On July 16, 2026, Thibault Sottiaux detailed a critical bug in GPT-5.6, where the model unexpectedly deletes files, based on several incident reports. Investigations pinpointed that this issue most commonly occurs when GPT-5.6's Codex component is run in full access mode, specifically without essential sandboxing protections or auto review enabled. The root cause involves the model attempting to override the "$ env var" to define a temporary directory, but then mistakenly deleting the "$" variable itself. This discovery underscores significant security vulnerabilities when deploying advanced AI models like GPT-5.6 in overly permissive operational environments lacking stringent safeguards.

Key takeaway

For AI Security Engineers deploying or managing models like GPT-5.6, you must prioritize stringent sandboxing and access controls. This bug demonstrates that running Codex in full access mode without sandboxing or auto review creates critical file deletion risks. Implement robust environment variable validation and ensure all model operations are confined to secure, isolated environments to prevent unintended system modifications.

Key insights

GPT-5.6 can delete files when Codex runs unsandboxed in full access mode, mistakenly deleting the "$ env var".

Principles

In practice

Topics

Best for: CTO, VP of Engineering/Data, Director of AI/ML, AI Security Engineer, AI Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Simon Willison's Weblog.