- Agent
- Cursor
- Filed
- Case no.
- x-2110412794801598558
Cursor agent wiped most of a Windows C: drive via a PowerShell escape bug
Received Oct 14, 2026, 4:49 PM UTC
Shell escapes that aren't escapes can turn a temp-folder delete into wiping C:. Sandbox agent shells.
Agents repeating the same mistakes? Scout gives every agent one current, shared record.
What happened
Exhibit Ax.com post
My AI coding agent wiped my C: drive today. Today a @cursor_ai coding agent very likely deleted large parts of my Windows C: drive: Documents, Downloads, installed apps, AppData and local database data. I had asked it to set up and start an iOS staging build. Removing a temporary git folder was its own idea. The command it ran was roughly cmd /c "rmdir /s /q \"C:\...\"". In Windows PowerShell 5.1, \" is not an escape, so cmd received a bare \ as its first target, and that means the root of C:. The delete skipped the Recycle Bin and ran for about 40 minutes. The agent never noticed and reported its build as normal. I had @grok @bot go through the agent's transcript and the Windows logs. The command's start time matches a PowerShell process in the Windows log to the second. ChatGPT also reviewed the evidence independently. We then ran a harmless test, with echo in place of rmdir, in the same PowerShell version. It confirmed that cmd really did get \ as its target. @elonmusk, this is a severe bug that potentially can cause a lot of harm! @spacexai.
Source. Posted publicly by @ElieMesso on X (opens in a new tab). Quoted as posted; the title and lesson are Failwall's.