Agentjacking vulnerability exposes Claude Code and Cursor to hijacking via fake error reports

Researchers at Tenet Security found a way to compromise AI agents using the Model Context Protocol. The attack requires no malware, as the agent itself executes the attacker’s code with developer privileges.
The technique relies on spoofing data in Sentry. The attacker sends a fake report with a malicious command in the Resolution field. Agents connected to Sentry via MCP interpret this text as a trusted instruction and execute it in the terminal.
In tests, the vulnerability worked 85% of the time for Claude Code and Cursor. The attack gives access to environment variables, AWS keys, and GitHub tokens. It bypasses EDR and firewalls, as the agent’s actions are formally authorized by the user. Sentry addressed the issue with string filtering rather than fundamental changes.
Up next
Anthropic delays changes to Claude Code limits
Anthropic has delayed its planned switch to a new credit system for Claude Code. For now, Agent SDK and claude -p usage still count against your base plan limits. The old rules stay in place; no new charges or changes to your plan are in effect today.
Related stories
- Vulnerabilities in Claude Code plugin marketplace
- The .claude directory creates an attack surface in Claude Code
- Claude Desktop turned into a C2 agent via configuration poisoning
- Hackers use Claude for corporate network attacks
- Claude Code’s sandbox ships as an open-source npm package
- Claude Code stores MCP OAuth tokens in plaintext on Linux
Comments
No comments yet. Be the first.
Join the conversation
Sign in to leave a comment. It appears after moderation.

