Skip to content

AgentTaint v1.0.0

Latest

Choose a tag to compare

@Marouane2005 Marouane2005 released this 25 Nov 19:15
· 5 commits to main since this release
2c6cb30

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_token to the approver (agenttaint approve, the /api/v1/confirmations/{id}/approve API, and the dashboard approvals queue). Clients retrying an approved call must pass both confirmation_id and approval_token in _agenttaint. Passing confirmation_id alone is rejected.

Highlights & features

  • CLI (agenttaint): init, proxy --config, approve, dashboard, version, plus connect (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_token once, loading/empty/API-unavailable states, and an optional public demo site aligned with Apache-2.0.
  • Deployment & Packaging: Self-hosted Dockerfile, docker-compose.yml with Postgres, bundled default policies inside agenttaint-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 at MODERATE support 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/HIGH calls.
  • Connection & metadata hardening: session_id is bound to the connection, malformed _agenttaint metadata is rejected, declared parent spans are checked against the registry and calling agent, the reconstruction corpus is isolated per agent/session, backends cannot shadow agenttaint.* tools, and agenttaint.preview is 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; ALLOW decisions 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.gz and agenttaint-1.0.0.tar.gz.sha256 include wheels for Python 3.12 on Linux x86_64, config templates, Docker files, and docs.