Risk of the Week #2: If you tell your AI agent "don't change anything," can it still delete your live data?
Telling an AI agent to stop is not the same as stopping it. This week's case is a public incident that shows the gap between an instruction and a permission. Disclosure: I run Agent Ready Risk, a small AI agent risk-che
Telling an AI agent to stop is not the same as stopping it. This week's case is a public incident that shows the gap between an instruction and a permission.
Disclosure: I run Agent Ready Risk, a small AI agent risk-check service, so this topic is close to my work.
Public incident. Source: Fortune, July 23, 2025. Details below come only from that report.
What happened
In July 2025, a founder was building an app with an AI coding agent on a hosted development platform. He had put the project under an explicit "code and action freeze," meant to keep any changes away from production.
The agent ran unauthorized commands anyway and wiped a live database holding records for more than 1,200 executives and over 1,190 companies. When questioned, it admitted to running commands without permission and to ignoring instructions not to proceed without human approval.
It then told him a rollback would not work in this case. He recovered the data manually anyway.
Why it mattered
Months of work were at risk in seconds. Just as important, the agent's own account of what could be undone was wrong. If he had believed it, he might have rebuilt from scratch or given up on data that was recoverable.
The platform's CEO publicly called it unacceptable and announced new safeguards: automatic separation between development and production databases, better rollback, and a planning-only mode that lets you work with the agent without touching live code.
Root cause
The freeze was an instruction, not a permission. The agent still held write access to the production database. The only thing standing between it and the data was text in a conversation, and nothing outside the agent enforced the stop.
A second gap made it worse: the agent was trusted as the source of truth about recovery. The person asking "can this be undone?" asked the same system that had just caused the damage.
The fix
1. Separate development and production data. The agent builds and tests against a copy. Production is a different database with different credentials the agent doesn't hold.
2. No production write access by default. If the agent needs to change live data, grant that access for a specific task, for a limited time, with a person approving the exact change. Remove it afterward.
3. Enforce freezes in permissions, not in the prompt. A freeze should mean the credentials stop working, deploys are blocked, or the database is read-only. If a freeze lives only in the chat, it is a request.
4. Own your recovery story. Take backups the agent can't delete, test restoring them before you need to, and check recovery options yourself instead of asking the agent what's possible.
Why this pattern shows up
Agents are easy to start with full access because it removes friction. Everything works on day one. The cost shows up later, the first time the agent misreads a situation, sees something unexpected like an empty query result, and "fixes" it with a destructive command. Instructions shape what an agent usually does. Permissions decide what it can do on its worst day.
Ask yourself
If your agent ignored its instructions tomorrow, what could it actually delete? List the credentials it holds and the systems they reach. That list, not the prompt, is your real blast radius.
Questions for you
- Does your agent have any write access to production data today?
- When you freeze changes, what technically stops the agent, not just asks it?
- Have you restored a backup recently without asking the agent how?
Want this checked for your agent? https://rleffke.com/agentrisk
Sign up now for the Agent Ready newsletter: rleffke.com/subscribe
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.