Agentjacking: New Attack Exploits AI Coding Agents via Sentry Error Reports
Tenet Security researchers exposed 'Agentjacking' in June 2026—a novel attack that hijacks AI coding agents through manipulated Sentry error reports with an 85% success rate.
Tenet Security researchers exposed 'Agentjacking' in June 2026—a novel attack that hijacks AI coding agents through manipulated Sentry error reports with an 85% success rate.
Introduction
On June 12, 2026, researchers Ron Bobrov, Barak Sternberg, and Nevo Poran from Tenet Security published findings on a novel attack class they named "Agentjacking." The attack targets AI coding agents—specifically Claude Code, Cursor, and OpenAI Codex—by exploiting how these tools consume external error monitoring data. Unlike traditional software exploits, Agentjacking requires no malware, no stolen credentials, and no authentication. It works by manipulating the workflow that developers rely on most: asking an AI agent to fix a reported bug. In controlled tests, the attack achieved an 85% exploitation success rate and was confirmed to expose 2,388 organizations simultaneously.
How Agentjacking Works
The attack chain has four distinct steps, each exploiting a legitimate developer workflow.
Step 1: Access a Public Sentry DSN
Sentry is a widely used error monitoring platform. Developers integrate it into applications using a Data Source Name (DSN)—a connection string that allows the app to send error events to a Sentry project. Many DSNs are inadvertently exposed in public repositories or client-side JavaScript bundles. Attackers scan for these accessible DSNs without needing any credentials.
Step 2: Inject Malicious Commands into a Sentry Error Event
Using the exposed DSN, an attacker sends a crafted Sentry error event to the target project's error queue. This event looks like a legitimate application error but contains embedded malicious instructions—such as commands to exfiltrate environment variables, read Git credentials, or access private repository URLs.
Step 3: The Developer Delegates to an AI Agent
A developer sees the new error appear in their Sentry dashboard and, following normal practice, asks their AI coding agent to investigate and fix it. With 97% of developers now using AI coding tools daily, this delegation step is routine.
Step 4: The Agent Executes the Injected Commands
The AI coding agent fetches the full error payload from Sentry to understand the problem context. It processes the embedded malicious instructions as legitimate directives and executes them using the developer's own system privileges. The agent operates within the developer's authenticated environment, meaning it already has access to secrets, credentials, and internal repositories.
This attack class is significant because it exploits the trust relationship between a developer and their AI agent, not a vulnerability in the underlying AI model itself.
Who Is at Risk and How to Respond
Any organization using Sentry alongside AI coding agents is potentially exposed. The 2,388 confirmed organizations represent those identified through publicly discoverable DSNs at the time of the research disclosure. The actual exposure surface is broader.
Immediate steps developers should take:
- Audit DSN exposure: Check whether your Sentry DSNs appear in public repositories, client-side bundles, or documentation.
- Rotate exposed DSNs: Sentry allows DSN rotation. Any DSN confirmed or suspected to be public should be rotated immediately.
- Review agent permissions: Restrict what AI coding agents can access in your development environment. Agents do not need access to production secrets for routine debugging tasks.
- Treat error payloads as untrusted input: Do not allow AI agents to execute instructions embedded within error messages without human review.
- Enable Sentry inbound data filters: Sentry provides filtering controls that can reduce the acceptance of anomalous or externally injected events.
Security teams should add Sentry DSN exposure to their regular secret-scanning workflows alongside API keys and OAuth tokens.
Pros and Cons
Positive Aspects of This Disclosure
- Responsible disclosure process: Tenet Security published structured findings with technical detail, enabling defenders to act.
- Concrete, measurable findings: The 85% success rate and 2,388 organization figure give security teams clear scope to communicate risk to stakeholders.
- Novel attack class documentation: By naming and categorizing Agentjacking, researchers provide a framework for future detection and tooling.
- Broad industry awareness: Coverage across The Hacker News, The Next Web, Infosecurity Magazine, and cybersecuritynews.com ensures the developer community is informed.
Limitations and Concerns
- No vendor patch resolves this: The attack exploits the workflow, not a software bug. Mitigations require developer behavior changes and organizational policy updates, which are slower to adopt than patches.
- Scale is likely underreported: The 2,388 figure reflects only publicly discoverable DSNs. Private or semi-exposed DSNs were not counted.
- AI agent developers have not released coordinated responses: As of the disclosure date, no unified guidance from Anthropic, Cursor, or OpenAI specifically addresses Agentjacking in their documentation.
Outlook
Agentjacking represents a documented shift in attack surface. As AI coding agents become embedded in standard development workflows, the inputs those agents consume—error logs, issue trackers, documentation, code comments—become viable attack vectors. The Sentry vector is one instance of a broader pattern: any external data source that an AI agent reads with execution intent is a potential injection point.
Security tooling will need to evolve in response. Secret scanning tools are expected to add Sentry DSN detection as a standard check. AI coding agent developers face pressure to implement input sanitization or sandboxed execution for data fetched from external monitoring services. The research team's disclosure contributes to a growing body of work on prompt injection and agent manipulation that the security industry is beginning to formalize into threat models.
The 97% daily usage rate for AI coding tools means the attack surface is not shrinking. Organizations that treat AI agents as trusted automation without auditing what those agents consume are accepting risk that is now documented and quantified.
Conclusion
Agentjacking is a well-documented, technically specific attack class with a confirmed 85% success rate across three major AI coding platforms. The Tenet Security disclosure provides enough detail for security teams to act now. Developers using Claude Code, Cursor, or OpenAI Codex alongside Sentry should audit DSN exposure and restrict agent permissions immediately. The broader implication is that AI coding agent security requires the same rigor as any other privileged automation in a software supply chain.
Editor's Verdict
Agentjacking: New Attack Exploits AI Coding Agents via Sentry Error Reports earns a solid recommendation within the ai tools space.
The strongest case for paying attention is tenet Security's disclosure is technically detailed, enabling defenders to understand and act on the threat with concrete information, which raises the bar for what readers should now expect from peers in this space. Reinforcing that, the 85% success rate and 2,388 organization exposure figure provide measurable data for security teams to communicate risk internally adds practical value rather than just headline appeal. The broader signal worth registering is straightforward: agentjacking is the first documented attack class that exploits the AI coding agent workflow itself, not vulnerabilities in the underlying AI models. On the other side of the ledger, no vendor patch or software update can fully remediate this vulnerability—mitigations depend on developer behavior and organizational policy changes is a real constraint, not a marketing footnote, and it should factor into any serious decision. Layered on top of that, the 2,388 exposed organizations figure likely underestimates true exposure, as it only counts publicly discoverable DSNs narrows the set of teams for whom this is an obvious yes.
For product teams, content creators, and knowledge workers looking to upgrade a specific workflow, this is a serious evaluation candidate, not just a curiosity to bookmark. For everyone else, the safer posture is to monitor coverage and revisit once the use cases that matter to your team are demonstrated in the wild.
Pros
- Tenet Security's disclosure is technically detailed, enabling defenders to understand and act on the threat with concrete information
- The 85% success rate and 2,388 organization exposure figure provide measurable data for security teams to communicate risk internally
- Naming and documenting 'Agentjacking' as an attack class creates a framework for future detection tooling, threat modeling, and security research
- Wide coverage across multiple security publications ensures the developer community received timely notification
Cons
- No vendor patch or software update can fully remediate this vulnerability—mitigations depend on developer behavior and organizational policy changes
- The 2,388 exposed organizations figure likely underestimates true exposure, as it only counts publicly discoverable DSNs
- As of the disclosure date, Anthropic, Cursor, and OpenAI had not released unified guidance specifically addressing Agentjacking in their official documentation
- AI coding agent developers currently lack built-in input sanitization for data fetched from external monitoring services like Sentry
References
Comments0
Key Features
1. Attack vector: Crafted Sentry error events sent via publicly exposed DSNs inject malicious commands into AI coding agent workflows 2. No authentication required: The attack needs no malware, stolen credentials, or compromised accounts 3. 85% exploitation success rate confirmed across Claude Code, Cursor, and OpenAI Codex in controlled tests 4. 2,388 organizations confirmed simultaneously exposed via publicly discoverable Sentry DSNs 5. Data at risk: Environment variables, Git credentials, private repository URLs 6. Exploits developer workflow trust: Attack activates when a developer asks their AI agent to fix a reported error 7. Disclosed June 12, 2026 by Tenet Security researchers Ron Bobrov, Barak Sternberg, and Nevo Poran
Key Insights
- Agentjacking is the first documented attack class that exploits the AI coding agent workflow itself, not vulnerabilities in the underlying AI models
- The 85% success rate across three separate platforms indicates this is a systemic workflow vulnerability, not a single-vendor issue
- Sentry DSNs are frequently exposed in public repositories and client-side JavaScript bundles, making the initial attack step accessible without specialized tools
- Because AI agents operate with developer-level system privileges, a successful injection can access the full set of secrets and credentials in the development environment
- With 97% of developers using AI coding tools daily, the population of potentially vulnerable workflows is very large
- No software patch resolves this attack; mitigations require workflow changes, DSN rotation, and permission scoping—making adoption slower than typical vulnerability remediation
- The attack demonstrates that any external data source an AI agent reads with execution intent constitutes a potential injection surface, not just Sentry
- Supply chain risk is significant: one exposed DSN in a shared project can cascade to every developer using that project's error monitoring
Was this review helpful?
Share
Related AI Reviews
iOS 27 Apple Intelligence: 8 Practical AI Features Now Live in Beta
iOS 27 developer beta ships 8 embedded Apple Intelligence features — from bill splitting to autonomous password hygiene — redefining mobile AI as invisible, app-native assistance.
Databricks Genie One: The Agentic AI Coworker Built on Enterprise Data
Databricks launched Genie One on June 16, 2026 — an agentic AI coworker that turns governed enterprise data into action via Slack, Teams, Gmail, Jira, and Confluence integrations.
Sakana Marlin Review: Autonomous 8-Hour Research Agent for Enterprise Strategy
Sakana AI launched Marlin on June 15, 2026 — an autonomous enterprise research agent running up to 8 hours per session to produce detailed strategy reports. Corporate access only.
GitHub Copilot's Usage-Based Billing Goes Live: Developers Report Credit Shock
GitHub Copilot switched to AI Credits metered billing on June 1, 2026. Power users are burning through monthly allowances in hours, sparking a wave of developer backlash.
