Briefing · Paper · source · updated · Boston Identity
A Glasgow-Aarhus sandbox for MCP tools catches a secret printed as-is; base64 or truncation slips past it
Five researchers at Glasgow and Aarhus run untrusted Model Context Protocol (MCP) tools inside a WebAssembly sandbox and check what each tool prints for secrets and file contents headed for the model. On fixtures they built, it caught a file read and a file leak that a string search of the tool's binary missed. By their own benchmark, a secret that is base64-encoded or truncated goes unflagged.
arXiv · Zhuoran Tan, Run Hao, Jeremy Singer, Yutian Tang, Christos Anagnostopoulos · January 3, 2026 · read
What's happening
Finding2MCP-SandboxScan flagged secrets printed verbatim but missed base64-encoded or prefix-cut ones in the authors' own eight-case benchmark.
MCP-SandboxScan, from researchers at the University of Glasgow and Aarhus University, decides that a tool leaked a secret by looking for pieces of the secret's text in what the tool prints for the model. In the authors' own eight-case benchmark, a secret printed verbatim or split across fields was flagged; one that was base64-encoded or cut down to a prefix was not; and a short token that happened to appear in harmless output was flagged anyway. The authors say they do not claim completeness against encoding, and the prototype records strings that suggest an outbound request as signals rather than mediating the network.
flag a problem with BI-FIND-2026-1211
In two fixtures built for the comparison, a sandbox run caught a runtime-built /etc/passwd read and an echoed secret that a string search of the binary missed.
In two fixtures built for the comparison, running the tool in the sandbox surfaced behaviour that a string search of the tool's binary missed: a read of /etc/passwd whose path was assembled at runtime, which the WASI boundary denied and the scanner recorded, and a secret read from a mounted file and echoed into the tool's structured output. The baseline is a simple signature search, not MCPScan or another published scanner, and the authors present the fixtures as scenarios that evade it. We read the result as showing the kind of blind spot a static scan has, not how often it occurs.
flag a problem with BI-FIND-2026-1212
Section by section
3showing 3 of 3
[1]Problem and threat model
AI trust
Problem and threat model
Tan and his co-authors start from how MCP tools are installed: like third-party packages, whose output then flows into the model's context. A scanner that only reads the package misses what a tool does when it runs, and running an untrusted tool to find out is risky in itself. Their attacker is a malicious tool that tries to slip instructions, or leak environment secrets, mounted files and outbound-request intents, into text the model will see. They do not claim to catch encrypted or compressed payloads.
opinionfrom published text + figures
[2]WASM/WASI execution and string-level flow detection
AI trust
WASM/WASI execution and string-level flow detection
The Rust prototype runs each tool inside a WebAssembly (WASI) sandbox that can reach only a preopened /data directory and bounds what the tool can print. The printed output is treated as what the model would see; environment values, mounted file contents and fetch markers are the sources, and the two are linked by matching text snippets. There is no taint tracking. Network traffic is not mediated; output lines that suggest a request, such as a FETCH: marker, are recorded as intent signals.
technical artifactfrom published text
[3]Evaluation and limitations
AI trust
Evaluation and limitations
The tests are small: three hand-written WASM tools, two fixtures built for a comparison with a static scan, and an eight-case benchmark of output transformations. A string search of the tool binary missed both fixtures, while the sandbox run produced a denied file read and a file-to-output flow. In the benchmark, base64 encoding and truncation hid a secret from the matcher, and a short token produced a false positive. No detection rates or overhead figures are given.
technical artifactfrom published text + figures