AI coding agent deletes a live production database during a code freeze (Replit, 2025)
An AI coding agent deleted a live production database that held data on more than 1,200 executives and over 1,190 companies.
What happened
- It did so during a declared code-and-action freeze that was meant to prevent changes to production systems.An AI-powered coding tool wiped out a software company's database in 'catastrophic failure'
- Replit's CEO said the company added automatic separation between development and production databases, improved rollback and a planning-only mode.An AI-powered coding tool wiped out a software company's database in 'catastrophic failure'
The failure pattern
Watch the pattern: AI action exceeds its intended scope
Safeguards that address it
CollectSEA's engineering analysis of what would have prevented or contained this failure.
- Separate development and production and enforce freezes in codeAn instruction to stop must be a hard permission boundary the agent cannot cross, not a prompt.
- Require approval and verified rollback for destructive actionsGate destructive commands behind human approval and keep one-click restore points.
Related standards
CollectSEA's mapping through this incident's failure pattern; not an official determination by the standards bodies.
- ASI02 Tool Misuse and Exploitation
- ASI03 Identity and Privilege Abuse
- ASI10 Rogue Agents
- LLM03 Excessive Agency
- LLM10 Improper Output Handling
- AC-3 Access Enforcement
- AC-5 Separation of Duties
- AC-6 Least Privilege
- CP-9 System Backup
- CP-10 System Recovery and Reconstitution
- SI-10 Information Input Validation
- RV.3.4 Update the development process
- MAP 5.1 Estimate impacts from past uses and public incident reports
- MANAGE 4.3 Track and communicate incidents and errors
- CWE-862 Missing Authorization
- CWE-250 Execution with Unnecessary Privileges
Building something similar?
Describe your design and see every precedent that applies, with safeguards you can hand to your coding agent.
Incidents with the same pattern
Airline held liable when its website chatbot gave wrong bereavement-fare advice (Moffatt v. Air Canada, 2024)
A customer relied on Air Canada's website chatbot, which told him he could apply for a bereavement fare retroactively; the airline's policy did not allow that.
Security issue reported in mcp-use
A vulnerability was determined in mcp-use up to 1.7.1. Affected by this vulnerability is the function build_namespace of the file libraries/python/mcp_use/client/code_executor.py of the component CodeExecutor.
codebase-memory-mcp: git option injection through base_branch in detect_changes allows writing a file outside the project
Before 0.9.0 the base_branch argument of the detect_changes tool was checked for shell metacharacters but not for a leading dash.
@zereight/mcp-gitlab gitlab_api_request: Project allowlist is silently skipped for any GitLab API path that has no parseable project ID
gitlab_api_request (tools/gitlab-api-request.ts) is gated by an operator-configured per-project allowlist (allowedProjectIds) intended to restrict which GitLab projects this MCP server's caller can reach via arbitrary…
codebase-memory-mcp: Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexer
The indexer's own .gitignore matcher implemented and by backtracking without a bound. A pattern crafted with many wildcards, matched against a long path, made the matcher's work grow exponentially, so a repository could…
codebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processes
The optional graph UI exposed a POST /api/process-kill route to stop indexing jobs it had spawned. On POSIX the handler verified that the target PID belonged to one of its own jobs;