Real-world attacks on corporate AI agents | Kaspersky official blog
Source Kaspersky Security Blog
Description
We dissect incidents to examine the risks associated with trusted agents, and outline effective mitigation strategies.
Impact
The impact includes unauthorized access to sensitive corporate data such as developer secrets, API keys, cryptocurrency wallets, and financial information. Attackers repurpose legitimate AI agents to perform reconnaissance, data harvesting, and potentially persistent compromise without triggering conventional security alerts. This undermines enterprise security controls and increases the risk of data breaches and intellectual property theft. The threat affects multiple organizations globally, with thousands of secrets exposed in documented incidents. The exploitation of AI agents also expands the attack surface through integration with third-party services and protocols like MCP, potentially leading to covert data exfiltration.
Defensive guidance
Organizations should implement the following mitigations: maintain a detailed inventory of AI agents, MCP servers, and associated tools; enforce strict allowlists specifying exact package versions; apply the principle of least privilege to agent permissions; require human-in-the-loop approval for package installations, script executions, and other high-risk actions; run agents in isolated environments with limited access; disable dangerous auto-approval modes; restrict outbound network connections to approved services only; store secrets in secure vaults with short-lived tokens and regular rotation; and forward agent activity logs to SIEM and XDR systems with specialized AI-focused detection rules. These measures reduce the risk of unauthorized agent exploitation and data exfiltration.
Summary
Attackers have leveraged trusted AI agents within corporate infrastructures to perform unauthorized actions by exploiting their extensive access and autonomous capabilities. Examples include the s1ngularity attack where trojanized Nx npm packages issued commands to AI agents to search for sensitive data and exfiltrate it, and the AgentJacking study demonstrating prompt injection via unauthenticated telemetry error reports to execute malicious commands. The Model Context Protocol, used for AI agent tool integration, lacks robust security, enabling data exfiltration through manipulated tool descriptions. These attacks evade traditional security detection due to the legitimate nature of AI agent operations and the complexity of detecting malicious prompts embedded in natural language or data streams. Defenses require strict control over agent permissions, tool allowlists, human-in-the-loop approvals, and comprehensive monitoring tailored to AI workflows.