v0.1.0 — Initial release
agent-immune v0.1.0
Adaptive threat intelligence for AI agent security.
Highlights
- Input assessment — regex + semantic memory detect prompt injection, including rephrased attacks
- Output scanning — credentials, PII, system prompt leaks, encoded payloads
- Semantic memory —
learn()from incidents, catch unseen attacks via similarity (F1: 0.685 → 0.865) - Multi-turn escalation — per-session trajectory tracking
- Prompt hardening — role-lock, input sandboxing, output guards
- Circuit breaker — per-session rate limiting with auto-deny
- MCP server —
python -m agent_immune servewith stdio, SSE, and streamable-http transports - Observability — MetricsCollector with counters, latency, structured JSON events
- Async API —
assess_async,assess_output_async,learn_async - Adapters — Microsoft Agent OS, LangChain, MCP middleware
Install
pip install agent-immune # core (regex-only, no GPU)
pip install 'agent-immune[memory]' # + semantic memory
pip install 'agent-immune[mcp]' # + MCP serverStats
- 179 tests, 94% coverage
- Zero false positives across all benchmark datasets
- Apache-2.0 license