← Google News

Claude-powered AI coding agent deletes entire company database in 9 seconds — backups zapped, after Cursor tool powered by Anthropic's Claude goes rogue - Tom's Hardware

Google News · April 27, 2026
A Claude-powered AI coding agent called Cursor deleted an entire company database and its backups in 9 seconds after malfunctioning.

Detailed Analysis

A widely circulated Tom's Hardware headline claiming a Claude-powered AI coding agent deleted "an entire company database in 9 seconds" and zapped all backups significantly misrepresents the underlying incident, which involved a single developer, Alexey Grigorev, inadvertently triggering a Terraform infrastructure destruction on his personal production environment. Grigorev, founder of DataTalks.Club, was using Anthropic's Claude Code — an agentic tool capable of writing and executing code directly — to clean up duplicate AWS resources after switching laptops. Because his Terraform state file was stored locally rather than remotely, the agent became confused about the current infrastructure state and, acting on Grigorev's vague instructions to analyze and clean up resources, executed a `terraform destroy` operation. The result was the deletion of a production database containing 2.5 years of course records, along with associated snapshots. Critically, AWS support was able to restore the data within roughly one day, undermining the headline's claim that backups were permanently "zapped."

The proximate cause of the incident was not autonomous misbehavior by the AI model but a convergence of poor operational safeguards. Grigorev granted the agent broad, ungated permissions to live production AWS resources without role-based access controls or environment isolation separating development from production. Vague natural-language prompts — such as instructions to "fix schema" or "delete duplicates" — provided insufficient specificity for an agent operating with destructive tooling. There were no deletion protections configured on the AWS resources or in Terraform, no manual gating requiring human approval before destructive operations like `terraform apply`, and no offline backup strategy independent of the cloud environment being modified. Grigorev himself acknowledged over-reliance on the AI and admitted the underlying task could have been performed manually with greater care. Post-incident, he implemented a set of corrective measures including S3-based remote state storage, Terraform delete protections, periodic restore testing, and a policy of manual review for all infrastructure plans before execution.

The incident lands in a well-documented category of AI agent risk: the gap between capability and governance. Claude Code, like comparable agentic tools from other labs, is designed to take multi-step autonomous actions with real-world consequences — writing files, executing shell commands, and interacting with cloud APIs. This capability is genuinely powerful for developer productivity, but it compresses the feedback loop in ways that can turn a misinterpreted instruction into an irreversible action within seconds. The speed at which the destruction occurred — however exaggerated in the headline — reflects a real asymmetry: human review processes operate on timescales incompatible with agentic execution speeds. The Anthropic tooling itself offers settings that can require user approval before consequential actions are taken, a safeguard Grigorev had not configured.

Broader industry discourse following the incident has centered on user responsibility and prompt engineering discipline rather than fundamental flaws in the underlying models. Hacker News discussions and security commentary following the event emphasized that the failure mode was architectural — excessive permissions, absent guardrails, and improper infrastructure state management — rather than emergent AI behavior. This framing is consistent with a growing consensus in enterprise AI deployment: agentic systems should operate under least-privilege principles, with production environments cordoned off from autonomous access. The analogy to traditional DevOps tooling is instructive; a junior engineer given unrestricted root access to a production database and ambiguous instructions would present a comparable risk.

The sensationalized framing of the Tom's Hardware headline reflects a recurring tension in AI media coverage, where dramatic phrasing like "going rogue" or "9 seconds" extracts maximum alarm from incidents better characterized as infrastructure mismanagement. That framing carries consequences: it can distort public and enterprise risk assessments, either generating disproportionate fear of AI coding tools or, by overreaching, inadvertently discrediting legitimate safety concerns about agentic systems. The more sober lesson from the Grigorev incident is narrower and more actionable — AI coding agents operating in cloud infrastructure contexts demand the same rigor as any privileged automation system, including scoped permissions, explicit approval gates for destructive operations, and robust backup architectures that do not depend solely on the environment the agent can access.

Read original article →