No-Box Vulnerability Analysis: Description-only Detection of Indirect Prompt Injection Vulnerabilities in MCP Servers

Zehua Zhang, Jie Hu, Pratham Hegde, Aditya Maheshbhai Gabani, Souradip Nath, Yibo Liu, Siyu Liu, Hongkai Chen, Hulin Wang, Zhuoer Lyu, Chang Zhu, Divij Handa, Yan Shoshitaishvili, Tiffany Bao, Ruoyu Wang, Adam DoupearXiv 2026

TL;DR

This paper introduces "no-box vulnerability analysis," a novel security paradigm that detects potential vulnerabilities using only system metadata (like documentation and tool descriptions) without requiring access to source code or runtime interaction. Applying this approach to Model Context Protocol (MCP) servers, the authors developed a tool called MCPSEC that successfully identified 98.9% of verified indirect prompt injection vulnerabilities at an average cost of just $1.65 per server.

What Problem Does This Paper Address?

Traditional vulnerability discovery relies on three main paradigms: white-box (analyzing source code), black-box (interacting with a running system), and gray-box (a mix of both). However, third-party auditors often face situations where none of these are feasible. The target software might be closed-source, commercially gated, or running on critical infrastructure (like a hospital MRI machine) where live security testing could cause catastrophic disruptions or ethical violations.

This gap is especially dangerous for the rapidly growing ecosystem of Large Language Model (LLM) agents. LLM agents rely on Model Context Protocol (MCP) servers to interact with external tools and data sources (e.g., web scrapers, retail APIs, or database connectors). Because LLMs process instructions and data in the same context window, they are highly susceptible to Indirect Prompt Injection (IPI)—where an attacker places malicious instructions inside an external data source that the LLM later retrieves and executes. Many MCP servers are proprietary or hard to test safely, leaving a massive blind spot in AI security.

Methods

The authors propose No-Box Vulnerability Analysis. The core insight is that system metadata defines the intended behavior of a system, which inherently implies irreducible data flows—the minimal data skeletons that any valid implementation must preserve. By reasoning over these implied flows, an analyst can hypothesize vulnerabilities without ever touching the actual system.

To automate this, they built MCPSEC, a two-stage pipeline driven by an LLM (GPT-5.4) and deterministic validation:

Fig. 1. MCPSEC pipeline.
  1. Stage 1: Data Flow Speculation: MCPSEC reads the tool's registration metadata (names, descriptions, input schemas). It uses an LLM to over-approximate potential data flows, speculating about hidden intermediate entities (like caches or background services). A rule-based algorithm then deterministically assembles and validates these into structured data flows.
  2. Stage 2: LLM-Assisted Risk Assessment: The validated flows are evaluated against a four-axis risk rubric: Payload Fidelity (is data preserved verbatim?), Attacker Controllability (can an attacker reach the source?), Semantic Executability (does the output contain free-form text/code?), and Sanitization (is there filtering?).

If a flow satisfies the risk preconditions, MCPSEC outputs a Theory-of-Concept (ToC)—a detailed, natural-language hypothesis of how the vulnerability could be exploited, serving as a blueprint for future human validation.

Datasets

The authors evaluated MCPSEC on a newly compiled corpus of 20 widely deployed, high-profile MCP servers comprising 177 distinct tools.

The evaluation dataset spans 20 open-source MCP servers across four distinct operational categories.

The servers were randomly sampled from the top-100 MCP Market leaderboard and grouped into four categories based on how they interact with data:

  • Category A: Search, Web, and Document Retrieval (e.g., Brave Search, Firecrawl)
  • Category B: Browser-Mediated Web Interaction (e.g., Playwright, Puppeteer)
  • Category C: SaaS Collaboration and Communication (e.g., GitHub, Slack, Google Workspace)
  • Category D: Infrastructure, Cloud, and Data Platforms (e.g., Kubernetes, Terraform)

To establish a ground truth, human evaluators performed rigorous white-box static and dynamic analysis, ultimately confirming 95 of the tools to be genuinely vulnerable to IPI via controlled Proof-of-Concept (PoC) exploits.

Key Insights and Ideas

  • The "Irreducible Flow" Advantage: Metadata alone provides surprisingly strong signals. If a tool's description says it "fetches web content," it must create a data flow from an untrusted source to the LLM context. This makes no-box analysis highly effective for data-flow-centric flaws like injections.
  • A Pervasive Security Blind Spot: The study revealed a massive conceptual gap in how developers build MCP servers. A staggering 92.3% of the examined tools applied absolutely no sanitization to external data. Developers routinely treat valid API responses as "safe," forgetting that the content inside those responses might be controlled by a malicious third party.
  • Low-Cost Triage: No-box analysis acts as an incredibly cheap, zero-risk front-end triage layer. At roughly $1.65 per server, organizations can scan thousands of third-party tools at the point of installation without needing API keys, deployment access, or source code.

Key Results

  • Near-Perfect Recall: Out of the 95 human-verified vulnerable tools, MCPSEC successfully flagged 94 of them (98.9% recall) using metadata alone.
  • Outperforming Baselines: MCPSEC significantly beat a direct prompting LLM baseline, which only achieved an 84.2% recall (missing 15 vulnerabilities, particularly in complex SaaS environments).
  • The Precision Tradeoff: Because MCPSEC deliberately over-approximates data flows to maximize safety, it flagged 143 tools in total, resulting in a lower precision of 65.7%. However, in security auditing, catching a vulnerability (high recall) is generally prioritized over avoiding false alarms.

Limitations and Future Work

While powerful, no-box analysis has clear boundaries:

  • Dependency on Metadata Quality: The method relies entirely on clear, standardized documentation. If an MCP server has poorly written or uninformative tool descriptions, the pipeline's accuracy will degrade.
  • Vulnerability Class Restrictions: This approach excels at structural, data-flow vulnerabilities (like IPI, SQL injection, XSS, and SSRF). However, it is fundamentally unsuited for low-level execution bugs like memory corruption or complex race conditions, which depend entirely on implementation minutiae.
  • Single-Hop Scope: MCPSEC currently analyzes tools in isolation. It does not account for multi-hop attack chains, cross-turn memory accumulation, or interactions between multiple servers.

The authors plan to explore the generalizability of no-box analysis on other software ecosystems, such as browser extensions, CI/CD actions, and serverless applications.

Summary updated

BibTeX
@misc{zhang2026no,
  author = {Zehua Zhang and Jie Hu and Pratham Hegde and Aditya Maheshbhai Gabani and Souradip Nath and Yibo Liu and Siyu Liu and Hongkai Chen and Hulin Wang and Zhuoer Lyu and Chang Zhu and Divij Handa and Yan Shoshitaishvili and Tiffany Bao and Ruoyu Wang and Adam Doupe},
  title = {{No-Box Vulnerability Analysis: Description-only Detection of Indirect Prompt Injection Vulnerabilities in MCP Servers}},
  year = {2026},
  eprint = {2609.10854},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.10854},
}
Figure