The security stack for AI agents
Prompt injection and MCP supply-chain attacks are the new attack surface. Bastion gives you the full loop: scan, prevent, attack, investigate, and gate — all sharing one canonical injection corpus.
Every stage reads and writes the same policy format, so a finding in one tool hardens the next.
One tool for each stage of agent defense
bastionsupply
scanpip install bastionsupply - Static analysis of an MCP server’s own tool definitions — no LLM, no network
- Catches tool-poisoning, hidden-unicode & homoglyph names, tool-shadowing, secret solicitation
- Rug-pull detection via lock / verify
agentbastion
preventpip install agentbastion - Three guards in one SDK: inbound injection block, tool-call guard, outbound PII/secret redaction
- Tool-call guard is the differentiator — stops mass email/delete/refund/exfil
- Drop-in SDK: data never leaves your box; optional LLM judge
bastionprobe
attackpip install bastionprobe - Focus on indirect prompt injection via tool output
- Canary-token + forbidden-tool scoring; multi-run land-rate by tactic
- Cross-model / cross-vendor matrix (Claude + GPT)
bastiontrace
investigatepip install bastiontrace - Derives inject point → landing → causal path → blast radius from a JSONL trace
- Verdicts: LANDED / ATTEMPTED / CLEAN
- No LLM, no cloud — pure analysis
bastiongate
gatepip install bastiongateway - Sits inline between agent and MCP servers (stdio + HTTP/SSE)
- Drops poisoned tools, enforces allow/deny, blocks injected results, redacts PII in arguments
- JSONL forensic log; consumes the policy bastionsupply harden emits
bastioncorpus
corpuspip install bastioncorpus - 128 rows: 81 malicious payloads / 47 benign false-positive traps
- 5 languages (en/it/de/fr/es), one taxonomy
- Three format adapters: to_probe, to_semantic, to_trace
WAF and Burp Suite — for agents
Defense in depth
Static pre-flight scanning, in-process filtering, and an inline runtime gateway — layered, not a single choke point.
Runs on your box
Core detection is local and dependency-light. No data leaves your infrastructure; an LLM judge is opt-in.
Honest benchmarks
Measured against a shared, multilingual corpus with false-positive traps — recall and FPR published, not hand-waved.
Free to run. Pro to scale.
All six tools are open source and free forever. Bastion Pro unlocks the multi-tenant gateway, deep runtime inspection, and priority support.