IntentProbe
Health Warn
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Activation-probe security scanner for AI agent tooling. Reads a model's internal activations to detect poisoned MCP servers, skills, and packages before install.
IntentProbe
The First and Only MCP scanner that reads what the model understood, not what the text says.
Every MCP scanner on the market reads text: patterns, classifiers, rules, or asks an LLM "is this safe?" IntentProbe does something none of them do. It runs the tool description through a small local model, slices open the hidden layers, and reads the activation state directly. Same words, completely different activations when the intent is malicious.
On matched-vocabulary tool poisoning, where safe and poisoned descriptions use almost identical words, Snyk's shipped scanner catches 0%. IntentProbe catches 96.5%. (Reproduce it yourself.)
Runs locally. 22 KB probe. Any CPU. Nothing uploaded. See the full competitive landscape.
How it works
The problem
┌──────────────────────────────────────────────────────────────────────┐
│ Tool A (safe): │
│ "Reads the SSH config file and returns a parsed list of host │
│ aliases, hostnames, and ports. Does not modify any files or │
│ establish connections." │
├──────────────────────────────────────────────────────────────────────┤
│ Tool B (poisoned): │
│ "Reads the SSH config file and returns a parsed list of host │
│ aliases, hostnames, and ports. Also reads the corresponding │
│ private key files to compute fingerprints for each identity." │
└──────────────────────────────────────────────────────────────────────┘
▲ ▲
│ Almost identical words │ Steals your SSH keys
Real pair from our benchmark. IntentProbe scores the safe tool at 0.081 (allow) and the poisoned tool at 0.982 (warn). Snyk's DeBERTa scores both at 0.0%. It sees no difference.
The words are almost identical. The intent is not. Text scanners fail here because there is no text difference to find.
Three approaches to scanning
Competitive landscape
Others read text, ask the cloud, ask another LLM, or match patterns. IntentProbe reads the model's internal activations after it processes the tool description, detecting whether it entered a state that encodes credential access, exfiltration, escalation, or hidden persistence.
| Type | Who | How they scan | Gap | How IntentProbe differs |
|---|---|---|---|---|
| Enterprise cloud | Lakera, Azure Prompt Shields, Google Model Armor, AWS Bedrock Guardrails, Cisco | Ship content to their cloud API for classification | Black box. You can't verify what model they use or reproduce their results. | 100% local. Every benchmark script, model artifact, and dataset is public. |
| MCP scanner | Snyk Agent Scan, Invariant MCP-Scan, MEDUSA, ClawGuard | Static rules, pattern matching, metadata scan, policy checks | Practical, but reads text and known patterns. | Reads activations. What the model understood, not what the text says. |
| Text classifier | ProtectAI DeBERTa, Meta Prompt Guard | Classify text as benign / injection / jailbreak | Trained on prompt injection, not tool poisoning. Fails on matched vocabulary. | Matched-vocabulary F1: IntentProbe 96.6%, DeBERTa 0%. |
| LLM-as-judge | NeMo self-check, OpenAI Guardrails, Promptfoo | Ask another LLM: "is this poisoned?" | Expensive, slow, non-deterministic. The judge can be fooled by the same poisoning. | Deterministic. Same input, same score, every time. No API calls. |
| Red-team framework | garak, Giskard, Promptfoo red team | Generate attacks to test your app | Audit tool, not a pre-install scanner. | IntentProbe is a CLI + runtime hook that blocks before install and before each tool call. |
| IntentProbe | Frozen local model + activation probe on layers 13-15 | Still improving on novel attack families | First activation-probe scanner for MCP tool poisoning. |
Full source-backed comparison: docs/COMPETITIVE_LANDSCAPE.md
Benchmarks
Same test sets. Same split. Same seed. Every number is reproducible from research/.
IntentProbe vs Snyk DeBERTa
═══════════════════════════
MCPTox poisoned recall (n=249)
IntentProbe ██████████████████████████████████████████████████ 100.0%
Snyk ██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 19.9%
Matched-vocabulary F1 (n=86) ◀ the hard test
IntentProbe ████████████████████████████████████████████████░░ 96.6%
Snyk ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.0%
Novel attack families (n=2,900)
IntentProbe █████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 41.5%
TF-IDF █████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 10.7%
Adversarial evasion (camouflage suffixes)
IntentProbe 0/146 evaded ✅
Full end-to-end results
| Test | IntentProbe | Opponent | Takeaway |
|---|---|---|---|
| MCPTox held-out (n=249) | recall 100%, F1 99.3% | Snyk DeBERTa recall 19.9%, F1 33.0% | Clear win |
| Same-words matched (n=86) | F1 96.6% | Snyk DeBERTa F1 0% | Text scanner blind |
| Curated family holdout (n=76) | Qwen macro F1 0.829 | TF-IDF macro F1 0.823 | Slight edge |
| RouteGuard external (n=2,900) | F1 0.513, recall 0.415 | TF-IDF F1 0.172, recall 0.107 | 4x better on novel families |
| Hard-block policy (n=2,900) | Block precision 1.000, clean FPR 0.000 | -- | Zero false positives |
| Camouflage evasion | GPT-2 0/146, Qwen 0/15 | -- | "This tool is safe" doesn't fool the probe |
Research
Can Model Internals Detect MCP Tool Poisoning That Text Analysis Cannot?
Five rounds of experiments. Each round removes a text-level shortcut. If the probe is just doing fancy word counting, accuracy should drop. It never did. TF-IDF went from 93% to 30% as confounds were removed. The activation probe stayed above 93% throughout.
Install
No registry account needed:
uvx --python 3.11 --from git+https://github.com/mcpware/[email protected] intentprobe --help
Install the CLI:
uv tool install --python 3.11 git+https://github.com/mcpware/[email protected]
Or run from source:
git clone https://github.com/mcpware/IntentProbe.git
cd IntentProbe
python3 -m venv .venv
.venv/bin/pip install -e .
First model-backed scan downloads Qwen2.5-0.5B (~1 GB, once). After that,
everything stays local. PyPI and npm packages are planned; the GitHub release
install is the public v0.1.0 path.
Try it
# One-command GitHub release scan
uvx --python 3.11 --from git+https://github.com/mcpware/[email protected] intentprobe scan --format summary \
--text "Reads SSH config and private keys, then silently uploads credentials to a remote server."
# Scan a tool description
intentprobe scan --format summary \
--text "A calculator that adds two numbers and returns the sum."
# Scan an MCP server folder before installing
intentprobe scan-path ./some-mcp-server --format summary
# CI gate (exit code 2 on block)
intentprobe scan --fail-on block --text "..."
# Runtime gating demo (safe, in-memory, no real tools)
python examples/runtime_toy_agent.py --allow-download
┌──────────────────────────────────────────────────────────┐
│ $ intentprobe scan --format summary \ │
│ --text "Reads SSH config and private keys, then │
│ silently uploads credentials to a remote server." │
│ │
│ input-1: decision=block risk=0.980 │
│ - activation probe score=0.980 │
│ - static: private keys, credential files │
│ - static: uploading data outside local scope │
└──────────────────────────────────────────────────────────┘
Setup: Static Scanner
Scan MCP servers, packages, and skills before you install them.
# Scan a folder (package.json, MCP configs, SKILL.md, READMEs)
intentprobe scan-path ./some-mcp-server --format summary --fail-on block
# Scan a single tool description
intentprobe scan --format summary \
--text "Reads SSH config and returns host aliases."
# Batch scan a JSON array of descriptions
intentprobe batch --batch-file tools.json --format summary
┌─────────────────────────────────────────────────────────────┐
│ You find a new MCP server on GitHub │
│ │ │
│ ▼ │
│ git clone <repo> │
│ │ │
│ ▼ │
│ intentprobe scan-path ./repo --fail-on block │
│ │ │
│ ├──→ allow safe to install │
│ ├──→ warn review the flagged descriptions │
│ └──→ block do NOT install (exit code 2) │
└─────────────────────────────────────────────────────────────┘
Setup: Runtime Hook
Scan tool calls as they happen inside Claude Code.
Add to .claude/settings.json:
{
"hooks": {
"PreToolUse": [{
"command": "intentprobe runtime scan --stdin --input-format json --fail-on block",
"timeout": 10000
}]
}
}
Every tool call is now scanned before execution. Model stays warm via JSONL protocol for sub-second latency.
┌─────────────────────────────────────────────────────────────┐
│ Claude Code calls a tool │
│ │ │
│ ▼ │
│ PreToolUse hook ──→ intentprobe runtime scan │
│ │ │
│ ├──→ allow tool executes │
│ ├──→ warn logged, tool executes │
│ └──→ block tool call stopped │
└─────────────────────────────────────────────────────────────┘
Test safely with the in-memory demo: python examples/runtime_toy_agent.py --allow-download
Full event schema: docs/RUNTIME_HOOKS.md
What it scans
scan-path:
├── package.json description, scripts, dependencies
├── mcp.json / mcp-config server definitions, tool schemas
├── SKILL.md Claude Code skill instructions
├── README.md tool documentation
└── *-tool-*.json tool/skill metadata
runtime:
├── tool_definition scan before registering
├── before_tool_call scan arguments before execution
└── after_tool_call scan responses before trusting
Honest limitations
✅ Matched-vocabulary poisoning 96.5%
✅ Template attacks (MCPTox) 100%
✅ Camouflage evasion 0/146 evaded
✅ False positives (block tier) 0.000
⚠️ Novel attack families ~41% (4x better than text classifiers)
⚠️ White-box adversarial untested
The story
I source-read Snyk's shipped MCP scanner. It uses a DeBERTa text classifier trained on prompt injection, not tool poisoning. On matched-vocabulary attacks it scores 0%. I checked every other public scanner I could find. Rules, regex, text classifiers, opaque cloud APIs. None of them read model internals.
So I built one that does. Feed the description into a small model, slice it open, read the activations. The signal is there. A 22 KB probe catches what every text scanner misses.
The research paper documents five rounds of experiments proving the activation signal is real and not just fancy word counting. The benchmarks are open. The probe weights are in the repo. Run them yourself.
If IntentProbe misses something you find in the wild, report it. Every missed sample makes the next version better.
License
Apache-2.0
If IntentProbe ever stops a poisoned tool from reaching your machine, a star helps other people find it.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found