Agentjacking attack exploits Sentry error data to hijack Claude Code

Tenet Security disclosed in June 2026 that a single crafted Sentry error event successfully hijacked Claude Code in controlled testing. The attack, dubbed agentjacking, injected malicious instructions into error data that the AI coding agent processed with the developer's full privileges. According to Tenet's report, the attacker used a publicly exposed Sentry credential — requiring no breach and no authentication — to send a fake error report. Claude Code then executed the attacker's code, and not a single security alert fired. The demonstration highlights a fundamental vulnerability in how AI agents trust external data sources like error monitoring platforms.

The attack vector exploits the common practice of AI coding agents ingesting error logs to debug and fix issues. By crafting a malicious error event, the attacker effectively turned Sentry into a delivery mechanism for arbitrary code execution. Tenet's testing showed that the agent ran the injected code with the same permissions as the developer, including access to source code, deployment pipelines, and cloud infrastructure. The attack succeeded because the agent had no mechanism to validate the integrity of the error data it received. This raises serious questions about the security assumptions underlying AI-assisted development workflows.

Datadog, PagerDuty, and Jira share similar exposure to agentjacking

Tenet Security's report also identified that Datadog, PagerDuty, and Jira have the same exposure to agentjacking attacks. These platforms, like Sentry, are commonly integrated into developer workflows and can feed data directly into AI coding agents. The attack methodology remains consistent: a malicious event or notification from any of these services could inject instructions that the AI agent executes without validation. According to Tenet's analysis, the vulnerability stems from the lack of integrity checks on data ingested from external monitoring and incident management tools.

The implications are broad because these platforms are deeply embedded in modern DevOps pipelines. Datadog provides real-time monitoring and alerting, PagerDuty handles incident response, and Jira manages project tracking — all of which can trigger automated actions by AI agents. Tenet demonstrated that a crafted incident in PagerDuty could cause an AI agent to modify deployment configurations, while a fake Jira ticket could instruct the agent to alter source code. The report notes that the attack surface extends to any platform that supplies structured data to AI agents without cryptographic verification of the data's origin and integrity.

How the agentjacking attack bypassed EDR, WAF, IAM, and firewall defenses

Tenet Security's controlled testing revealed that the agentjacking attack completely bypassed endpoint detection and response (EDR), web application firewall (WAF), identity and access management (IAM), and network firewall systems. The attack succeeded because it exploited the AI agent's trust in data from a legitimate, whitelisted service — Sentry. The malicious error event appeared as normal traffic to security tools, which had no rules to flag data injection through error monitoring channels. According to Tenet's report, the attacker's code executed within the agent's process, which already had authorized access to the developer's environment.

The failure of these security layers highlights a gap in current defense strategies. EDR systems monitor for malicious executables and anomalous behavior, but the attacker's code ran as part of the AI agent's legitimate process. WAFs inspect web traffic but cannot distinguish a malicious error event from a legitimate one when the payload is structured as standard error data. IAM controls enforce user permissions, but the agent already had full developer privileges. Firewalls protect network boundaries, but the attack used outbound connections from the agent to external services, which is typically allowed. Tenet emphasized that this attack vector requires a new class of security controls focused on AI agent data provenance.

Tenet Security's disclosure and industry implications for AI coding agents

Tenet Security's June 2026 disclosure of the agentjacking vulnerability has significant implications for the rapidly growing AI coding agent market. Companies like Anthropic, which developed Claude Code, and Cursor, another AI coding assistant tested by Tenet, must now address this fundamental security flaw. According to Tenet's report, the vulnerability is not specific to any single AI agent but is inherent in the design of agents that trust external data sources without validation. The disclosure recommends that AI coding agents implement cryptographic verification of data provenance, audit trails for all ingested data, and sandboxed execution environments for processing external inputs.

The industry response has been mixed, with some companies acknowledging the issue while others remain silent. Anthropic reportedly acknowledged the vulnerability and is working on mitigations, according to sources familiar with the matter. Cursor has not publicly commented on the disclosure. The broader AI security community has called for standardized security frameworks for AI agents, similar to the OWASP guidelines for web applications. Tenet's report also suggests that developers should limit the permissions granted to AI coding agents, use read-only access where possible, and implement manual approval gates for any actions that modify production systems. The disclosure serves as a wake-up call for the entire AI development ecosystem.

Mitigation strategies and future directions for AI agent security

Tenet Security's disclosure outlines several mitigation strategies to protect against agentjacking attacks. The primary recommendation is to implement cryptographic signatures for all data ingested by AI agents from external platforms. This would allow agents to verify that error events, notifications, and tickets originated from legitimate sources and were not tampered with in transit. Additionally, Tenet suggests that agents should operate in sandboxed environments with restricted permissions, limiting the damage even if an attack succeeds. The report also recommends that developers use dedicated service accounts with minimal privileges for AI agents, rather than granting them full developer access.

Looking ahead, the security community is calling for standardized protocols for AI agent data ingestion. The OWASP Foundation has reportedly formed a working group to develop guidelines for AI agent security, according to sources. Platform providers like Sentry, Datadog, PagerDuty, and Jira are also expected to implement data signing mechanisms to prevent tampering. For developers using AI coding agents, the immediate advice is to review all integrations, limit agent permissions, and monitor for unusual behavior. Tenet's disclosure marks a critical turning point in understanding the security risks of AI-assisted development, and the industry must act quickly to implement safeguards before real-world attacks occur.