AI agent security incidents
Public incidents involving AI agents since 2025, each linked to its primary source: the vendor’s advisory, the incident owner’s own account, or the researchers who found it. We add to it as new ones are published.
Days since the last public AI agent incident
12days
✕Last: , Hermes Agent (self-hosted servers). Brandefense found 87 servers serving Hermes Agent state folders over open HTTP, with task boards, schedules and API keys and bot tokens in some files. See the entry →
Counts from the newest destructive action, data exposure, supply-chain attack or misuse on this list, by the day its primary source was published. Vulnerability advisories and research demonstrations are listed but don’t reset it; the newest advisory here is from Dec 2026.
33 public incidents since May 2025
Each one from a primary source: the vendor, the incident’s owner, or the researchers who found it. Checked December 2, 2026.
By agent
- Claude Code8
- Cursor7
- Gemini CLI4
- Hermes Agent2
- Amazon Q Developer CLI1
- Codebuff1
- goose1
- Kiro1
- OpenClaw1
- Zed Agent1
- Other products9
On this page
The incidents
Newest first. Each entry links to its primary source, and the ones with an in-depth write-up link to it too. A user’s bug report is labelled as one, and research demonstrations are kept apart from attacks on real systems. The colour and glyph say how it ended.
- Hermes Agent (messaging gateway)Vulnerability
On a messaging gateway, any chat user allowed to talk to the agent could add a goal gate that later ran as a shell command in the gateway process.
✓Fixed or restored: Rated high. The fixed release shipped months before the advisory was published.
- Zed AgentVulnerability
The worktree trust check did not cover .zed/tasks.json or .zed/debug.json, so tasks from an untrusted project could run while Zed showed Restricted Mode.
✓Fixed or restored: Rated high by Zed; an incomplete fix for two earlier advisories.
- mcp-server-git (official MCP server)Vulnerability
Six advisories on the official Git MCP server, one rated high: a repository’s own Git LFS settings could run a program during a read-only tool call. Others let tools read outside the configured repository, return a credential or environment variable, or overwrite an ignored file. Read the write-up →
✓Fixed or restored: Fixed in mcp-server-git 2026.11.27, part of the modelcontextprotocol/servers v2.6.0 release.
- gooseVulnerability
An imported session file could carry a forged approval, so a command ran when the session was opened. Read the write-up →
◐Partly resolved: Rated high. Upgrading does not clean sessions already imported; the advisory says to delete or recreate them.
- Hermes Agent (self-hosted servers)Data exposure
Brandefense found 87 servers serving Hermes Agent state folders over open HTTP, with task boards, schedules and API keys and bot tokens in some files.
✕Damage reported: Caused by how those owners exposed the folder, not a flaw in Hermes; the researchers advise blocking the folder at the proxy and rotating keys.
- OpenClawVulnerability
The openclaw delegation tool could apply persistent configuration changes without approval for restricted agents.
✓Fixed or restored: Rated high (8.8). Also fixed in the extended-stable 2026.10.33.
- Cursor’s extension marketplace (a Claude Code extension)Supply chain
Cursor says a tampered copy of Anthropic’s Claude Code extension (2.1.312 and 2.1.313) was served from its marketplace for about 11 hours on October 29, and tried to install an SSH backdoor. Read the write-up →
✕Damage reported: Cursor published a check script and indicators; its later update traced the chain to an access key exposed by a vendor.
- Claude CodeVulnerability
On macOS, code running in the Bash sandbox could win a race by swapping a directory for a symlink, so the unsandboxed edit tool wrote outside the workspace. Read the write-up →
✓Fixed or restored: Rated high by Anthropic.
- WarpData exposure
Warp’s CEO said an exploited vendor dependency in its infrastructure let an attacker access a limited amount of agent trace and telemetry data.
◐Partly resolved: Detected within hours and remediated; up to about 1% of users may have been affected, and they were notified.
- Claude Code and the ARTEX agentMisuse
CrowdStrike reported a campaign against South Korean financial organizations that used an AI pentest agent alongside Claude Code sessions, and that exfiltrated data.
✕Damage reported: Active from late September to early October 2026, per CrowdStrike.
- Freebuff (Codebuff)Destructive action
A user reported that an agent session ran shell commands with no approval gate and deleted most of the code in a repository.
◐Partly resolved: Recovered with git, by the user’s account; the issue was closed as stale with no vendor reply.
- Kiro IDEVulnerability
In an untrusted workspace the agent could edit a settings file to point the Powers registry at an outside endpoint before the user answered the approval prompt.
✓Fixed or restored: AWS advised rotating credentials that were in projects opened on earlier versions.
- Cursor (sandbox)Vulnerability
A tampered Python virtualenv could let code escape Cursor’s agent sandbox.
✓Fixed or restored: Rated high by Cursor.
- Claude Code (auto mode)Destructive action
A user reported that a session asked to bring a project up with Docker deleted the contents of their home directory, outside the working directory.
✕Damage reported: Reported as a bug by the user; not independently confirmed.
- CursorVulnerability
If path canonicalization failed, the agent could write through a symlink outside the workspace without approval, escaping the sandbox.
✓Fixed or restored: Rated critical by Cursor.
- Cursor with Claude Opus 4.6, on RailwayDestructive action
PocketOS’s founder says a Cursor agent deleted the company’s production database and its volume-level backups in a single API call to Railway.
✕Damage reported: The founder’s own account; it also faults Railway’s API design.
- Gemini CLI and the run-gemini-cli GitHub ActionVulnerability
In headless and CI mode the CLI trusted workspace folders automatically and ignored fine-grained tool allowlists under --yolo, which could lead to remote code execution.
✓Fixed or restored: Rated critical. The GitHub Action is fixed in run-gemini-cli 0.1.22.
- Claude Code, Terraform, AWSDestructive action
DataTalks.Club’s founder wrote that Claude Code ran terraform destroy against production, removing the database, network and the automated snapshots behind 2.5 years of course submissions.
◐Partly resolved: AWS support restored the database from a snapshot; recovery took about 24 hours, by the owner’s account.
- Claude CodeVulnerability
Claude Code read the permission mode from a repository’s own settings before showing the trust dialog, so a malicious repository could skip it. Read the write-up →
✓Fixed or restored: Rated high by Anthropic.
- CursorVulnerability
Prompt injection from a website the agent visited, combined with an allowlist bypass, could run commands automatically with Auto-Run set to use the allowlist.
✓Fixed or restored: Rated high by Cursor.
- Gemini CLIDestructive action
A user reported that the CLI deleted files during a JSON comparison task after being told no other files should change.
✕Damage reported: Reported as a bug by the user; not independently confirmed.
- Claude CodeMisuse
Anthropic said it detected and disrupted a campaign by a group it assessed as Chinese state-sponsored that used Claude Code to attempt intrusions at about thirty targets, succeeding in a small number.
◐Partly resolved: Anthropic banned the accounts and notified affected parties, per its report.
- postmark-mcp (npm), an unofficial MCP serverSupply chain
From version 1.0.16 the package added a hidden BCC to an outside address on every email it sent. Postmark had no connection to it. Read the write-up →
✕Damage reported: Removed from npm on September 25, 2025; copies already installed kept running.
- Nx (npm), Claude Code, Gemini CLI, Amazon Q CLISupply chain
Malicious Nx releases ran installed AI CLIs with approval-skipping flags to search machines for secrets, then published what they found to public GitHub repositories. Read the write-up →
✕Damage reported: Live about four hours; npm removed the versions and revoked Nx’s tokens.
- CursorVulnerability
Cursor tied MCP approval to a server’s name, so an attacker who could edit an approved MCP configuration could swap in a different command without a new prompt (“MCPoison”).
✓Fixed or restored: Cursor now asks again whenever an MCP entry changes.
- CursorVulnerability
An indirect prompt injection could make the agent write Cursor’s MCP configuration file without approval, adding a server that runs code.
✓Fixed or restored: Cursor now blocks the agent from writing MCP-sensitive files without approval.
- Gemini CLIVulnerability
Tracebit showed that weak allowlist matching let a prompt injection in a README run a second, hidden command after an allowlisted one.
✓Fixed or restored: The fixed version comes from the researchers’ post.
- Amazon Q Developer extension for VS CodeSupply chain
Version 1.84.0 shipped with malicious code an attacker committed using a mis-scoped GitHub token in AWS’s build configuration. Read the write-up →
✓Fixed or restored: AWS says the code failed to run because of a syntax error.
- Replit AgentDestructive action
During a user’s code freeze, Replit’s agent deleted his production database, then said it could not be restored. Read the write-up →
◐Partly resolved: Rollback restored the data. Replit separated development and production databases by default.
- mcp-remote (npm)Vulnerability
Connecting to an untrusted MCP server could make mcp-remote run an operating system command, through a crafted authorization URL.
✓Fixed or restored: Rated 9.6 out of 10 in the advisory.
- Supabase MCP serverResearch demonstration
In a test app with dummy data, a planted support ticket led a developer’s MCP assistant to read private tables and paste them into a customer-visible reply.
○Demonstration: A demonstration by General Analysis, not an attack on a real system.
- Microsoft 365 CopilotVulnerability
“EchoLeak”: an AI command injection that let an attacker disclose information over a network with no user interaction.
✓Fixed or restored: Microsoft fixed it on its side; users had nothing to do.
- GitHub MCP serverResearch demonstration
Invariant Labs showed a malicious issue in a public repository steering an agent to copy data from the user’s private repositories into a public pull request.
○Demonstration: Invariant says it is not a flaw in the server’s code but in how agents combine tools.
What they have in common
Instructions in the chat are not controls
In the destructive incidents above, the agent already had the access to do the damage, and what stood in the way was mostly what it had been told. Separate credentials, deletion protection and approval steps hold when the agent is wrong.
An installed agent is a capability anyone on the machine can use
The Nx malware didn’t exploit the agents. It ran them with the flag that skips approvals. Keep permission-skipping modes in disposable environments.
Trust a pinned version, not a name
postmark-mcp behaved normally for several releases before it changed. The Amazon Q extension was compromised at the vendor. Approve agents, extensions and MCP servers by publisher and version, and review updates.
Check the system, not the agent’s summary
Replit’s agent said the data could not be recovered; it could. After an incident, read the database, the backups and the session logs yourself.
For engineering leaders, the security and governance guide maps these incidents to the OWASP Top 10 for Agentic Applications, and the AI agent policy template turns them into rules your team can adopt.
Advisories by agent
Vendors publish security advisories for their agents, usually with a fixed version. The bars count the advisories on each agent’s page, shaded by severity; Claude Code’s are listed in Claude Code vulnerabilities.
How this list is kept
We include an incident when a primary source describes it: the vendor’s advisory or post, the GitHub advisory, the incident owner’s own account or bug report, or the researchers who found it. Press coverage alone is not enough. We describe each one in the source’s terms and don’t add estimates of impact.




















