Repository navigation
Releases
AgentTaint v1.0.0
First open-source release of AgentTaint under the Apache License 2.0.
AgentTaint is a provenance-aware firewall for MCP tool calls. It sits between an agent and its MCP servers over stdio, tracks where sensitive arguments come from (explicit lineage and lexical/structural/semantic reconstruction), and enforces ALLOW / CONFIRM / BLOCK through Cedar policies with out-of-band human approvals.
Breaking change
- Single-use approval token required on retries: Approving a held call now issues a single-use
approval_tokento the approver (agenttaint approve, the/api/v1/confirmations/{id}/approveAPI, and the dashboard approvals queue). Clients retrying an approved call must pass bothconfirmation_idandapproval_tokenin_agenttaint. Passingconfirmation_idalone is rejected.
Highlights & features
- CLI (
agenttaint):init,proxy --config,approve,dashboard,version, plusconnect(client config snippets for Claude Desktop, Cursor, and Claude Code),doctor(pre-flight diagnostics),log(decision viewer), color-coded verdicts, and actionable config errors. - Dashboard & Control Plane: Interactive provenance graph, audit log, live-refreshing confirmations queue showing the single-use
approval_tokenonce, loading/empty/API-unavailable states, and an optional public demo site aligned with Apache-2.0. - Deployment & Packaging: Self-hosted
Dockerfile,docker-compose.ymlwith Postgres, bundled default policies insideagenttaint-core, and offline-capable release tarball (agenttaint-1.0.0.tar.gz).
Security fixes
- Semantic reconstruction gate: Semantic similarity alone can no longer promote emails, URLs, file paths, or shell commands to
INFERRED; weak structural/domain overlap or explicit session context is required. Lists and nested argument values are reconstructed leaf by leaf. - Spelled-out addresses: Prose addresses (e.g.
"alice at evil dot com") are matched atMODERATEsupport only when both the local part and spelled domain appear in order. - Always-on reconstruction: Declared lineage is additional evidence only and never disables session-wide reconstruction on
MEDIUM/HIGHcalls. - Connection & metadata hardening:
session_idis bound to the connection, malformed_agenttaintmetadata is rejected, declared parent spans are checked against the registry and calling agent, the reconstruction corpus is isolated per agent/session, backends cannot shadowagenttaint.*tools, andagenttaint.previewis read-only. - Confirmation & concurrency hardening: Gateway decisions are serialized so concurrent replays of an approval execute at most once; pending confirmation check-and-insert is atomic with a per-agent cap; approvals are released if cancelled before forwarding; policy evaluation, labeling, and audit run off the event loop;
ALLOWdecisions are written ahead to the audit log before forwarding. - Grants & Cedar policy ids: Expanded authority arguments (
cc,bcc,cwd,args,uri,target,recipients,endpoint), one grant per list element, case-sensitive path/command checks, and unique@ids across all 20 Cedar rules verified against the Python reference implementation.
Benchmark results (synthetic suite, seed 2120)
Measured on main (2c6cb30) with cedarpy 4.12, SQLAlchemy 2.1, and mcp 1.30 on a CPU-only Linux host:
| Split & Embedder | Attack Success Rate | Benign BLOCK | Precision / Recall / F1 | Median / p95 Latency |
|---|---|---|---|---|
Held-out test (n=68), fixture |
0.000 | 0.000 | 1.000 / 0.976 / 0.988 | 9.02 / 14.19 ms |
Held-out test (n=68), BAAI/bge-small-en-v1.5 |
0.000 | 0.000 | 1.000 / 1.000 / 1.000 | 72.78 / 181.43 ms |
reconstruction (n=24), fixture |
0.000 | 0.000 | 0.467 / 0.875 / 0.609 | 8.66 / 10.81 ms |
reconstruction (n=24), BAAI/bge-small-en-v1.5 |
0.000 | 0.000 | 0.500 / 1.000 / 0.667 | 92.23 ms (median) |
With declared-lineage evaluation on test (41 attacks, 27 benign), all 41 attacks are BLOCKed (up from 33 BLOCK / 8 CONFIRM before hardening) with 0 benign false positives. Note that these are synthetic-suite measurements, not production attack-prevention guarantees; see docs/limitations.md and docs/benchmark_results_hardening.md.
Release bundle
agenttaint-1.0.0.tar.gzandagenttaint-1.0.0.tar.gz.sha256include wheels for Python 3.12 on Linux x86_64, config templates, Docker files, and docs.