'Agentjacking' Attack Hijacks Claude Code, Cursor, Codex via Fake Sentry Errors
Security researchers disclosed 'Agentjacking' — a class of attacks that hijack AI coding agents (Claude Code, Cursor, Codex) by injecting malicious content into fake Sentry error messages. 85% exploitation rate in testing. 2,388 organizations exposed. The attack chains through routine error-handling workflows that developers blindly hand to agents.
If you use Claude Code or Cursor with any error-monitoring integration, you're potentially exposed. The attack is novel because it doesn't require compromising your environment — just one poisoned error from any tracked service. Anthropic, Cursor, and OpenAI all issued advisories June 14-15. Patch level: requires user behavior change, not just software updates.
Mitigation: (1) Never paste full Sentry traces into Claude Code without reviewing them first. (2) Add an allowlist of trusted error sources in your agent configuration. (3) Use /less-permission-prompts to require explicit approval for file write/curl operations triggered by error analysis. (4) Update Claude Code to latest version — patches available.
The attack vector is one of the most realistic since prompt injection became a known issue. Most developers paste raw Sentry traces into Claude Code daily — an attacker only needs to control one tracked service or browser extension to land malicious instructions. Update your settings TODAY if you use Claude Code agentically.