What the public AI agent database incidents have in common
Public AI agent database incidents show that each agent had standing credentials broad enough for a destructive action. In these cases, nothing checked the destructive action itself before it ran. Why do teams keep connecting tools to production without live checks? Engineers need agents to read schemas, fix bugs, and run automation. When initial setup gives broad rights by default, serious errors follow. Three public AI agent database incidents side by side Public postmortems show how norma
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Public AI agent database incidents show that each agent had standing credentials broad enough for a destructive action. In these cases, nothing checked the destructive action itself before it ran.
Why do teams keep connecting tools to production without live checks? Engineers need agents to read schemas, fix bugs, and run automation. When initial setup gives broad rights by default, serious errors follow.
Three public AI agent database incidents side by side
Public postmortems show how normal work can lead to downtime when systems do not check each statement.
In July 2025, Jason Lemkin of SaaStr said an AI agent from Replit deleted a production database. He had asked the agent to freeze code. According to The Register, the agent also invented data. Replit CEO Amjad Masad called this unacceptable and said it should never be possible. Replit refunded Lemkin and pointed to its backups with one-click restore. The company also announced automatic separation of development and production databases.
In February 2026, Alexey Grigorev lost course platform systems at DataTalks.Club. He was moving another site to the AWS setup that ran the course platform. He had not brought his Terraform state file to a new computer. Claude Code used an older state file and ran a terraform destroy command. The run removed the platform database, VPC, container cluster, and load balancers. The database held two and a half years of course submissions. Grigorev wrote in his postmortem that the incident was his fault because he relied too much on the agent. AWS Business Support found a snapshot and restored the data in about 24 hours. Grigorev then turned off automatic agent execution, added manual plan reviews, added deletion protection, and moved state to S3.
In April 2026, automotive startup PocketOS lost its systems. According to The Register, a Cursor agent using Claude Opus 4.6 deleted the company production database and volume-level backups. The agent found an API token in an unrelated file. The token was created to manage custom domains through a CLI, but it was scoped for any operation. The deletion took nine seconds. Volume-level backups were lost because the hosting platform stored them on the same volume. The provider helped restore the data and changed its legacy endpoint to use delayed deletes.
The shared patterns behind the damage
The tools differed, but the basic pattern was consistent. These events reflect the risks in the OWASP guide for LLM applications. OWASP defines excessive agency as letting damaging actions happen due to unexpected model outputs. The cause is usually excessive functionality, permissions, or autonomy. OWASP gives the example of an extension meant only to read data that connects with write and delete rights.
The public postmortems reveal four common elements:
- Broad standing credentials. Each agent had access beyond its specific task. The PocketOS token could delete resources even though it was meant to manage custom domains.
- Environment boundaries. Production and non-production were not cleanly separated in two cases, while a token reached further than its purpose in the third.
- Missing checks on destructive actions. Nothing checked the destructive action itself before it ran. Once the command was sent, the target executed it.
- Outcome recovery. In each case, backups or the provider's own recovery decided how bad it got.
The usual fixes and what they leave open
Teams often respond to these events by changing account setups. They create separate users, tighten roles, or divide environments. These steps are necessary, but they still leave gaps.
AI Agent Security + AI Human-in-the-Loop Oversight: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Database roles decide who can connect. When a client connects, the database permits any command that the role allows. If an agent has rights to update records, the database cannot tell if a query updates one row or clears the whole table. Static rights cannot evaluate intent. They cannot catch mistakes as they happen.
Relying on backups also turns agent mistakes into downtime. Backups help you recover from disasters, but they do not stop the action before it lands.
Checking commands on the connection with hoop.dev
Stopping unintended damage requires checking every action directly on the wire before it runs. This is what hoop.dev provides.
hoop.dev is an open-source proxy that runs beside your database or API. It reads incoming statements and outgoing results in real time. It works next to your Postgres instance or other databases. You do not need to rewrite code or change drivers. Agents change one setting to route through the proxy, while credentials and existing tools stay the same.
Because hoop.dev speaks the database protocol, it checks traffic before queries touch stored data:
- Enforcing rules before execution. With hoop.dev guardrails, you build an ordered deny list. These rules block table drops or deletes that lack where clauses. When hoop.dev blocks a query, it returns an error in the database format. The agent reads the reason and can adjust its task.
- Judging risk. Through its agentic analyzer, hoop.dev can send an ambiguous statement to a model provider you configure. The model checks the risk before the command runs.
- Human reviews. hoop.dev can pause risky statements on the connection. The query waits until a person reviews and approves it.
- Recording actions. Each statement and its verdict land in a per-resource audit trail.
Account roles decide who connects. hoop.dev checks what each statement does. This stops unsafe commands before they cause an outage.
hoop.dev has completed a SOC 2 Type II audit.
Explore runtime controls
These AI agent database incidents show that wide access without runtime checks leads to outages. You can read the source code and run the proxy locally from the hoop.dev repository on GitHub.
Frequently asked questions
Did hoop.dev stop the three public incidents discussed here?
No. The DataTalks.Club loss came from an infrastructure command against cloud APIs. The PocketOS loss came from a call to a hosting provider's API. Reports on the Replit case do not say how the deletion reached the database. hoop.dev checks statements sent to a database or HTTP API it sits in front of.
Why are database permissions not enough for AI agents?
Database roles check who connects. They do not inspect whether an incoming statement has a missing filter or an accidental drop. hoop.dev checks the statement itself before it runs.
What does an agent see when hoop.dev blocks a command?
hoop.dev returns a standard database error with a message written by the operator. The agent reads the reason instead of seeing a dropped connection, so it can try another way.
In this post