Skip to content
IAM Insights

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

share
5,025 words.
01

What's happening

Finding2
BI-FIND-2026-1211Lead finding

MCP-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.

medium confidencebest source: independent researchobserved Jan 2026EvidenceEvaluation and limitationsSection 2
flag a problem with BI-FIND-2026-1211
BI-FIND-2026-1212

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.

medium confidencebest source: independent researchobserved Jan 2026EvidenceEvaluation and limitationsProblem and threat model
flag a problem with BI-FIND-2026-1212
02

Section by section

3

showing 3 of 3

[1]

Problem and threat model

AI trust

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

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

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

Terms used

Model Context Protocol
Model Context Protocol: an open standard, originated by Anthropic, for connecting AI assistants to tools and data.
WebAssembly (WASM)
A portable, capability-restricted bytecode runtime often used to sandbox untrusted code.
Taint tracking
Marking data from untrusted sources and blocking it from reaching sensitive sinks, such as executable code, without sanitization.

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity