tool-poisoning-scanner
v0.6.0Scans MCP tool definitions for hidden instructions and confused-deputy sinks
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_text
Scan MCP server source (TypeScript/JavaScript, Python, Go) for tool poisoning (hidden instructions embedded in a tool's `description` string, read by the calling LLM as trusted context) and confused-deputy tools (a name/description promising read-only behavior while the handler has a shell/eval/file-write/env-dump sink).
| Parameter | Type | Description |
|---|---|---|
content * | string | The source code to scan |
label | string | Optional label shown in findings (e.g. filename); its extension picks the language |
language | string | Source language, when the label has no extension (default: typescript) |
scan_file
Scan a single file for tool-poisoning and confused-deputy patterns in MCP tool registrations
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute or relative path to the file to scan |
scan_directory
Recursively scan a directory of MCP server source for tool-poisoning and confused-deputy patterns
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute or relative path to the directory to scan |
exclude | array | Skip files/dirs whose path contains one of these strings |
include | array | Only scan files whose path contains one of these strings |
maxFiles | integer | Maximum number of files to scan (default: 5000) |
list_patterns
List every description-injection phrase and confused-deputy sink rule this scanner detects