MCP server scan shows harmless-looking tools can chain into attacks
A scanner run over 10,121 public Model Context Protocol servers flags tool combinations as a major source of risk. Hand checks on a 100-server sample confirmed about four in five of its reports.
scienceunderway.com/articles/mcp-server-scan-shows-harmless-looking-tools-can-chain-into-attacks

AI illustrationWhat the study shows
The Model Context Protocol (MCP) is a common standard that lets AI assistants and agents connect to outside tools. An MCP server is a small program that offers a set of these tools, such as reading files, running shell commands or controlling a browser. Thousands of such servers are listed in public marketplaces.
The authors, from Indiana University, UCLA and Nanyang Technological University, built a scanner called SCAN-MCP. It reads a server's source code and looks for two kinds of flaw. One is a weakness inside a single tool. The other is a tool chain: a sequence where one tool's output or side effect lets a later tool do something harmful.
Their main example is simple. A command tool blocks the word 'rm', the delete command. A second tool writes files. An attacker writes a script containing 'rm' with the file tool, then runs the script with the command tool. Neither tool looks dangerous alone, but together they bypass the block.
The scanner works in three stages. First it finds each tool and the code behind it, and cuts out the relevant code. Then a large language model proposes risky data flows, within tools and between pairs of tools, and fixed rule-based checks discard proposals that do not fit. Finally, a human tries selected reports in an isolated virtual machine.
Run over 10,121 public servers with about 90,000 tools, the scanner produced about 27,000 unconfirmed reports. Just under a third involved chains of tools. The authors stress these are risk signals, not counts of confirmed vulnerabilities.
To measure accuracy, analysts took a 100-server sample and tested every report by hand. They confirmed 124 of 150, about 83%. That included 19 of 20 tool-chain reports. On the same sample, the authors report lower precision for the comparison tools: about half for a plain language model reading the code, and well below that for Semgrep, Tencent's AI-Infra-Guard and Cisco's mcp-scanner.
For each of the 19 confirmed chains, running only the final tool from a clean start never reproduced the harm. The authors read this as evidence that these flaws really depend on the sequence. The work is an arXiv preprint. The PDF states acceptance at the ICSE 2027 software engineering conference, which we could not verify.
Our reading
In our reading, the strongest contribution is the framing, backed by a careful test. Security reviews of agent tools usually ask whether each tool is safe. This paper shows, with sandbox evidence, that the right question is often whether the set of tools on one server is safe together. The sink-only control, where the last tool alone caused no harm in any of the 19 cases, makes that point cleanly.
The precision result is credible but narrow. It rests on 150 reports from 100 servers, and the tool-chain figure rests on just 20 reports, with the 19 confirmed ones spread across nine servers. The headline count of about 27,000 reports is not a measure of how insecure the ecosystem is. The authors say so themselves, and readers should not repeat it as a vulnerability count.
A concrete case shows why this matters in practice. A widely used browser-automation server had separate tools to open a page, click a button and upload a file. Together, they could send a private local file to a page an attacker controls. The vendor first called the report out of scope, then changed its file-upload handling about two weeks later.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/mcp-server-scan-shows-harmless-looking-tools-can-chain-into-attacks
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | Working prototype run on 10,121 real MCP servers, with sandbox case studies. |
| II Benchmarked | Met | Compared with Semgrep, AI-Infra-Guard, Cisco mcp-scanner and a plain LLM on the same 100-server sample, with sandbox-confirmed precision. However, this is the authors' own sample, not an established public benchmark. |
| III Open source | Met | The paper links an artefact with the implementation, prompts, scripts and demo videos at https://github.com/mmzha2013/scan-mcp. |
| IV In production | Not yet | No documented deployment by a named organisation. One vendor patch followed a disclosure, but that is not use of the tool. |
What would move it up
A named MCP marketplace, enterprise security team or maintainer CI pipeline documenting routine use of SCAN-MCP. A recall measurement on a labelled benchmark would also strengthen the evidence.
The study
Mingming Zha, Ying Li, Yuan Tian et al.. Agent Smith in Action: Internet-scale, Automated Security Analysis of MCP Tools. arXiv, 26 November 2026. Read the paper
Notes
- Zha, Li, Tian and Wang, 'Agent Smith in Action: Internet-scale, Automated Security Analysis of MCP Tools', arXiv preprint, November 2026. The PDF states acceptance at ICSE 2027. Source
- SCAN-MCP artefact: implementation, prompt templates, scripts and three sandbox demo videos. Source
- Precision on the 100-server sample: 124 of 150 reports confirmed (82.67%), bootstrap 95% interval 76.67% to 88.67%. Single-tool 105/130, tool-chain 19/20.
- Baseline precision on the same sample: Pure-LLM 50.79%, AI-Infra-Guard 36.65%, Semgrep 19.15%, mcp-scanner 0% (2 reports).
- Full corpus: 10,121 servers, 90,200 tools, 27,123 reported findings, of which 8,422 (31.05%) tool-chain reports. These are unconfirmed.
- Ablation: without slicing, precision 21.40%; without filters, 32.37%, but 44 more confirmed findings than the full system.
- Readiness: level III, open source available. Code released; no documented production use by a named organisation.
Edited and signed by
Stefan PerdalFounder. Twenty-five years of building digital products.194 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
How we workNo corrections


