Chiosa
AI Security & Safety

A framework tests local tools for filesystem leaks

My Credentials, Please: Detecting Filesystem Capability Laundering in MCP Servers at Scale · arXiv:2610.22301

3 min
Updated
Disclosure through a staging-and-diff sequence in the studied local-server deployment (§5.2). The repository path is fixed for both calls, while the attacker-influenced file path selects a fixture…
Disclosure through a staging-and-diff sequence in the studied local-server deployment (§5.2). The repository path is fixed for both calls, while the attacker-influenced file path selects a fixture outside it. Tool approval admits the calls, while the server’s filesystem…Figure 1 · My Credentials, Please: Detecting Filesystem Capability Laundering in MCP Servers at Scale · Zeqian Huang et al. · CC BY 4.0

In plain words

A local tool server may be able to read more files than its tool description suggests, even after a person approves a call. MCP-FSD is a framework that screens server code, estimates which files each tool should access, and tests whether a tool can reveal a planted credential outside that area.

In 150 selected tool-policy pairs, all three checks passed: an unsandboxed malicious attempt, a successful benign operation with the sandbox, and containment of the sandboxed attempt. Exact credential-marker matching supported 136 cases; other transcript evidence, including write side effects or response-shape changes, was used for the remaining 14. These results apply to tested cases and inferred boundaries.

The research

When a local tool call is approved, does that approval actually limit which files the server can access? If attacker-influenced arguments can steer a tool beyond its intended scope, file contents may be exposed through an ordinary tool response. The paper asks how to find and contain that gap.

MCP-FSD screens local tool servers, infers file-access boundaries and tests whether out-of-scope disclosure occurs and sandboxing contains it.

MCP-FSD screens local servers, infers a tentative file boundary for each tool, then tests whether a planted credential is disclosed beyond that boundary and whether sandboxing contains the attempt. Its checks also ask whether a benign in-scope operation still succeeds.

Across 150 unique tool-policy pairs, all three checks passed. Exact credential-marker matching supported 136 cases; the remaining 14 were adjudicated using other transcript evidence, including write side effects, response-shape changes, or external-CLI outputs.

Together, these outcomes support the finding that selected instances showed filesystem capability laundering and that the tested sandbox policies contained the attempts while preserving benign operations.

The results cover servers that could be installed and run, and use inferred boundaries rather than independently verified authorization rules. The response-focused tests may miss filesystem effects that do not appear in a response or require unreproduced conditions.

What the evidence shows

  • The gap behind approval

    MCP-FSD (Filesystem Scope Detection) is a framework for finding and testing filesystem capability laundering in local Model Context Protocol servers. These servers expose tools that AI agents can call.

    The concern is that approval of a call may leave the server process with broad file access, allowing attacker-influenced arguments to steer a seemingly ordinary tool beyond its intended scope.

  • A screening signal

    To identify candidates, MCP-FSD compares signs of filesystem access with each server’s functional category. In the final triage snapshot, 787 of 4,806 servers had a filesystem capability flag but no FileSystem category label.

    That mismatch helped select servers for further testing; it was not itself proof of a violation, since file access can be legitimate for other kinds of tools.

  • Testing disclosure and containment

    For selected tools, MCP-FSD infers a tentative boundary from launch settings, path inputs, descriptions and source code. It then checks whether a malicious attempt discloses an out-of-scope credential without a sandbox, whether an in-scope operation still works with the sandbox, and whether the sandbox contains the malicious attempt. These checks connect a possible code flaw to observable disclosure and containment.

  • What the results support

    A total of 150 unique tool-policy pairs passed all three checks. Exact credential-marker matching supported 136 cases; the remaining 14 were adjudicated from other transcript evidence, including write side effects, response-shape changes, or external-CLI outputs.

    The gate also required a benign sandboxed operation to succeed and the sandboxed malicious attempt to be contained. These outcomes support the authors’ conclusion that selected vulnerabilities were contained under the tested policies.

    Because the boundary is inferred and the corpus is selective, the count does not establish vulnerability prevalence across all MCP servers.

Deep

Next paperProfiling reveals capabilities that threat labels miss in agent skills