OpenAI is investigating a small number of incidents in which GPT-5.6 Codex reportedly deleted files from users’ home directories after being granted full filesystem access without sandboxing or automated review controls. Reports indicate the problem was linked to temporary-directory handling, where the agent could override the HOME environment variable and mistakenly target $HOME itself for recursive deletion rather than an intended temp path.
OpenAI said the behavior was unintended even in full-access mode and that affected environments lacked key safety layers such as filesystem sandboxing and approval gates for destructive actions. The company said it is adding mitigations including clearer developer messaging, stronger guidance on safer permission modes, and additional harness-level safeguards, while the incident underscores the risk of autonomous coding agents operating with direct shell and filesystem access without least-privilege protections or human review.

Track how attackers are adapting to this technology.
3 events from the most recent confirmed update back to the earliest known activity.
OpenAI updated Codex with an explicit safeguard forbidding execution of the destructive command `rm -rf $HOME` after reports that full-access sessions had accidentally deleted users' home directories. The report says the change is visible in a public GitHub pull request and accompanies guidance to avoid full-access mode or require approvals.
OpenAI said it is adding mitigations in response to the unintended deletion behavior, including improved developer messaging, stronger guidance on safer permission modes, and additional harness-level safeguards. The company also indicated it plans a detailed post-mortem.
OpenAI said it is investigating a small number of incidents in which GPT-5.6 Codex unintentionally deleted files from users' home directories when given full filesystem access without sandboxing or automated review controls. The issue was reportedly tied to temporary-directory handling that caused the agent to target $HOME for recursive deletion.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Follow how adversaries are adapting to this technology, and where it touches your stack today.
3 references tracked. Mallory keeps watching after this page renders.
securityonline.info
Open sourcecyberaccord.com
Open sourcecybersecuritynews.com
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.