We ran SHOTEN against three public AI-security benchmarks
SHOTEN reviews the AI layer of an engineering estate: model files, chat templates, runners, exposed ports, and agent harnesses with their MCP servers. It pairs a small offline scanner with a judge step, where a model reads code and tool descriptions against a written rubric. Here is how both halves did, next to the published results of other tools.
malicious model files caught by the scanner alone, with no model in the loop
PickleBall
poisoned MCP manifests flagged by the judge, and 0 of 81 clean ones
scannerbench
vulnerable/safe MCP server pairs told apart. The next best tool managed 3
mcp-scanner-benchmark
01 · Malicious model files
PickleBall
The PickleBall dataset (Columbia, CCS 2025) holds 84 malicious pickle-based models collected from Hugging Face and earlier studies. We ran them against the 20 benign models in its abridged release, which include the awkward cases (YOLO checkpoints, flair taggers), with picklescan, ModelScan and Fickling on the same machine.
| Tool | Malicious caught | Benign flagged | Time, 104 files |
|---|---|---|---|
| SHOTEN scanner 0.4.2 | 83 / 84 | 2 / 20 | 1.3 s |
| picklescan 1.0.4 | 78 / 83 | 1 / 20 | 19 s |
| ModelScan 0.8.8 | 76 / 84 | 1 / 20 | 41 s |
| Fickling 0.1.11 | 84 / 84 | 20 / 20 | 35 s |
Four malicious files got past both picklescan and ModelScan but not SHOTEN. The one SHOTEN missed reaches os.system through an attribute path inside torch (torch.serialization.os.system), and every scanner we tried trusts that prefix. We fixed it the same day, and the fixed version (0.4.3) catches 84 of 84. We measured that on the same data that exposed the miss, so read it as proof the fix works and not as an independent score.
Both benign files SHOTEN flagged use getattr or pathlib in ordinary ways. Context-aware scanners such as DITTO are built for that problem, and we left these two alone rather than widen an allow-list.
With only 20 benign models, the false-alarm rate has wide error bars. The full benign set (252 models, about 140 GB) is next.
02 · Poisoned MCP tool descriptions
scannerbench
163 MCP manifests: 82 carry prompt injection in English or Turkish, 81 are clean, and half of the clean ones discuss attacks for legitimate reasons. The only published result is a signature scanner from the benchmark's author, at 19.5% recall.
SHOTEN's scanner decided only 1 of the 82 on its own, because reading tool descriptions is the judge's job. We neutralised server and tool names and shuffled the files, and the judge then flagged all 82 poisoned manifests and none of the 81 clean ones, Turkish included.
Most attacks in this set are explicit: {SECRET} placeholders and open jailbreak personas. The result says the judge reliably reads that style of attack. It does not prove the judge would catch a hidden, optimised poison.
03 · Vulnerable vs safe MCP servers
mcp-scanner-benchmark
16 pairs of small MCP servers, one vulnerable and one fixed, each confirmed by running it: command injection, path traversal, SSRF, broken authorization, secret exposure, tool poisoning. A tool passes a pair when it flags the vulnerable twin and clears the safe one.
The one pair SHOTEN did not tell apart is a pair where the "safe" twin is not safe. Its SSRF guard misreads an IPv4-mapped IPv6 address ([::ffff:127.0.0.1]), and we confirmed in Node 22 that a request gets through to localhost. It also follows redirects without re-checking them. Against a corrected label the judge scores 16 of 16 vulnerable and 15 of 15 safe. We notified the maintainer before publishing (issue #2).
04 · Limits
What this does and doesn't show
- On model files the scanner is fast and raises few false alarms. In this run it caught more malicious files than the two denylist scanners.
- On MCP code and descriptions, the judge does the work. It is an LLM, so each item costs more than a signature check (about 250k tokens per run), and its mistakes look different: you can argue with it, and it can be wrong with confidence.
- We repeated the judge step with a model from another family, Abyss 1 (a DeepSeek V4.1 Flash variant) served by Zro, on the same blinded items and rubric, for about ten cents. It caught 79 of 81 poisoned manifests it judged, flagged 4 of 81 clean ones, and told apart 13 of 15 complete server pairs, including flagging the same mislabelled SSRF twin. Two items timed out. The rubric was written with Claude, and we rebuilt the prompt for this run, so it is a close repeat rather than an identical one.
- The rubric changed once between judge runs (two clarifications), so no run was fully held out.
- None of this certifies anything. Weight-level backdoors are outside what any of these benchmarks test, and no current tool can rule them out.