What's Happening?
Researchers from Tenet Security have identified a new type of cyberattack called 'agentjacking,' which targets AI coding agents by exploiting a vulnerability in the Sentry app performance monitoring tool. This attack allows malicious actors to inject
harmful commands into Sentry error events, which AI coding agents then execute as if they were legitimate instructions. The attack is particularly concerning because it does not require phishing and can be executed by embedding a public Sentry DSN in frontend JavaScript. The researchers demonstrated the attack's effectiveness with an 85% success rate across popular AI coding agents like Claude Code, Cursor, and Codex. They also identified over 2,388 organizations with exposed injectable DSNs, highlighting the widespread vulnerability.
Why It's Important?
The discovery of 'agentjacking' attacks underscores a significant security risk in the software development industry, particularly as AI coding agents become more integrated into development workflows. These attacks can lead to severe consequences, such as the theft of CI/CD pipeline credentials, unauthorized access to private source code repositories, and compromised cloud infrastructure. The ability to execute malicious code without detection by existing security tools like EDR and web app firewalls poses a critical threat to organizations relying on AI for software development. This vulnerability highlights the need for enhanced security measures and awareness among developers and security leaders to protect against potential software supply chain attacks.
What's Next?
Organizations using AI coding agents must evaluate their security protocols to mitigate the risks posed by 'agentjacking' attacks. This includes assessing which tools their AI agents connect to, ensuring these tools do not return untrusted data, and implementing controls to prevent injected data from triggering code execution. Security leaders are urged to recognize MCP integrations as a new frontier for software supply chain attacks and to take proactive steps to secure their development environments. As the industry adapts to these threats, there may be increased collaboration between cybersecurity firms and software developers to develop more robust defenses against such vulnerabilities.













