Skip to content

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.

33 incidentsChecked

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
6Destructive action
2Data exposure
4Supply chain
17Vulnerability
2Misuse
2Research demonstration

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.

Show
  1. 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.

    Fixed in 0.21.1GHSA-8hwc-9vw4-p6q9Hermes Agent security advisory

  2. 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.

    Fixed in 1.28.1GHSA-j58f-3f5r-956hZed security advisory

  3. 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.

    Fixed in 2026.11.27modelcontextprotocol/servers v2.6.0 release notes

  4. 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.

    Fixed in 1.61.1GHSA-5pvv-4hwj-j3mjgoose security advisory

  5. 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.

    Brandefense (discovered it)

  6. 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.

    Fixed in 2026.11.4GHSA-pw3x-g8v8-fvj2OpenClaw security advisory

  7. 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.

    Cursor’s security notice

  8. 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.

    Fixed in 2.1.251CVE-2026-88968Anthropic security advisory

  9. 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.

    Warp CEO’s post on X

  10. 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.

    CrowdStrike (discovered it)

  11. 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.

    GitHub issue (user report)

  12. 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.

    Fixed in 0.8.135CVE-2026-89332AWS security bulletin

  13. Cursor (sandbox)Vulnerability

    A tampered Python virtualenv could let code escape Cursor’s agent sandbox.

    Fixed or restored: Rated high by Cursor.

    Fixed in 3.1.2CVE-2026-73217Cursor security advisory

  14. 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.

    GitHub issue (user report)

  15. 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.

    Fixed in 3.0CVE-2026-50549Cursor security advisory

  16. 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.

    Founder’s post on X

  17. 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.

    Fixed in 0.39.1CVE-2026-12537GitHub advisory

  18. 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.

    Owner’s write-up

  19. 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.

    Fixed in 2.1.53CVE-2026-33068Anthropic security advisory

  20. 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.

    Fixed in 2.0CVE-2026-31854Cursor security advisory

  21. 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.

    GitHub issue (user report)

  22. 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.

    Anthropic’s report

  23. 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.

    Postmark’s statement

  24. 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.

    GHSA-cxm3-wv7p-598cNx security advisory

  25. 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.

    Fixed in 1.3CVE-2025-54136Cursor security advisory

  26. 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.

    Fixed in 1.3.9CVE-2025-54135Cursor security advisory

  27. 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.

    Fixed in 0.1.14Tracebit (discovered it)

  28. 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.

    Fixed in 1.85.0CVE-2025-8217AWS security bulletin

  29. 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.

    Replit’s post

  30. 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.

    Fixed in 0.1.16CVE-2025-6514GitHub advisory

  31. 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.

    General Analysis (demonstrated it)

  32. 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.

    CVE-2025-32711Microsoft security update

  33. 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.

    Invariant Labs (demonstrated it)

What they have in common

01

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.

02

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.

03

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.

04

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.

  1. Claude Code32
  2. Roo Code11
  3. Zed Agent11
  4. Junie CLI9
  5. goose5
  6. Kimi Code CLI5
  7. Aider4
  8. Continue CLI4
  9. Kilo Code CLI4
  10. OpenClaw4
  11. Pi4
  12. Cline3
  13. OpenCode3
  14. Hermes Agent2
  15. Windsurf (Devin Desktop)2
  16. mini-SWE-agent1
  17. OpenHands CLI1
  18. Plandex1
  19. SWE-agent1
  20. Warp Oz1

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.

See what your agents did before it becomes an incident

Get the Mac app