Knowledge Base Regulation Tracker Standards & Frameworks OSS Directory AI Incident Database Research Paper Library Case Studies Society Articles News Jobs About Charter Sign inBecome a Member
Home/Case Studies/Data Exfiltration via an MCP Server used by Cursor

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.

LLM Prompt CraftingStage CapabilitiesLLM Prompt ObfuscationDrive-by CompromiseIndirectAI Agent Tool InvocationCredentials from AI Agent ConfigurationExfiltration via AI Agent Tool Invocation

Contribute

Spot an error, or know a record we should add? Members can propose additions and submit corrections.