Stop AI coding agents from leaking your keys, on disk and on the wire.
Use Gitleaks or TruffleHog for git history. leaktap is a single 6 to 8 MB MIT-licensed Rust binary (no daemon, no root certificates, zero telemetry) that finds and scrubs leaked secrets in local transcripts and SQLite -wal databases (~/.claude, ~/.codex, Cursor state.vscdb, ~/.continue), and wraps live claude, codex, or MCP sessions to strip shell env secrets, block outgoing keys, pin MCP tool schemas, and log startup network calls.
# Read-only local scan on macOS, Linux, Windows (offline after install)
npx leaktap@0.4.3
# Or install with Homebrew on macOS and Linux
brew install vssinghh/tap/leaktap && leaktap
leaktap v0.4.3.Empirical Security Audits
- Where 10 Popular AI Coding Tools Store Your Pasted Secrets on Disk: 0 of 10 redact pasted secrets before writing to disk (Codex still carries a literal
// TODO: check `text` for sensitive patterns), 9 of 10 store plaintext history, and 8 of 9 plaintext tools keep transcripts or prompt history forever by default. Includes an interactive setup checker for macOS, Linux, and Windows. - Top 20 MCP Server Startup Audit: 5 of 20 opened non-API outbound HTTPS calls on startup before any tool ran, 7 of 20 ship default-on telemetry (2 with no mention in their root README), 2 pass API keys in CLI flags visible in
ps aux, and 0 of 470 live tools had prompt injections.
How leaktap Compares
| Tool | Local Transcript & SQLite -wal Scrubbing |
Live Secret Blocking / Env Stripping | Live MCP Startup Wiretap & Schema Pinning | Runtime Footprint |
|---|---|---|---|---|
leaktap (MIT, Rust) |
Yes (JSONL, JSON, ~/.claude.json, lock-checked SQLite/-wal VACUUM) |
Yes (zero-cert loopback wrapper, --block-secrets, --scrub-env) |
Yes (HTTP CONNECT hosts + SHA-256 tools/list rug-pull pins) |
Single 6 to 8 MB binary, no daemon |
Gitleaks / TruffleHog |
Git repos only (misses ~/.claude, state.vscdb, .mcp.json) |
No | No | Single binary |
whatileaked (MIT, Node) |
Scans transcripts and wipes text/JSONL, skips Cursor state.vscdb and does not wipe SQLite DBs |
No (live redaction sold separately) | No | npx (Node 20+, Node 22.13+ for SQLite read) |
Medusa (AGPL, Python) |
Scans and purges text/JSONL and shell history, does not purge SQLite/Cursor DBs | No (static scanner) | Static repo/MCP checks only | Python package (pip) |
Pipelock (Apache/ELv2, Go) |
No (egress firewall only) | Yes (full proxy firewall, optional TLS MITM and sandbox) | Yes (bidirectional MCP proxy + signed receipts) | Proxy daemon / Docker / Helm |