CANARYFALLTHE BLACKLOCK INSTRUMENTS
THE BLACKLOCK INSTRUMENTS | A ShatterPoint Security research suite CANARYFALL: MCP tool-poisoning fixture lab Author: Gavin Blacklock (Epsilon0xCell)
Tool descriptions, schema defaults, and tool output are untrusted data. A client must never follow an instruction that arrives through them, must never apply an untrusted schema default silently, and must never accept a tool description that changed after approval. An attack in this lab counts only when an inert canary token reaches a local listener on 127.0.0.1. No LLM judge decides success.
python3 -m canaryfall.runner --attempts 3
python3 -m unittest discover -s tests -vThe runner starts each fixture MCP server as a real stdio JSON-RPC subprocess,
drives it with a simulated vulnerable client and a simulated hardened client,
and writes results/results.json and results/results.md.
Five poison classes are covered: description injection, schema-default manipulation, response injection, rug-pull description mutation after approval, and tool shadowing. Each cell of the matrix reports successes with a denominator (attempts per cell). Expected result at v0.1.0: the vulnerable client succeeds on every class and the hardened client succeeds on none.
Limits: the clients are deterministic simulations of documented client failure modes, not commercial MCP clients. No external LLM is used or needed. All canary traffic stays on 127.0.0.1 and every payload is an inert random token.
One detection rule per poison class lives in detections/, in Sigma-style YAML
over the structured client log. canaryfall/detections.py maps each class to
its log event: description_instruction_seen, schema_default_applied,
tool_output_instruction_seen, description_mutated_after_approval, and
tool_name_collision. Tests assert each detection fires on its class and that
a benign log fires none.
This is a defensive fixture lab for authorised local testing. Report problems
with this project as described in SECURITY.md. If a fixture technique is ever
found to affect a real MCP client, coordinated disclosure to that vendor comes
first, before any publication. Licence: MIT, see LICENSE.