Agentjacking Exploits Sentry MCP to Make AI Coding Agents Run Malicious Code
Tenet Security disclosed Agentjacking, an attack that abuses public write-only Sentry DSNs and Sentry’s Model Context Protocol (MCP) integration to inject attacker-controlled error content into AI coding assistants including Claude Code and Cursor. In the reported attack chain, a forged Sentry event is returned to the agent as seemingly trusted diagnostic or remediation guidance, leading the agent to execute attacker-specified commands on a developer workstation without phishing, malware delivery, or prior compromise of the victim environment.
The researchers said they found 2,388 organizations with injectable DSNs and observed an 85% success rate in controlled testing across more than 100 organizations, including confirmed cases of real agent execution. Their proof of concept used an npm package launched via a code block command to validate access to local secrets such as environment variables, Git credentials, private repository URLs, and user identity data, then send limited metadata to a Tenet-controlled beacon server. Sentry acknowledged the issue and reportedly deployed a global content filter for a specific payload string, while Tenet argued the weakness reflects a broader architectural risk in AI agents that consume externally influenced data through MCP-like integrations.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
4 events from the most recent confirmed update back to the earliest known activity.
Tenet releases Agent-JackStop mitigation tool
Tenet released a mitigation tool called Agent-JackStop in response to the Agentjacking attack technique. The tool was presented alongside reporting that the broader design issue remains difficult to fully solve at the ingestion layer.
Tenet Security publicly discloses Agentjacking attack class
Tenet Security publicly disclosed a new attack class called Agentjacking that can trick AI coding agents such as Claude Code and Cursor into executing attacker-controlled code via forged Sentry error events and MCP integrations. The researchers said they found 2,388 organizations with injectable DSNs and observed high success rates in testing and confirmed real agent executions.
Sentry acknowledges issue and deploys payload-string content filter
After receiving Tenet's disclosure, Sentry acknowledged the issue and reportedly deployed a global content filter for a specific payload string rather than fully remediating the broader problem. Sentry also characterized the wider attack class as not defensible at the ingestion layer.
Tenet Security discloses Agentjacking findings to Sentry
Tenet Security disclosed its Agentjacking research to Sentry on June 3, 2026. The report described abuse of public Sentry DSNs and MCP integrations to feed attacker-controlled content to AI coding agents.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
4 references tracked. Mallory keeps watching after this page renders.
A public Sentry key is all it takes to hijack Claude Code, Cursor, and Codex - The New Stack
thenewstack.io
Open sourceAgentjacking attack exploits AI coding tools with fake error reports | brief | SC Media
scworld.com
Open sourceNew Agentjacking Attack Hijacks Your AI Coding Agent to Run Code From Hackers Server
cybersecuritynews.com
Open sourceAgentjacking Attack Tricks AI Coding Agents Into Running Malicious Code
thehackernews.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


