My Credentials, Please: Detecting Filesystem Capability Laundering in MCP Servers at Scale
Zeqian Huang, Mingyue Tang, Aonan Guan, Qiming Sun, Pengzhou He
Abstract
The Model Context Protocol (MCP) standardizes how AI agents invoke external tools. MCP servers expose tools through a declared contract consisting of a name, description, and argument schema. In typical local deployments, client-side approval of a tool call grants the underlying server process broad host filesystem permissions rather than restricting it to the declared operation. We study the resulting vulnerability class, filesystem capability laundering, where attacker-steered arguments cause a tool to access sensitive host files outside its declared contract and deployment scope. We analyze this capability gap across three layers: server-category screening (L1), per-tool contract analysis (L2), and bypassable path-validation checks (L3). We design MCP-FSD to catalog MCP servers, infer least-privilege boundaries per tool, plant credential fixtures outside those boundaries, and evaluate exploitability and sandbox containment via paired dynamic execution. Across 21,097 MCP servers from nine registries, 787 of 4,806 triaged servers (16.4%) exhibit filesystem capabilities despite non-filesystem functional classifications. Dynamic three-case validation confirms 150 vulnerable instances under tested sandbox policies. Coordinated disclosure yielded 13 security advisories, including two CVEs in Anthropic's Git MCP Server.
Create a lesson
Related papers
Suspected Until Inspected: Neuro-Symbolic Detection of Broken Access Control in Server-Side Web Applications
Shared title terminologycs.CRChengyao Yang, Zifeng Kang, Dongqi Han et al.
From Billion-Scale to Million-Scale Language Models: Operational Capabilities for Embedded Post-Exploitation
Shared title terminologycs.CRGabriel Hortea, Simon Pietro Romano, Juan Tapiador et al.
Beyond Model Scaling: Rethinking Sequence Construction for Transformer-based Network Intrusion Detection
Shared title terminologycs.CRZeeshan Zulkifl Shah, Muhammad Ikram, Dali Kaafar et al.
Quantum-Annealing-Assisted Search-Space Reduction for Large-Scale Shortest-Path Computation
Shared title terminologycs.CRKasymkhan Khubiyev, Yaroslav Kholodov, Alexey Petrenko
Ads for Agents: Measuring Ad-Serving MCP Servers
Shared title terminologycs.CRShahrooz Pouryousef, Sohini Chakraborty, Ali Montazer et al.
When Being Wrong Is Right: Reverse-Capability Audio CAPTCHAs through Psychoacoustic Design
Shared title terminologycs.CRMingjie Bao, Yu Dai, Guangke Chen et al.