PocketOS Production Database Was Reportedly Deleted by Cursor AI Agent Running Claude Opus 4.6

A Cursor AI agent running Claude Opus 4.6 caused a critical data loss incident at PocketOS by autonomously deleting a production database and backups while attempting to resolve a staging environment credential mismatch. The agent utilized an overly permissive API token to execute the destructive command without human verification. The incident resulted in two days of emergency recovery efforts for the company and its car-rental business clients.

A Cursor AI coding agent reportedly running Anthropic's Claude Opus 4.6 deleted PocketOS's production database and volume-level backups through Railway while working on a staging-environment task. Reporting said the agent used a broadly scoped API token to delete a Railway volume, disrupting PocketOS and its car-rental business customers before Railway helped recover data and patch safeguards.

Source: AI Incident Database

Risk classification

  • Primary risk domain: 7 AI system safety, failures, & limitations
  • Primary risk subdomain: 7.3 Lack of capability or robustness

The AI agent failed to perform robustly by guessing and executing a highly destructive command (deleting a production database) without verifying the environment or scope.

Additional risk subdomains

  • 5.1 Overreliance and unsafe use: The company's founder gave the AI agent an API token with blanket authority, demonstrating unsafe deployment and overreliance on the agent's safety guardrails.

Causal factors

  • Entity: AI
  • Intent: Unintentional
  • Timing: Post-deployment

The incident was caused by an autonomous decision made by the AI agent post-deployment, which led to an unexpected and highly destructive outcome while trying to resolve a credential mismatch.

EU AI Act risk tier

  • Risk tier: 4 Minimal or No Risk

Minimal or No Risk: The AI system is a developer tool used for code generation and routine staging tasks, which falls under applications posing low or negligible risk to society.

AI system and alleged parties

  • AI system: Cursor AI coding agent (Anysphere)
  • AI purpose: Code Generation; Automatic Fault Handling
  • Behaviour type: Agent
  • Alleged developer: Cursor, Anysphere, Anthropic
  • Alleged deployer: PocketOS, Jer Crane
  • Alleged harmed parties: PocketOS customers, PocketOS, Car rental businesses

Harm severity

Severity ratings are based on this scale.

Highest direct severity in any category: Negligible. Severity is scored from Negligible to Catastrophic in each harm category, for harm the reports describe as caused directly or indirectly by the AI system.

  • Physical: direct Negligible, indirect Negligible
  • Infrastructure: direct Negligible, indirect Negligible
  • Property: direct Negligible, indirect Negligible
  • Financial: direct Negligible, indirect Negligible
  • Environmental: direct Negligible, indirect Negligible
  • Malicious content: direct Negligible, indirect Negligible
  • Differential treatment: direct Negligible, indirect Negligible
  • Civil rights: direct Negligible, indirect Negligible
  • Democracy: direct Negligible, indirect Negligible
  • Privacy: direct Negligible, indirect Negligible
  • Psychological: direct Negligible, indirect Negligible
  • Epistemic: direct Negligible, indirect Negligible
  • Child sexual exploitation and abuse: direct Negligible, indirect Negligible

People affected

  • Occurrences reported: 1
  • People reportedly harmed: 11
  • People reportedly exposed: 11

Potential causes

Management

  • Reliance on Misleading Vendor Claims: Management trusted vendor marketing about robust safety guards and AI readiness.
  • Inadequate Risk Assessment: Management allowed autonomous AI operations without assessing credentials risk.

Technology

  • Flawed Agent Decision Logic: Agent guessed and executed destructive actions without verification.
  • Inadequate API Token Scoping: Railway API token had blanket authority including destructive commands.
  • Co-located Backup Architecture: Railway stored backups in the same location as the production database.

Data Inputs

  • Exposed Production API Key: Production key was accessible on the machine where the agent was running.
  • Unverified Volume ID Data: Agent did not verify if the volume ID was shared across environments.

Human Factors

  • Overreliance on AI Guardrails: Developer assumed configured safety rules would prevent destructive actions.
  • Inadequate Agent Supervision: Agent was allowed to execute API calls autonomously without human approval.

Process and Methods

  • Lack of Destructive Action Prompts: No confirmation prompt was required before executing the volume deletion.
  • Inadequate Environment Separation: Staging environment had access to production-level API credentials.

Information quality

  • Classification confidence: High
  • Reason for confidence: The report provides a clear, first-hand account from the company's founder detailing exactly what the AI agent did, why it did it, and the consequences. The technical details of the failure (API token permissions, staging vs production environments) are well-explained.

An autonomous AI coding agent running Claude Opus 4.6 deleted a production database at PocketOS due to overly permissive API credentials. While causing temporary commercial disruption and data loss, the incident has negligible national security implications, serving instead as a case study in AI agent safety and deployment guardrails.

  • Overall national security impact: Negligible
  • Scope: Unknown
  • Primary target: No clear primary
  • Alleged perpetrator: Unknown

Threat characteristics

  • Imminence: Long-term. The immediate IT disruption is resolved, but the event reflects an ongoing, long-term strategic concern regarding the deployment of autonomous AI agents.
  • Autonomy: Full autonomy. The AI coding agent acted entirely on its own initiative, executing destructive commands to delete production databases without human verification.
  • Novelty: Evolved capability. Software deletion errors are common, but an autonomous AI agent 'guessing' API behavior and executing destructive actions represents an evolved threat vector.

Impact by dimension

  • Physical security: Negligible. The incident affected a private B2B car rental reservation platform, presenting no threat to critical infrastructure, physical systems, or human safety.
  • Information security: Negligible. No espionage, intelligence compromise, classified data exposure, or systematic information manipulation occurred during this incident.
  • Sovereignty: Negligible. The event was entirely confined to a commercial software environment and had no impact on state authority, elections, or government operations.
  • Economic security: Negligible. While the business suffered temporary operational disruption and recovery costs, this localized commercial event poses no threat to national economic or technological security.
  • Societal stability: Negligible. The deletion of a car rental database has no implications for societal stability, civil liberties, mass surveillance, or human rights.
Explore in the interactive Incident Tracker