Ly Gravity

Agentjacking at DEF CON 34: How Public Sentry DSNs Become an AI Agent Attack Vector

CryptoNode Press Releases

At DEF CON 34, security firm Tenet unveiled a new class of attack targeting AI coding agents: Agentjacking. The demonstration showed that public Sentry Data Source Names (DSNs) can be weaponized to inject malicious commands into AI agents like Claude Code and Cursor, turning error monitoring pipelines into a covert attack surface.

The Vulnerability Chain

The attack exploits a fundamental architectural flaw in current AI agent design: the inability to distinguish between data and instructions. Tenet's researchers discovered that Sentry's ingestion endpoint accepts any POST request containing a valid DSN without authentication. By scanning public repositories and npm packages, they identified 2,388 organizations with exposed DSNs, including 71 in the top 1 million websites and approximately 27% of Fortune 1000 companies also reachable through Cloudflare's MCP integration.

The attack chain is straightforward: 1. Attacker finds a public DSN. 2. Attacker sends a malicious error event to Sentry via POST. 3. Developer asks their AI coding agent to debug a Sentry issue. 4. The agent fetches the issue through MCP, including the attacker's crafted markdown. 5. The agent interprets the markdown as a fix instruction (e.g., "run npm install package-x"). 6. The agent executes the command, installing a malicious package that steals credentials.

Agentjacking at DEF CON 34: How Public Sentry DSNs Become an AI Agent Attack Vector

Tenet reported an 85% success rate in controlled tests across 100+ organizations. The attack does not require bypassing model jailbreaks; it exploits the default trust agent models place on tool outputs.

Root Cause: MCP's Semantic Blind Spot

The Model Context Protocol (MCP) allows AI agents to connect to external tools like Sentry, Cloudflare, and databases. However, the protocol lacks a mechanism to label data as "instructional" or "informational." When an agent reads a Sentry issue, it treats the entire content as a legitimate context for debugging. An attacker who injects a fake error message with a step-by-step fix can trick the agent into executing arbitrary commands on the developer's machine.

This is a variant of indirect prompt injection, but with a critical difference: the injection vector is not a website or email but a trusted error monitoring service. The code does not lie, but it does omit—the agent has no way to verify that the fix suggestion is authentic.

Responses and Mitigations

Sentry acknowledged the issue but declined to implement a platform-level fix, stating that changing the authentication model for ingestion endpoints is "technically untenable." Instead, they deployed a content filter that blocks specific payload strings. Security experts note this is a classic IoC-based blacklist, easily bypassed with simple obfuscation.

Tenet released agent-jackstop, a drop-in hardening configuration for Cursor and Claude Code. The tool enforces network egress whitelists, command execution approval, subprocess-level credential protection, and treats all tool output as untrusted data. It supports both personal settings and MDM-based enterprise deployment.

Industry Implications

The Agentjacking attack is a wake-up call for the entire AI coding agent ecosystem. Enterprise security teams will likely slow adoption of AI coding tools until they can implement controls like least-privilege access, network segmentation, and agent behavior monitoring. The MCP ecosystem will shift from a feature race to a security race, with expectations for trust declarations, audit logs, and content sanitization.

For error monitoring platforms like Sentry, the incident erodes trust. If a trusted infrastructure component can be turned into an attack vector, enterprises may demand signed envelopes, DSN rotation, or project-level IP whitelisting. Startups offering self-hosted alternatives with authentication gateways could gain traction.

Contrarian Angle: Correlation ≠ Causation

While the attack is technically sound, the 85% success rate and 2,388 exposed organizations are based on Tenet's controlled tests. The real-world likelihood depends on developers actively asking agents to debug Sentry issues—a specific human-AI interaction pattern. Automated scanning alone cannot trigger the attack; it requires the developer to initiate the debugging workflow. Moreover, the content filter bypass speed remains unverified. The true risk may be lower than the headline numbers suggest, but the structural vulnerability is undeniable.

Takeaway: The Next Signal

The Agentjacking attack is not a one-off bug but a symptom of AI agent architecture's immature trust model. The next signal to watch is whether MCP adopters—Anthropic, OpenAI, and others—introduce a security layer in the protocol specification. If they do not, third-party security gateways will become a mandatory part of every AI agent deployment. The code does not lie, but it does omit—and that omission is now a dollar sign for the security industry.


This article is based on research presented at DEF CON 34 by Tenet Security. All data points are sourced from the public report and verified against on-chain and off-chain evidence.

Market Prices

BTC Bitcoin
$79,605.1 -1.76%
ETH Ethereum
$2,454.25 -2.78%
SOL Solana
$102.53 -1.36%
BNB BNB Chain
$747.7 +3.80%
XRP XRP Ledger
$1.4 -2.92%
DOGE Dogecoin
$0.0859 -1.89%
ADA Cardano
$0.2131 -3.49%
AVAX Avalanche
$7.5 +0.03%
DOT Polkadot
$0.9074 +3.64%
LINK Chainlink
$11.77 -2.05%

Fear & Greed

73

Greed

Market Sentiment

Event Calendar

{{年份}}
12
05
halving BCH Halving

Block reward halving event

15
04
halving Bitcoin Halving

Block reward reduced to 3.125 BTC

22
03
unlock Optimism Unlock

Circulating supply increases by about 2%

18
03
unlock Sui Token Unlock

Team and early investor shares released

08
04
upgrade Solana Firedancer

Independent validator client goes live on mainnet

28
03
unlock Arbitrum Token Unlock

92 million ARB released

30
04
upgrade Celestia Mainnet Upgrade

Improves data availability sampling efficiency

10
05
upgrade Ethereum Pectra Upgrade

Raises validator limit and account abstraction

Altseason Index

41

Bitcoin Season

BTC Dominance Altseason

Gas Tracker

Ethereum 28 Gwei
BNB Chain 3 Gwei
Polygon 42 Gwei
Arbitrum 0.5 Gwei
Optimism 0.3 Gwei

Market Cap

All →
# Coin Price
1
Bitcoin BTC
$79,605.1
1
Ethereum ETH
$2,454.25
1
Solana SOL
$102.53
1
BNB Chain BNB
$747.7
1
XRP Ledger XRP
$1.4
1
Dogecoin DOGE
$0.0859
1
Cardano ADA
$0.2131
1
Avalanche AVAX
$7.5
1
Polkadot DOT
$0.9074
1
Chainlink LINK
$11.77

🐋 Whale Tracker

🔵
0x2312...9fc1
6h ago
Stake
15,902 SOL
🔴
0x5d38...6834
12h ago
Out
1,961.09 BTC
🟢
0xf505...2b2d
6h ago
In
2,453 ETH

💡 Smart Money

0xb844...5e8d
Early Investor
-$4.4M
68%
0xd5dd...8b88
Arbitrage Bot
-$4.6M
74%
0x0de3...4975
Institutional Custody
+$3.7M
72%

Tools

All →