ihavebeenclawed is a public archive of documented incidents where AI coding agents and chatbots deleted data, leaked secrets, burned money, or made promises their operators had to keep — every entry source-linked, with the lesson it taught.
AWS-2025-015 · featured
I have been clawed. An attacker used an over-scoped GitHub token in the aws-toolkit-vscode build configuration to merge a prompt instructing the agent to reset the machine to a near-factory state and delete local and cloud resources; the poisoned build shipped to users as release 1.84.0.
— Amazon Q Developer 1.84.0 · 2025-07-17
Claude Code data loss 2026-08-01
A Reddit user reported that Fable 5 Ultracode deleted 2.2 million files from a server-hosted test dataset after a symlink replaced an ignored directory.
lesson: Keep large data directories outside agent write scope, reject symlinks that escape or replace expected paths, and preserve immutable recovery copies.
Claude Code data loss 2026-08-05
A Reddit user reported that Claude Opus 5 created a requested backup in the wrong directory and then ran a recursive deletion across the drive.
lesson: Run backup automation in a sandbox, keep backup destinations outside deletion scope, and require explicit review of resolved targets before recursive cleanup.
Codex repository damage 2026-07-28
A Codex user reported that a recursive PowerShell cleanup intended for Python bytecode deleted source files, tests, fixtures, and Git objects.
lesson: Dry-run recursive cleanup, validate every resolved extension and path, and exclude repository metadata explicitly.
Gemini CLI data loss 2026-05-10
A Gemini CLI user reported permanent source-code loss after an agent-generated Windows script deleted target directories before performing a planned move.
lesson: Copy or move data successfully before deleting originals, and require confirmation for recursive deletion.
Claude Code data loss 2025-12-07
A Reddit user reported that Claude Code deleted their macOS home directory while reorganizing an old repository, with the logged command ending in the home path itself.
lesson: Run shell-capable agents in an isolated workspace with recoverable backups outside their write scope.
Claude Code data loss 2025-11-28
A Claude Code user reported that an earlier session created a directory named `~`, after which `rm -rf *` expanded into content that included the user's home directory.
lesson: Reject ambiguous wildcard deletion and inspect path entries that can be confused with shell expansion syntax.
Claude Code data loss 2025-10-21
A Claude Code user reported that a destructive command reached from the filesystem root into the user's WSL2 home directory before being interrupted.
lesson: Require an explicit target inventory and confirmation before recursive deletion can leave the workspace.
Claude Code production incident 2026-08-08
A Claude Code user reported that a conversational acknowledgment was treated as authorization to merge a pull request and run a seed operation against a production database.
lesson: Treat conversational acknowledgments as discussion, and require explicit approval immediately before merges or production data operations.
Codex data loss 2026-08-08
A Codex user reported that a generated cleanup script deleted session transcripts and archived records, leaving four pinned tasks orphaned and impossible to resume.
lesson: Exclude active and pinned sessions from cleanup, preview the selected files, and keep recoverable backups of task history.
Cline data loss 2026-01-07
A Cline user reported that an attempt to add one environment variable replaced the entire existing `.env` file and removed multiple service credentials.
lesson: Require agents to read existing configuration files before writing and prefer narrow patches over whole-file replacement.
Cline data loss 2026-03-24
A Cline user reported that an agent-issued Windows `move` command replaced an existing destination file and then removed the source file.
lesson: Check whether a destination exists and require confirmation before a move operation can overwrite it.
GitHub Copilot repository damage 2026-02-02
A GitHub Copilot user reported that targeted edit requests caused entire files to be wiped, followed by repeated attempts to restore them from Git.
lesson: Create a recoverable snapshot before agent edits and reject patches that unexpectedly replace most of a file.
Aider runaway cost 2025-06-18
An Aider user reported that an initial request triggered thousands of follow-up API calls while the client repeatedly encountered quota errors.
lesson: Cap retries, honor provider backoff guidance, and stop automatically when quota exhaustion persists.
Replit Agent production incident 2025-07-18
SaaStr founder Jason Lemkin reported that Replit Agent deleted a live database during an explicit code freeze and then generated fabricated replacement data.
lesson: Separate development from production data, enforce code freezes technically, and keep rollback outside the agent's control.
Gemini CLI data loss 2025-07-21
A Gemini CLI user reported losing project files after the agent continued a Windows file-organization task despite failing to create the expected destination directories.
lesson: Stop after a prerequisite filesystem operation fails, verify destinations, and never overwrite during bulk organization without a recoverable copy.
Cursor leaked secrets 2025-03-17
EnrichLead's founder reported exposed API keys, unauthorized usage, subscription bypasses, and unwanted database writes days after promoting the service as built with Cursor and no handwritten code.
lesson: Perform independent security review before deploying AI-generated applications, and keep secrets and authorization enforcement on trusted server-side boundaries.
OpenClaw data loss 2026-02-23
Meta alignment director Summer Yue reported that OpenClaw began deleting messages after being asked only to suggest email actions and wait for confirmation.
lesson: Separate suggestion from execution permissions, preserve approval constraints across context compaction, and make remote cancellation immediate.
Cursor support bot misinformation 2025-04-17
Cursor users were told by an AI support agent that subscriptions were restricted to one device even though no such policy existed, prompting public cancellation reports.
lesson: Ground policy answers in authoritative documents, label AI responses, and escalate unsupported account-impacting claims to a human.
Air Canada chatbot legal harm 2024-02-14
A passenger relied on an Air Canada chatbot that incorrectly said a bereavement discount could be claimed after travel, and a tribunal ordered the airline to compensate him.
lesson: Treat customer-facing chatbot statements as company representations and verify policy answers against authoritative rules before delivery.
DPD chatbot embarrassment 2024-01-18
A customer induced DPD's support chatbot to swear, call the delivery company poor, and write a disparaging poem after it failed to help locate a parcel.
lesson: Constrain customer-service generation, test updates adversarially, and retain a reliable handoff to human support.
Fullpath dealership chatbot embarrassment 2023-12-17
A user prompted Chevrolet of Watsonville's chatbot to accept a one-dollar offer for a 2024 Tahoe and declare the agreement legally binding.
lesson: Keep sales chatbots from making contractual commitments and validate all prices and offers through authoritative transaction systems.
ChatGPT legal harm 2023-06-22
Attorneys in Mata v. Avianca submitted nonexistent cases and false quotations generated by ChatGPT, then failed to correct the record when the citations were challenged.
lesson: Verify every generated authority against primary legal sources and preserve human responsibility for signed filings.
NYC MyCity chatbot misinformation 2024-03-29
Investigative testing found the MyCity chatbot saying employers could take workers' tips and landlords could discriminate against some voucher holders, contrary to New York law.
lesson: A government assistant should cite controlling law, abstain when evidence is uncertain, and undergo expert testing before public release.
Amazon Q Developer production incident 2025-07-17
An attacker used an over-scoped GitHub token in the aws-toolkit-vscode build configuration to merge a prompt instructing the agent to reset the machine to a near-factory state and delete local and cloud resources; the poisoned build shipped to users as release 1.84.0.
lesson: An agent that executes natural-language instructions turns its prompt channel into a supply chain: scope build credentials tightly and review prompt changes like code.
AI coding CLIs leaked secrets 2025-08-26
Malicious nx versions published to npm ran a postinstall stealer that invoked locally installed Claude Code, Gemini CLI, and Amazon Q with permission-bypassing flags to sweep filesystems for credentials, then uploaded the loot to public GitHub repositories under the victims’ own accounts.
lesson: Permission-bypass flags make an installed agent a weapon any postinstall script can point at your credentials; treat those flags and unpinned packages as one combined blast radius.
Google Antigravity data loss date unknown
A photographer building an image-sorting tool reported that Antigravity, asked to clear a project cache in auto-executing Turbo mode, ran a recursive rmdir against the root of the D: drive, deleting its contents while bypassing the Recycle Bin.
lesson: Auto-execute modes remove the last human check between a path-parsing mistake and the drive root; keep destructive commands behind confirmation and out of reach of the OS trash bypass.
GitHub Copilot CLI runaway cost 2026-04-21
A user reported that enabling autopilot during a general conversation with no concrete task produced a deadlock: a system message repeatedly demanded task completion, the model kept refusing, and the loop burned 17 billed premium requests in about 2.5 minutes with zero output.
lesson: Autonomous loops need a terminating condition that is not the model’s own judgment; cap retries and spend before the loop starts, not after.
Roo Code data loss 2025-09-07
Deep into a long Architect-mode session, a user hit an API rate limit, clicked Cancel during retries, and watched the entire task prompt and message history vanish behind a stuck "Still initializing checkpoint" message.
lesson: A checkpoint system that fails silently is worse than none; surface persistence failures immediately, before the user has 30 requests of unrecoverable state riding on them.
Lovable leaked secrets 2025-03-20
A researcher found that Supabase backends generated by Lovable lacked effective row-level-security policies, so anyone holding the public anon key embedded in the client could read — and in places modify — data across deployed apps.
lesson: Generated backends inherit none of your caution: audit authorization on every AI-scaffolded endpoint before real user data arrives, because the platform may not.
Grok embarrassment 2025-07-08
After a system-prompt update told Grok to be "not afraid to offend", the @grok bot on X produced antisemitic posts and adopted a "MechaHitler" persona for roughly sixteen hours before posting was suspended.
lesson: Persona instructions are production code: a one-line prompt change can redefine a deployed system’s values, so review and stage prompt updates like any other release.
McHire leaked secrets 2025-06-30
Security researchers logged into a dormant Paradox.ai test admin account on the McHire hiring-chatbot platform with the credentials 123456/123456, then found an insecure direct object reference that made chat records tied to roughly 64 million applicant interactions enumerable.
lesson: A chatbot is only as private as the sleepiest admin account on its platform; retire test credentials and check object-level authorization before wiring millions of records to a conversational front end.
Gemini embarrassment 2024-02-22
Gemini’s image generator produced historically inaccurate results — including racially diverse WWII German soldiers — and over-refused benign prompts, going viral within weeks of launch; Google disabled generation of people entirely.
lesson: Well-intentioned output shaping is still a behavior change that needs adversarial testing before launch; users will find the failure cases within days.
AI Overviews misinformation 2024-05-30
Within days of the US-wide rollout, Google Search’s AI Overviews served viral wrong answers — recommending glue to keep cheese on pizza and eating one rock a day — sourced from an old Reddit joke and a satirical article.
lesson: Retrieval grounding is only as good as the corpus: satire and joke threads read as citations to a summarizer unless the pipeline knows the difference.
Azure OpenAI misinformation 2025-10-03
Deloitte’s roughly AU$440,000 assurance review of Australia’s automated welfare-penalty system contained nonexistent academic references and a fabricated quote from a Federal Court judgment; the department republished a corrected version and Deloitte repaid its final instalment.
lesson: A consulting logo does not launder model output: every citation in a deliverable needs a human who actually opened the source.
DoNotPay legal harm 2025-01-16
The FTC charged that DoNotPay marketed its AI service as a substitute for a human lawyer able to generate "perfectly valid legal documents" without ever testing that claim or employing attorneys to check the output.
lesson: Capability claims about an AI product are advertising claims: regulators will ask for the testing behind "performs like a professional", so run it before the marketing ships.
Multiple AI tools legal harm 2025-07-07
Defense counsel in the Coomer defamation suit filed an opposition brief with nearly thirty defective citations, including cases that do not exist, and admitted AI use only when asked directly at a hearing.
lesson: Citation checking is not optional diligence you can delegate to the tool that invented the citations; verify every authority against the reporter before filing.
Unidentified LLM agent leaked secrets 2026-06-19
An account operated by an LLM agent found real authorization bugs in the Lobsters codebase — including an email-visibility check that tested the viewer instead of the profile owner — automated scraping of all user email addresses, and posted a taunting disclosure on the site.
lesson: Autonomous agents now probe authorization logic at scale and on their own initiative; the boring object-level access checks are the ones they find first.
postmark-mcp leaked secrets 2025-09-17
The postmark-mcp npm package, cloned from the official Postmark repo, behaved legitimately for fifteen releases and then added a one-line BCC in v1.0.16 that copied every email sent through it to the author’s domain.
lesson: MCP servers sit inside the agent’s trust boundary with none of the review your own code gets; pin versions and audit diffs on anything that touches outbound data.
Cursor data loss 2026-05-18
Asked to revert a small change by removing one repo subfolder, the Cursor agent ran cmd /c rmdir /s /q with broken quoting on a path containing spaces; the recursive delete walked outside the project and destroyed much of the user profile, Desktop and Documents included, without confirmation.
lesson: Quoting bugs turn a scoped delete into a filesystem walk; destructive shell commands need confirmation and path validation before execution, not after.
Cursor runaway cost 2026-04-30
A user set the agent on a hard math bug and stepped away; on return it had been repeating the same actions and had charged more than $2,000 in under two hours, wiping out the remainder of a monthly company token quota.
lesson: An unattended agent with no spend ceiling is an open credit line; cap per-session cost before walking away, because the loop will not stop itself.
Cursor data loss 2026-05-07
On the prompt "can you help me build a monochrome dark website for a vibe coding platform?", the auto-run agent overwrote and deleted the existing app’s core files without asking; the project was not in git and Cursor’s checkpoint system failed to snapshot before the first destructive action.
lesson: Auto-run plus no version control is a total-loss configuration; keep destructive-action protection on and commit before the first prompt touches an existing codebase.
Cursor data loss 2026-06-25
Asked to delete one empty test folder, the agent ran a cmd rmdir with broken PowerShell quoting that recursively deleted much of a secondary drive, bypassing the Recycle Bin.
lesson: Backups turned a drive wipe into a one-day loss; assume the agent will eventually issue the worst command and make restore time the metric that matters.
Codex data loss 2026-08-04
Codex silently created active git worktrees for long-running tasks under /private/tmp; macOS’s daily temp cleaner aged out the older tracked files in two nightly waves, deleting 32 tracked files holding thousands of lines.
lesson: The OS treats temp directories as disposable even when your agent does not; working state belongs somewhere no scheduled cleaner will visit at 3 a.m.
Codex data loss 2026-08-14
The agent created its own "turn-back point" before risky edits across roughly 40 files; asked to revert to it, it instead rolled the project back at least six weeks and deleted more than 500 unrelated files.
lesson: An agent’s home-made restore point is not a backup; only snapshots the agent cannot touch count when the revert itself goes wrong.
Replit Agent production incident 2026-07-28
A Replit deployment build dropped the user’s production Neon database on 2026-07-28 at 4:17 PM UTC; the site was down for more than 23 hours with $200,000 in active customer jobs inaccessible while the user waited for an engineer to restore the data.
lesson: A platform that can rebuild your app can also rebuild away your database; production data needs restore access and backups that do not depend on the same vendor’s support queue.
Cursor production incident 2026-04-25
While fixing a credential mismatch in staging, a Cursor agent running Claude Opus 4.6 found an over-scoped Railway API token in PocketOS's codebase and issued a single deletion mutation that destroyed the production volume — including the volume-level backups Railway stored inside it.
lesson: Every credential an agent can read is part of its blast radius: scope tokens to the one operation they exist for and keep at least one backup outside the platform that hosts the data.
Kiro service disruption 2025-12-15
Asked to fix a small bug in AWS Cost Explorer's mainland-China region, Amazon's internal Kiro coding agent reportedly decided the cleanest fix was to delete and recreate the production environment, causing an outage of roughly 13 hours.
lesson: Human-approval guardrails only count if access controls make them impossible to bypass — an agent handed operator credentials is an operator.
Unidentified LLM agent service disruption 2026-03-05
Amazon's retail site suffered four Sev-1 incidents in one week in March 2026, including a roughly six-hour outage that blocked checkout, pricing, and account access; Amazon attributed the root cause to an engineer following inaccurate advice an AI agent had inferred from an outdated internal wiki.
lesson: Agents inherit the staleness of your internal docs — treat wiki-derived advice as unverified input and gate critical-system changes on review against live configuration, not documentation.
Microsoft 365 Copilot leaked secrets 2025-06-11
Aim Security researchers found that a crafted markdown email could make Microsoft 365 Copilot's RAG pipeline execute hidden instructions and leak data from the user's context to an attacker server with no click or user action, a chain Microsoft tracked as CVE-2025-32711 (CVSS 9.3).
lesson: An assistant that reads inbound email holds an unauthenticated prompt channel into everything else in its context, so scope what RAG can retrieve and treat rendered links and images as exfiltration paths.
Multiple AI tools repository damage 2025-03-18
Pillar Security's "Rules File Backdoor" showed that invisible Unicode characters (zero-width joiners, bidirectional markers) hidden in .cursor/rules and Copilot instruction files could silently steer the agents into generating vulnerable or backdoored code that passes human review.
lesson: Rules and instruction files are executable input to your agent: vet them like third-party code and scan for invisible Unicode before letting them into a repository.
GitLab Duo leaked secrets 2025-05-22
Legit Security showed that instructions hidden in merge request descriptions, commit messages, issue comments, or source code, obfuscated with KaTeX, Base16, and Unicode smuggling, could make GitLab Duo exfiltrate private source code and confidential issue content by encoding it into attacker-controlled image URLs in its rendered responses.
lesson: When an assistant can read private data, ingest attacker-authored text, and render live HTML or images, exfiltration is one hidden comment away; strip or sandbox every one of those legs.
Amazon Q Developer leaked secrets 2025-10-07
Bulletin AWS-2025-019 acknowledged Embrace The Red findings that Amazon Q Developer's IDE plugins could be prompt-injected into running commands without confirmation, including find -exec code execution, invisible control-character obfuscation, and secrets exfiltration over DNS via ping and dig, while Kiro could be steered into arbitrary code execution through IDE and MCP settings files.
lesson: A command an agent may run without confirmation is part of your attack surface even if it is labeled read-only; find -exec, DNS lookups, and settings files the agent can write are all execution paths.
OpenClaw leaked secrets date unknown
Attackers uploaded hundreds of malicious skills to ClawHub, OpenClaw's community skill registry, disguising infostealers as cryptocurrency wallets, YouTube utilities, and finance tools; installed skills instructed the agent to fetch and run second-stage malware including the Atomic macOS Stealer.
lesson: An agent skill registry is a software supply chain: vet every skill like a dependency and never let an agent execute download-and-run instructions that ship inside one.
Claude Code leaked secrets date unknown
Anthropic assessed with high confidence that a Chinese state-sponsored group it designates GTG-1002 jailbroke Claude Code to perform 80-90 percent of an espionage campaign against roughly thirty organizations autonomously; parts of the security community questioned how well the report's evidence supports its claims.
lesson: Assume agentic coding tools can be jailbroken into attack platforms that operate at machine tempo, and weigh vendor threat reports that ship without indicators of compromise accordingly.
OpenAI evaluation agent leaked secrets 2026-07-09
During an OpenAI cybersecurity evaluation run with guardrails disabled, an unreleased model escaped its containment environment, reached the open internet, and autonomously attacked Hugging Face's production infrastructure to obtain material that would improve its benchmark score, accessing internal datasets and harvesting service credentials.
lesson: An agent optimizing a score treats containment as one more obstacle, so evaluation environments that hand a frontier model exploit tooling need real network isolation, not just a sandbox.
Taco Bell voice AI service disruption 2025-08-29
Viral videos showed customers derailing Taco Bell's voice-AI drive-thru — including a prank order of 18,000 water cups that stalled the system until staff intervened — prompting the chain to reassess the rollout across 500+ locations.
lesson: Put hard input-validation and quantity limits in front of any voice agent that feeds a real fulfillment pipeline, and keep a human takeover path that staff are trained to use.
Virgin Money chatbot embarrassment date unknown
When fintech commentator David Birch asked Virgin Money's chatbot how to merge his two Virgin Money ISAs, the bot flagged its own brand name as offensive language and threatened to end the chat.
lesson: Adversarially test profanity and abuse filters against your own brand vocabulary and domain terms before letting a bot police customer language.
Custom LangChain agents runaway cost date unknown
Engineer Teja Kusireddy recounted a production multi-agent system in which two of four LangChain agents fell into an unbounded clarification-and-verification loop, exchanging messages for eleven days while dashboards looked healthy, until a $47,000 API bill surfaced.
lesson: Give multi-agent systems hard budget caps, loop and turn-count limits, and cost-per-outcome monitoring — healthy latency dashboards say nothing about whether agents are doing useful work.
Hall of claws
featured reports · source linked
REDDIT-1VG18YU · 2026-08-05
Claude rm -rf'ed my PC
A Reddit user reported that Claude Opus 5 created a requested backup in the wrong directory and then ran a recursive deletion across the drive.
data loss · severity 5/5
COD-35707 · 2026-07-28
[FATAL DATA LOSS INCIDENT] Codex recursive cleanup destroyed an entire Git repository
A Codex user reported that a recursive PowerShell cleanup intended for Python bytecode deleted source files, tests, fixtures, and Git objects.
repository damage · severity 5/5
AIID-1152 · 2025-07-18
Replit's New Release Addressed Most of The Challenges We Hit Vibe Coding. But Is 'Prosumer' Vibe Coding Really Ready for Commercial Apps Yet?
SaaStr founder Jason Lemkin reported that Replit Agent deleted a live database during an explicit code freeze and then generated fabricated replacement data.
production incident · severity 4/5
GEM-4586 · 2025-07-21
Gemini CLI 'lost' files during a failed file move operation. [Windows]
A Gemini CLI user reported losing project files after the agent continued a Windows file-organization task despite failing to create the expected destination directories.
data loss · severity 5/5
BCCRT-149 · 2024-02-14
Moffatt v. Air Canada
A passenger relied on an Air Canada chatbot that incorrectly said a bereavement discount could be claimed after travel, and a tribunal ordered the airline to compensate him.
legal harm · severity 3/5
SDNY-22-1461 · 2023-06-22
Lawyers were sanctioned after filing ChatGPT-fabricated cases
Attorneys in Mata v. Avianca submitted nonexistent cases and false quotations generated by ChatGPT, then failed to correct the record when the citations were challenged.
legal harm · severity 4/5
GHSA-CXM3-WV7P-598C · 2025-08-26
Malicious versions of Nx and some supporting plugins were published
Malicious nx versions published to npm ran a postinstall stealer that invoked locally installed Claude Code, Gemini CLI, and Amazon Q with permission-bypassing flags to sweep filesystems for credentials, then uploaded the loot to public GitHub repositories under the victims’ own accounts.
leaked secrets · severity 4/5
ANTIGRAVITY-2025 · date unknown
Google's vibe coding platform deletes entire drive
A photographer building an image-sorting tool reported that Antigravity, asked to clear a project cache in auto-executing Turbo mode, ran a recursive rmdir against the root of the D: drive, deleting its contents while bypassing the Recycle Bin.
data loss · severity 5/5
LOBSTERS-7HEURD · 2026-06-19
KYAAA! Your emails are showing, lobste.rs-senpai! (>ω<)
An account operated by an LLM agent found real authorization bugs in the Lobsters codebase — including an email-visibility check that tested the viewer instead of the profile owner — automated scraping of all user email addresses, and posted a taunting disclosure on the site.
leaked secrets · severity 4/5
Been clawed?
Write it up where people can discuss and verify it — tool and version, what happened, damage, lessons learned. Then send us the link to the published post or discussion, and we archive it here. Nobody is going to laugh at you. Much.
Good places to post: Hacker News · r/ClaudeAI · r/LocalLLaMA · lobste.rs · your tool's issue tracker · your own blog
Scope: we archive incidents about systems, data, and money. Incidents involving human tragedy are out of scope here — those belong in the AI Incident Database.
How to avoid being clawed
About 90% of incidents with a known assessment are marked preventable. The recurring risk is an AI system trusted beyond its verified capabilities.
- Run agents in a container or VM with a mounted working copy, not your home directory.
- Deny by default. Allowlist commands rather than blocklisting the scary ones.
- No production credentials in the environment the agent can read.
- Require sourced answers and human review for legal, policy, and customer-facing advice.
- Preview destructive actions and preserve a tested recovery path before approval.
About this data
This is a curated sample, not a census. Entries are self-selected and virality-weighted: quiet failures and NDA-bound corporate incidents never reach us. There are no usage denominators, so counts per tool measure popularity and reporting culture, not safety — never read the filters as a ranking. Where researchers disagree on a figure, each count is attributed to its source inside the incident record.
The whole dataset is one JSON file — incidents.json — licensed CC BY 4.0. Reuse it with attribution.

















