deterministic taint & egress guard · rust

Least privilege for AI coding agents.

Two local Rust binaries — agent-taint and agent-gate — that track untrusted input, block secret exfiltration, profile repo skills, and cryptographically verify agent configs on every tool call.

$curl -fsSL https://taintd.dev/install.sh | bash $agent-taint install claude

Start non-blocking: agent-taint mode audit → agent-taint review -i Teams & Bots: Fleet Cloud ↓

local hook · <5ms
<5ms
Deterministic Rust hook
0
Daemons, proxies, or LLMs
5
Supported coding harnesses
MIT
Dual-licensed MIT / Apache-2.0

Local core, optional fleet plane

two OSS Rust binaries + self-hosted Ed25519 control plane
agent-taint OSS · Runtime Guard

Tracks session taint and secret access deterministically. Blocks credential reads, vault CLIs, persistence edits, and untrusted egress once untrusted content enters context. Supports wildcard repo_profiles and allowed_hosts, plus Linux bwrap / macOS Seatbelt sandboxing.

github.com/darkobas2/agent-taint →
agent-gate OSS · BLAKE3 + GPG/SSH

Hashes CLAUDE.md, AGENTS.md, .mcp.json, hooks, and SKILL.md files, signs approvals with GPG or SSH (YubiKey / FIDO2), verifies agent-free via gpgv, profiles skill capabilities statically, and pins guard binaries against tampering.

github.com/darkobas2/agent-gate →
taintd cloud Fleet · Self-Hosted

Manages developer workstations and headless standalone bots from one SSO-gated console. Zero-token Ed25519 device enrollment via macOS Keychain or Linux systemd-creds, Learn → Confirm policy synthesis, Shadow MCP inventory, remote single-use grants, and E2EE SOC2 audit export.

See fleet capabilities →

Defense in depth, hook to kernel

Full spec & threat model →
Taint & Reverse Trifecta SESSION

Marks sessions on untrusted web, MCP, PR/issue reads, or untrusted repos — and blocks egress after any secret read.

WebFetch MCP gh pr diff Claude · Cursor · VS Code · agy · OpenCode
Credentials & Vault CLIs SECRETS

Stops reads of keyfiles, .env*, /proc/*/environ, env dumps, and secret managers once tainted.

~/.ssh ~/.aws ~/.kube bws · bw · op · vault · sops
Egress, Wildcards & Strict Mode POLICY

Blocks outbound tools & inline HTTP scripts, or flips to allowlist-only strict_shell with subdomain & path globs.

*.internal.example /home/*/work/** strict_shell mode audit
OS Kernel Sandbox KERNEL

Enforces network & credential boundaries in the kernel so renamed or compiled binaries cannot escape.

bwrap --unshare-net macOS Seatbelt env scrub
Signed Repo Supply Chain GATE

Pins repo hooks, .mcp.json, and SKILL.md with GPG/SSH signatures, static skill risk profiling, and binary hashing.

BLAKE3 gpgv / YubiKey skill scan
Zero-Token Fleet & Bot Lockdown CLOUD

One-time join tokens mint Ed25519 keys in OS secret storage. Standalone bots lock strictly to signed cloud policy.

systemd-creds macOS Keychain --kind agent E2EE age/GPG
TAINTD CLOUD · SELF-HOSTED FLEET CONTROL PLANE

One signed control plane for developers and autonomous bots.

Roll out least-privilege policies across engineering laptops and headless CI/ChatOps agents without shipping a single static API token. Click through the live console preview below.

https://taint.corp.example/taintd
SSO · Google / OIDC · Ed25519 Signed
12
Developers
4
Standalone Agents
2
Shadow MCPs
1
Pending Grant
0
Plaintext Tokens
Agents ignore local policy.json · Developers layer local allowlists under fleet floor
Endpoint Kind Device Auth Policy Mode Profile Last Sync
alice-mbp DEVELOPER ED25519 · Keychain Layered (Fleet Floor) dev-enforce v7 14s ago
bob-linux DEVELOPER ED25519 · systemd-creds Layered (Fleet Floor) dev-enforce v7 1m ago
ops-bot-01 AGENT ED25519 · systemd-creds CLOUD-LOCKED agent-enforce v4 9s ago
ci-triage AGENT ED25519 · systemd-creds CLOUD-LOCKED agent-enforce v4 22s ago

Observed in Audit Mode (last 7d) 4 candidates

9 endpoints · host
4 endpoints · wildcard
SHADOW MCP
SHADOW MCP

Confirm & Publish Signed Profile

Additive synthesis merges selected hosts & MCP servers into dev-enforce, bumps monotonic version, and signs with the control plane Ed25519 key.

Ready: 3 items selected · anti-rollback version check enforced on endpoints.

Pending Break-Glass Request · #req-491a AWAITING APPROVAL

Endpoint: ops-bot-01 AGENT Action: allow_once Tool: Bash Target: api.staging.internal

Zero-trust metadata only — no prompt text, source code, or file contents leave the endpoint. Approval issues a single-use Ed25519 grant bound to machine, tool, and target host.

Webhook alert delivered to Slack / Mattermost · waiting for operator decision.

1. Mint Single-Use Join Token

Choose endpoint class. The join token expires in 15m and is burned on first use; the agent generates an Ed25519 keypair stored directly in OS secret storage.

2. Run Once on Endpoint0 PLAINTEXT TOKENS

$ agent-taint enroll \ --server https://taint.corp.example \ --kind developer \ --join-token atj_9f3c7a2e8b1d40f6 # Key sealed in macOS Keychain / Linux systemd-creds # Revocable in 1 click from Fleet Console

Guard the agent, not the human

Zero MITM proxy, zero prompt logging, zero source code uploaded. Only autonomous AI tool calls are mediated locally in <5ms — with audit_omit_detail and client-side E2EE audit logs.

Lock company repos, free personal ones

Scope fleet policies via managed_paths (~/work/**) and managed_remotes (github.com/org/*). Unmanaged personal folders stay 100% local with zero cloud telemetry.

Total lockdown without friction

Set lock_local_policy: true for regulated teams or bots. Cross-zone reads into managed folders auto-escalate, and 5-minute Ed25519 remote grants unblock legit calls in seconds.

Open Source CLIs

Free forever · MIT / Apache-2.0
  • ✓Breaks the lethal trifecta in <5ms: deterministic taint & reverse-trifecta guard across 5 harnesses — zero daemons or LLMs
  • ✓Stops secret theft & self-tampering: blocks keyfiles, vault CLIs, /proc/*/environ, and persistence writes — even in clean sessions
  • ✓Default-deny strict mode & repo lockdown: isolate prod/infra repos with zero-egress rules and allowlist-only shell execution
  • ✓Kernel-enforced OS sandbox: Linux bwrap / macOS Seatbelt strip network & secrets so renamed or compiled binaries can't escape
  • ✓Cryptographic repo supply-chain gate: agent-gate GPG/SSH signed configs, static skill risk profiling, and automatic binary pinning

taintd Cloud (Self-Hosted Fleet)

Teams & Pilots
  • 01Zero-token device auth: one-time join tokens mint Ed25519 keys in Keychain / systemd-creds with nonce replay defense & instant revocation
  • 02Workspace-scoped control: layered floor or lock_local_policy on managed_paths / managed_remotes — personal folders stay free & private; --kind agent locks headless bots
  • 03Learn → Confirm → Enforce: Shadow MCP discovery + additive policy synthesis with Ed25519 anti-rollback signatures
  • 04Remote break-glass grants: single-use scoped allow_once / clear_taint approvals with Slack / Mattermost / Discord alerts
  • 05Zero-trust E2EE compliance: client-side age / GPG audit logs, Google/OIDC SSO, and formula-safe SOC2 CSV export