Manuscript Offprint

arXiv:2609.10854

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 Doupe

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 Doupe

School of Computing and Augmented Intelligence, Arizona State University

Abstract—Conventional vulnerability analysis relies on source-level or binary-level access, or dynamic interaction, all of which may be unavailable to third-party analysts auditing closed-source, remotely hosted, or commercially gated software. Therefore, we propose a new paradigm of no-box vulnerability analysis in which neither source code nor runtime interaction is accessible, and only functionality metadata is available. Such metadata defines the intended behavior of the system, including its inputs, outputs, and side effects, while constraining the space of implementations consistent with that behavior. The intended behavior implies irreducible data flows, the minimal source-to-sink data flow skeletons shared by all conforming implementations. By reasoning over irreducible data flows, an analyst can formulate vulnerability hypotheses without observing or interacting with the target system. The analyst can later validate these hypotheses when additional access becomes available.

We showcase the feasibility of no-box vulnerability analysis through implementing a pipeline called MCPSEC, which audits Model Context Protocol (MCP) servers for indirect prompt injection vulnerabilities using only the tool metadata exposed at server registration time.

We evaluate MCPSEC on 20 widely deployed MCP servers comprising 177 tools, among which human evaluators confirm 95 vulnerable tools. MCPSEC identified 143 tools as vulnerable, and for each vulnerable tool, it produces Theory of Concepts (ToCs), a hypothesized attack scenario for later analyst validation. Using metadata alone, MCPSEC recovers 94 (98.9% recall), compared with 80 (84.2% recall) for the LLM baseline. Overall, our results introduce no-box vulnerability analysis as a new analysis paradigm and demonstrate its practical feasibility in realistic systems.

I. INTRODUCTION

You're red-teaming a network, and after scanning you identify a juicy target server. Before you start analyzing the server, you check with your contact: uh oh, this server is the central (and only) credit card processing server for the entire company. If it goes down the company loses thousands of dollars per second. You're forbidden from sending traffic to this server lest you disrupt the process. What do you do? Exclude the system from your audit?

The issue is that traditional vulnerability discovery generally follows three paradigms: white-box analysis, where the source code of the target system is available; black-box analysis, which requires extensive interaction with the target system; and gray-box analysis, which combines interactions with information from the system.

However, there are situations in which the analyst may not have access to source code, access to deployment details, or the ability to freely interact. Furthermore, it might be unethical to test the system for vulnerabilities, as the only way to test is in deployment, yet potential vulnerability attempts might accidentally exploit other users. Consider also analyzing a hospital's MRI machine: no digital twin is available, a second machine cannot be procured due to expense, and the machine cannot be tested in situ or taken offline due to the impact on patient care.

To address this gap we conceptualize a new vulnerability analysis paradigm called no-box vulnerability analysis, which only requires access to system metadata to reason about the potential existence of vulnerabilities in a system.

Our insight is that for some vulnerability classes, even limited metadata (e.g., documentation or system description) can suffice for hypothesizing (and eventually discovering) instances of these vulnerabilities.

Consider HotCRP, whose documentation describes functionality that accepts an input string and queries the database for submitted papers that match. Every implementation that is consistent with this documentation must contain a data flow from user input to a database query.

The fact that all conforming implementations have this data flow suggests a vulnerability hypothesis: the potential existence of an SQL injection vulnerability. We call this vulnerability hypothesis a Theory-of-Concept (ToC), which is an explicit exploitation scenario that includes additional assumptions about the attacker's capabilities and roles, and the potential vulnerable flow details.

Of course, verifying the existence of a vulnerability requires testing it against the actual system, and thus a ToC provides a foundation for a human analyst to construct a Proof-of-Concept (PoC) of the vulnerability. Alternatively, human developers (who have access to implementation details) may use the ToC to timely reason about potential vulnerabilities and mitigations.

In this work, we use the discovery of indirect prompt

∗^{*}Correspondence: zzhan645@asu.edu injection (IPI) vulnerabilities to validate the feasibility of the no-box vulnerability analysis paradigm. IPIs occur when attacker-controlled instructions are injected into the context of a Large Language Model (LLM), where they subvert the model's subsequent reasoning or actions [1]. Model Context Protocol (MCP) servers are particularly susceptible to IPI attacks. They provide standardized interfaces that enable LLM agents to use external tools and data [2]. Many data sources retrieved by MCP servers, such as public web pages and third-party APIs, are attacker-controllable, which enables IPI in vulnerable MCP servers.

With more than 10,000 active public MCP servers [3], auditing them for IPI vulnerabilities is difficult: Many MCP servers are proprietary; moreover, ethically testing for indirect prompt injection vulnerabilities is difficult as it can require persisting prompt-injection payloads into live systems that benign users may accidentally access (and thus exposing them to the payload). These constraints make no-box vulnerability analysis a good fit for finding IPIs in MCP servers.

We develop a prototype called MCPSEC that analyzes MCP servers for IPI vulnerabilities. MCP servers publicly expose their functionality as tools for an LLM to invoke, and we use only the tool metadata as input to MCPSEC. MCPSEC infers data flows from attacker-controlled data sources to the LLM context, and augments the data flows with plausible intermediate data entities and operations. It then considers the attacker context (ability to control the data entities, etc.) against the vulnerability preconditions, and outputs ToCs. We implement MCPSEC as a multi-stage LLM-based reasoning system that uses the LLM's ability to reason about software architecture, data flows, and attacker capabilities.

We apply MCPSEC to 177 tools drawn from 20 widely deployed MCP servers across four categories: public web retrieval, browser automation, authenticated SaaS collaboration, and infrastructure and cloud platforms. On this dataset, MCPSEC generates 143 IPI ToCs. For comparison, a prompting-based LLM baseline generates 97 ToCs.

To further evaluate MCPSEC's performance, we conduct a staged evaluation where human evaluators receive progressively stronger evidence and assess whether the output of MCPSEC agrees with the evaluators' verdicts. Eventually, human evaluators confirm 95 tools as vulnerable to IPI through ethically controlled PoC testing. From metadata alone, MCPSEC recovers 94 of these vulnerabilities (98.9% recall), compared with 80 (84.2% recall) for the LLM baseline.

Our evaluation further surfaces a broader ecosystem finding: 132 (92.3%) tools examined do not apply any sanitization to external data on the path to the LLM context, indicating that safeguards against IPI vulnerabilities remain uncommon even in widely adopted commercial MCP servers. MCPSEC generates these ToCs at an average cost of $1.65 per MCP server, demonstrating that no-box vulnerability analysis can identify concrete, runtime-confirmed attack surfaces at practical cost in a realistic setting.

Contributions. This paper makes the following contributions:

• We conceptualize no-box vulnerability analysis, a new vulnerability analysis paradigm for reasoning about potential vulnerabilities using only metadata.

• We develop a no-box vulnerability analysis framework that speculates about plausible implementations and vulnerability requirements and outputs Theory-of-Concepts for later validation when additional access is permitted.

• We implement this framework as a prototype called MCPSEC and evaluate it on 177 sampled tools from 20 widely deployed MCP servers. In a controlled setting, MCPSEC recovers 94 of 95 confirmed IPI vulnerabilities, demonstrating the feasibility of no-box vulnerability analysis in a realistic setting.

In the spirit of open science, we will release all analysis data and source code upon acceptance of this paper. We will release generated ToCs (and PoCs when available) after the developers of vulnerable MCP servers fix our reported bugs.

References (58)