Skip to main content
Mallory
← Back to News
ai-platform-securitycredential-stealer-activitydata-exfiltration-methodinternet-exposed-service

Agentjacking Exploits Sentry MCP to Make AI Coding Agents Run Malicious Code

Emerging Technology Risk · 5 sources · Updated 5mo ago · First seen Jun 12, 2026

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.

New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Jun 3, 2026 – Jun 18, 2026
  1. Jun 18, 20265mo ago

    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.

    Agentjacking attack exploits AI coding tools with fake error reports | brief | SC Media
  2. Jun 12, 20265mo ago

    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.

    Agentjacking Attack Tricks AI Coding Agents Into Running Malicious Code
  3. Jun 12, 20265mo ago

    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.

    Agentjacking Attack Tricks AI Coding Agents Into Running Malicious Code
  4. Jun 3, 20266mo ago

    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.

    New Agentjacking Attack Hijacks Your AI Coding Agent to Run Code From Hackers Server
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

5 linked
Claude CodeCursorSentryCursorCodex

Organizations

1 linked
Sentry
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.