跳到正文
arXiv cs.AI· Mingming Zha, Ying Li, Yuan Tian, XiaoFeng Wang·· 2 小时前AI 评分58

SCAN-MCP 论文提出工具链感知的 MCP 服务器安全分析框架

Agent Smith in Action: Internet-scale, Automated Security Analysis of MCP Tools

AI 导读

论文提出 SCAN-MCP,一个感知工具链的 MCP 服务器安全分析框架,结合 LLM 辅助映射、Tree-sitter 静态切片、语义 source-sink 推断与跨工具依赖图构建。

正文 · 原文

View PDF HTML (experimental)

Abstract:The Model Context Protocol (MCP) has rapidly emerged as a common interface through which AI applications and agents connect to external tools, raising a software-engineering challenge for security analysis: independently developed tools are often composed at run time by a large language model (LLM) or a user through files, shared state, parameters, and conversational context, allowing exploitable tool chains to arise even when each individual tool appears benign. These implicit cross-tool dependencies are absent from conventional source-level call graphs, limiting the effectiveness of existing rule-based and interprocedural analyzers for ecosystem-scale MCP auditing. We present SCAN-MCP, a tool-chain-aware framework for detecting security flaws in MCP servers. SCAN-MCP combines LLM-assisted tool-handler mapping, Tree-sitter-based static slicing, semantic source-and-sink inference, inter-tool dependency graph construction, and deterministic structural and type checks. The LLM proposes mappings, flows, and proof-of-concept sketches. Source-level and structural checks screen proposals, and analysts manually validate reports from the sampled servers in an isolated sandbox. From a corpus of 10,121 MCP servers with 90,200 discovered tools, SCAN-MCP produced 27,123 reported findings, including 8,422 tool-chain reports (31.05%). On a language- and marketplace-stratified subset of 100 of these servers, we confirmed 105 of 130 single-tool reports and 19 of 20 tool-chain reports (124/150, 82.67% overall precision). SCAN-MCP achieved the highest observed precision among the evaluated analyzers on this subset. Sink-only controls reproduced the asserted effect in 0 of the 19 confirmed tool-chain cases under the tested conditions. These results show that securing the MCP ecosystem requires analyzing tool compositions, not only individual tool implementations.
Comments: 12 pages, 3 figures, 7 tables. Accepted at the 49th IEEE/ACM International Conference on Software Engineering (ICSE 2027)
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI); Software Engineering (cs.SE)
Cite as: arXiv:2611.36552 [cs.CR]
  (or arXiv:2611.36552v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2611.36552

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Mingming Zha [view email]
[v1] Thu, 26 Nov 2026 18:49:35 UTC (284 KB)

来源:arXiv cs.AI · arxiv.org