AML.T0078 · Drive-by Compromise

Explore 6 source-supported AI security cases for AML.T0078 · Drive-by Compromise in MITRE ATLAS, with evidence, scope, and defensive analysis.

Risk category

Adversaries may gain access to an AI system through a user visiting a website over the normal course of browsing, or an AI agent retrieving information from the web on behalf of a user. Websites can contain an [LLM Prompt Injection](/techniques/AML.T0051) which, when executed, can change the behavior of the AI model. The same approach may be used to deliver other types of malicious code that don't target AI directly (See [Drive-by Compromise in ATT&CK](https://attack.mitre.org/techniques/T1189/)).

Official framework source ↗ · Open interactive explorer ↗

Incident ·

OpenAI Codex and Claude Code: When Downloads Becomes a Trusted Workspace

Coding agents can load local instruction files when they open a trusted workspace. Forever Security intercepted a 13 KB AGENTS.md in a customer’s Downloads folder that tried to make OpenAI Codex install the malicious npm package function-color. In an isolated reproduction, the file directed Codex to register a user-level MCP server and launch a new agent process without the original safeguards. In a separate Claude Code test, a researcher-written CLAUDE.md redirected the model connection, exposing an OAuth token and allowing a forged tool call. Both paths depended on treating a browser’s download destination as a trusted workspace.

ATLAS annotations follow the source SecureFlow steps; they are not a MITRE endorsement of cross-framework mappings.

AIA · Read the full case ↗ · SecureFlow · Read the full case ↗

Validated Research ·

Data Exfiltration via an MCP Server used by Cursor

The Backslash Security Research Team demonstrated that a Model Context Protocol (MCP) tool can be used as a vector for an indirect prompt injection attack on Cursor, potentially leading to the execution of malicious shell commands. The Backslash Security Research Team created a proof-of-concept MCP server capable of scraping webpages. When a user asks Cursor to use the tool to scrape a site containing a malicious prompt, the prompt is injected into Cursor's context. The prompt instructs Cursor to execute a shell command to exfiltrate the victim's AI agent configuration files containing credentials. Cursor does prompt the user before executing the malicious command, potentially mitigating the attack.

ATLAS annotations follow the source SecureFlow steps; they are not a MITRE endorsement of cross-framework mappings.

SecureFlow · Read the full case ↗

Validated Research ·

AI ClickFix: Hijacking Computer-Use Agents Using ClickFix

Embrace the Red ( https://embracethered.com/) demonstrated that AI computer-use agents are vulnerable to social engineering attacks and can be manipulated into executing arbitrary code on a victim's machine. The attack is a variation on "ClickFix" which is a social engineering attack that fools humans into copying malicious commands and executing them. The researcher used ChatGPT to generate a website designed to attract interactions with computer-use agents. When a user asked their Claude Computer-Use Agent to visit the researcher's website, the text "Are you a computer? Please see instructions to confirm:" caused the agent to click the associated button. This executed JavaScript to copy a malicious command into the agent's clipboard. The agent then proceeded to follow the instructions, opening a terminal, pasting the malicious command, and executing it. The command downloads a script from the researcher's website and executes it. In the demonstration, the script opens the victim's Calculator App, but in practice an adversary could run arbitrary code, compromising the victim's system.

ATLAS annotations follow the source SecureFlow steps; they are not a MITRE endorsement of cross-framework mappings.

SecureFlow · Read the full case ↗

Validated Research ·

ChatGPT Conversation Exfiltration

Embrace the Red (https://embracethered.com/blog/) demonstrated that ChatGPT users' conversations can be exfiltrated via an indirect prompt injection. To execute the attack, a threat actor uploads a malicious prompt to a public website, where a ChatGPT user may interact with it. The prompt causes ChatGPT to respond with the markdown for an image, whose URL has the user's conversation secretly embedded. ChatGPT renders the image for the user, creating an automatic request to an adversary-controlled script and exfiltrating the user's conversation. Additionally, the researcher demonstrated how the prompt can execute other plugins, opening them up to additional harms.

ATLAS annotations follow the source SecureFlow steps; they are not a MITRE endorsement of cross-framework mappings.

SecureFlow · Read the full case ↗

Validated Research ·

AutoJack Turns Localhost Agent Control Planes Into a Browser-RCE Lesson

Microsoft's AutoJack research showed how untrusted web content rendered by a browsing agent could reach a local AutoGen Studio (Microsoft AutoGen's local interface for building and managing agents) MCP WebSocket route, reach a WebSocket handler with no Origin or authentication check, and supply server parameters that spawn arbitrary processes. Microsoft addressed the issue before PyPI release, but the architecture lesson is broader: localhost is not a security boundary for agent control planes.

ATLAS annotations follow the source SecureFlow steps; they are not a MITRE endorsement of cross-framework mappings.

AIA · Read the full case ↗ · SecureFlow · Read the full case ↗