Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
ai-platform-securityinitial-access-methoddata-exfiltration-methodleaked-secret-api-key

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

Updated 12h agoFirst seen Jun 12, 20264 sources

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.

Share:
Agentjacking Exploits Sentry MCP to Make AI Coding Agents Run Malicious Code
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

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

4 EVENTS
Jun 18, 20263d 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
Jun 12, 202610d 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

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
Jun 3, 202619d 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.

25 LINKEDOpen in app
Affected products
9 linked
Claude CodeSentryCursorWindowsGithubWindows Subsystem For LinuxMacosCodexCursor
Organizations
16 linked
AnysphereAnthropicSentryTenet SecurityAmazon Web Servicesnpm, Inc.CensysOpenaiGitHubLinkedinCloudflareHackReadXDockerGoogleTenet Threat Labs
The operational view lives in Mallory

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, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

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