Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

经 Cursor 使用的 MCP 服务器数据渗漏 (AML.CS0045)

一句话通俗理解

「帮我抓取这个网页」——Cursor 抓回来的不只是内容,还有藏在内的注入指令和一条 curl 命令。

案例速览

维度内容
案例类型演练 / 安全研究
发生时间2025-06-24
攻击者Backslash Security Research Team
受害目标Cursor

事件经过

Backslash Security 研究团队构建了网页抓取类 MCP 服务器作为注入载体:用户让 Cursor 用该工具抓取含恶意提示词的网站时,注入进入上下文——提示词指示 Cursor 执行 shell 命令(curl)外传受害者的智能体配置文件(含凭证)。

运用的 ATLAS 技术

以下攻击链映射来自 MITRE ATLAS 官方数据(AML.CS0045 的 employs 关系),按官方步骤编号排序;技术名称链接至本库对应技术文档,引用文字为官方对本次运用的描述。

S00

  • LLM 提示词构造 (AML.T0065)

    The researchers crafted a malicious prompt containing an instruction to execute the malicious shell command to exfiltrate the victim’s AI agent credentials.

S01

S02

S03

S04

  • 路过式入侵 (AML.T0078)

    When a user asked Cursor to use an MCP tool to scrape the malicious website, the contents of the malicious prompt was retrieved and ingested into Cursor’s context window.

S05

  • 间接提示词注入 (AML.T0051.001)

    When the MCP server scraped the malicious web site, it returned the injected prompt to the MCP client and poisoned the context of the Cursor LLM. Cursor executed the malicious prompt embedded in the website scraped by the MCP tool.

S06

Cursor prompted the user before executing a shell command, potentially mitigating this attack.

S07

  • LLM 提示词混淆 (AML.T0068)

    When the MCP server scraped the malicious web site, it returned the injected prompt to the MCP client and poisoned the context of the Cursor LLM. The shell command in the malicious prompt was obscured via base64 encoding, making it less clear to the user that something malicious may be executed.

S08

S09

S10

  • 财务危害 (AML.T0048.000)

    A bad actor could use the stolen credentials to cause financial damage and could also steal other sensitive information from the victim user.

关联战术

参考资料

以下为 MITRE ATLAS 官方案例收录的参考来源:


版本: ATLAS 2026.09 | 更新: 2026-10-24 | 模板: ATLAS 案例研究 v1.0