What happened
AI coding agents retrieved attacker-controlled Sentry error events via MCP and executed embedded shell commands with developer privileges
2026-06-08
CriticalPrimaryResearchers find attackers can inject fake Sentry errors to hijack Claude Code, Cursor, and Codex — 85% success rate, 2,388 exposed organizations, no credentials required.
What happened
AI coding agents retrieved attacker-controlled Sentry error events via MCP and executed embedded shell commands with developer privileges
Why it matters
Credential exfiltration (AWS keys, GitHub tokens, npm credentials, Kubernetes tokens, CI/CD secrets) from developer machines across 2,388 organizations; 85% exploitation rate confirmed in controlled testing
Missing authorization check
No per-tool-call authorization gate between MCP-sourced external data and agent execution; agents treated Sentry event content as commands without any authority receipt
Would PP block it?
PP intercepts the resulting tool call (e.g. install an npm package) and requires a human-signed receipt before execution. An attacker who injects a fake Sentry event gets the agent to propose the action — but PP's gate fires before the shell command runs. The gap: PP cannot sanitize the upstream MCP data itself. If the organization's tool-call policy pre-approves package installs, the gate is already open.
Incident analysis
2026-06-03
Tenet Security discloses findings to Sentry; Sentry acknowledges same day and declines root-cause fix
2026-06-08
Tenet Security publishes full research: A Fake Bug Report Hijacks Your AI Coding Agent
2026-06-12
CSA Labs, The Hacker News, and Infosecurity Magazine publish independent coverage
2026-06-12
Sentry deploys reactive content filter blocking specific payload strings — workaround, not a root-cause fix
2026-06-15
Attack surface remains: 2,388 organizations still exposed; no architectural fix shipped
Authorization boundary
This incident is categorized as Tool execution / MCP. The relevant Permission Protocol gate is Tool-Call Gate. The read is conditional: the block only applies where the real action boundary is routed through a gate.
PP's Tool-Call Gate can require a signed receipt before the agent executes shell commands — but cannot prevent the MCP layer from surfacing injected data as trusted input.
Related incidents and controls
TrustFall Coding Agent Security Flaw Enables One-Click RCE
CISA KEV: CVE-2026-42271 in LiteLLM — authenticated command injection via MCP test endpoints, chains to unauthenticated RCE (CVSS 10.0)
Claude Code OAuth tokens stolen via stealthy MCP man-in-the-middle hijacking
Trend Micro: Poisoned mcp/postgres Docker Image Pulled 100K+ Times — Return-to-Tool Attack Causes AI Agent to Exfiltrate Production Tokens via Approved Tools
Start small
This incident maps to Tool-Call Gate. Start with the boundary that controls the actual action, then require a signed receipt before execution.