memory-poisoning-scanner
v0.3.1Scans agent code for untrusted input poisoning persistent cross-session memory
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_text
Scan agent code for memory-poisoning risks: untrusted input written into persistent, cross-session memory (MemGPT-style archival/core memory, or a vector store used as a long-term knowledge base) without visible sanitization, and memory retrievals fed into a system/assistant-role message or prompt template as trusted context.
| Parameter | Type | Description |
|---|---|---|
content * | string | The code content to scan |
label | string | Optional label shown in findings (e.g. filename) |
scan_file
Scan a single file for memory-write and memory-readback poisoning patterns
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute or relative path to the file to scan |
scan_directory
Recursively scan a directory of agent source code for memory-poisoning 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 memory-write and memory-readback pattern this scanner detects, grouped by category