Agent Smith in Action: Internet-Scale Automated Security Analysis of MCP ToolsAgent Smith in Action: Internet-scale, Automated Security Analysis of MCP Tools
Quick read
Based on the paper's full text (AI-generated); refer to the original
Researchers from Indiana University, UCLA, and Nanyang Technological University proposed SCAN-MCP, a tool-chain-aware security analysis framework for MCP servers; analysis of 10,121 MCP servers and 90,200 tools produced 27,123 reported findings, of which 8,422 (31.05%) were tool-chain reports. The framework combines LLM-assisted tool mapping, Tree-sitter static slicing, and an inter-tool dependency graph, with findings verified by analysts in an isolated sandbox; on a stratified subset of 100 servers, 124 of 150 reports were confirmed (82.67%), 19/20 tool-chain reports were confirmed, and a control that invoked only the terminal tool reproduced the effect in 0 of 19 cases. Cases include writing a file and then executing it to bypass a command blacklist, and a browser automation server exfiltrating local sensitive files via navigation, clicking, and uploading; the relevant vendor initially considered this out of security scope and patched it about two weeks later. The authors state that the full-corpus numbers are risk signals rather than a confirmed vulnerability rate, and the framework has been open-sourced and reported to MCP.so, Glama, and Smithery.
- Tools in MCP servers are often invoked by an LLM or user at runtime in combinations based on files, shared state, parameters, and conversation context; even if a single tool appears harmless, it may form an exploitable tool chain; such cross-tool dependencies do not appear in the source code call graph, and existing rule-based and interprocedural analyzers struggle to audit them at ecosystem scale.
- SCAN-MCP has three stages: use LLM assistance plus source verification to map tool schemas to handlers, and use Tree-sitter for static slicing; infer sources/sinks and build an inter-tool dependency graph to enumerate candidate chains; then filter by deterministic structural and type gating, generate PoCs, and have analysts manually verify them in an isolated sandbox.
- On 10,121 MCP servers and 90,200 tools, 27,123 reports were produced, of which 8,422 were tool-chain reports; on a stratified sample of 100 servers, 124 of 150 reports were manually confirmed (82.67%), including 19/20 tool chains; in all 19 confirmed tool-chain cases, the effect was not reproduced in a control that retained only the terminal tool; ablations show that removing slicing or filtering reduces precision.
- Only tool chains within a single server are analyzed, with cross-server chains left for future work; the full-corpus numbers are reports rather than exhaustively confirmed vulnerabilities, and precision is estimated only from the 100-server sample; source grounding and pattern filtering are not complete semantic proofs and may miss reflection, runtime-generated code, or framework-specific dispatch; sandbox verification is limited by runtime prerequisites such as credentials and network; tool-chain verification covers only some languages and server scales.
The authors' open-source SCAN-MCP achieved 82.67% sandbox-confirmed precision on a sample of 100 servers, indicating that MCP security review needs to cover tool combinations, not just individual tools.
Related events and news
1 events · 0 news mentions
- This event's paper
SCAN-MCP 大规模检测 MCP 工具链安全缺陷