A single fake Sentry error event hijacked AI coding agents at 100+ organizations — including a Fortune 100 company valued at $250 billion.
Researchers at Tenet Security call it "agentjacking."
The attack needs no breach. No stolen credentials. No malware.
Just a public Sentry DSN — the key that's embedded in every website's JavaScript by design.
Here's what happens:
An attacker POSTs a fake error to Sentry. The message contains a malicious npm command disguised as a "Resolution" section — formatted to look identical to Sentry's own diagnostic output.
A developer asks their AI agent to investigate unresolved Sentry errors.
The agent queries Sentry via MCP. Receives the injected event. Can't tell the difference between real diagnostic data and an attacker's command.
Executes the payload. With the developer's full privileges. On the developer's own machine.
85% exploitation success rate across Claude Code, Cursor, and Codex.
100+ confirmed agent executions. 2,388 organizations exposed. Spanning Fortune 500 enterprises, hosting providers, cloud security vendors, and startups across 30+ countries.
And here's the part that should alarm every CISO:
Every security control failed.
EDR didn't catch it. WAF didn't catch it. IAM, VPN, Cloudflare, firewalls — nothing fired. Because every step in the chain is technically authorized. Tenet calls this the "Authorized Intent Chain."
Prompt-layer defenses didn't work either. Agents executed the payload even when their system prompts explicitly told them to ignore untrusted external data.
Sentry declined to fix the root cause. Called it "technically not defensible" at the platform level. Added a content filter for one specific payload string. The architectural pathway remains wide open.
This is not a Sentry bug. It's an architectural flaw in how AI agents handle tool output. Every MCP integration that surfaces externally-controlled content — issue trackers, support queues, code-review platforms, log aggregators — carries the same risk.
Audit every MCP connection your agents use. Sandbox execution with deny-by-default network egress. Require human approval before any shell command. Treat every external data source as untrusted — not just Sentry.
The era where your telemetry data becomes an RCE vector is here.
SOURCE: https://tenetsecurity.ai/blog/agentjacking-coding-agents-with-fake-sentry-errors/
VERIFIED: Tenet Security primary disclosure (June 17, 2026), CSA Labs research note (June 12, 2026), Digital Applied comprehensive guide (June 24, 2026), Infosecurity Magazine (June 11, 2026), The Hacker News (June 12, 2026)
SIGNAL: AI coding agents are now the attack surface. The same trust that makes them productive — broad tool access, standing credentials, autonomy to act on what they read — is exactly what attackers borrow. Every enterprise deploying Claude Code, Cursor, or Codex behind a Sentry integration needs to audit their MCP connections today.
A fake bug report hijacked a $250B company's AI coding agent. Every security control missed it. Sentry won't fix it.
AI-Assisted Content — Produced with AI assistance and human editorial review.
Learn more
0 Comments