Skip to content
OpenTrain AIFor AI Companies

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

Mingming Zha, Ying Li, Yuan Tian, XiaoFeng WangPublished Nov 26, 2026
arXiv PDF
Researcher verdict
Context only
Use as context only
Benchmark evidence
Thin evidence
Verify before relying
Time to first repro
A few days
Plan setup time
Risk flags
2
Review before use

Abstract

Domain fit: AI-core · Core AI workload signals detected from paper context and implementation/artifact evidence.

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.

Results and benchmarks

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.
Task Dataset Metric Value Source
Agentic tool use Semgrep Precision . 19.15 paper-derived
Agentic tool use .I.G Precision . 36.65 paper-derived
Agentic tool use mcp-scanner Precision . 0.0 paper-derived

Audit each benchmark finding before selecting an implementation path.

Implementation

No direct implementation yet

Maintained implementation evidence is not confirmed for this paper yet.

Use the implementation status and reproduction sections for the current action plan.

Implementation evidence summary
Confidence: low

Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.

Reproduction risks
  • Estimate is based on paper-only reproduction flow

Reproduction readiness

Time to first repro: days
Last checked: Nov 30, 2026

No repo

No verified implementation available

  • No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.

Hardware requirements

  • Expect multi-day setup/compute for meaningful reproduction based on current guidance.

Hugging Face artifacts

No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.

Tip: start with models, then check datasets and spaces if you need evaluation data or demos.

Research context

Tasks

Agentic tool use

Methods

Transformer

Domains

Natural Language Processing, Large Language Models, AI Agents

Evaluation and human feedback data

Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in HFEPX
Explore similar papers

Jump to Paper2Code search queries derived from this paper's research context.