Show HN: Leaktap, find and scrub secrets in Claude/Codex/MCP logs A developer released leaktap 0.4.3, an open-source tool that scans local AI coding agent logs, SQLite state files, MCP configs and plugins for leaked secrets and can wrap live Claude Code, Codex CLI, Antigravity CLI and local MCP server sessions to block or redact secrets before they leave the machine. An audit of the top 20 MCP servers on GitHub using leaktap found 5 opened outbound internet connections on startup before any tool ran, 7 ship telemetry on by default, 2 put API keys in CLI flags visible in `ps aux`, and 0 of 470 live tools contained hidden prompt injections. The tool runs offline by default, exits 0 unless `--ci` is passed, and is installable via npx, Homebrew, Cargo or a shell installer. Find and scrub leaked secrets in local AI coding logs, SQLite state, MCP configs, and plugins, or wrap live CLI and MCP sessions to stop secrets from leaving your machine. Use Gitleaks or TruffleHog for your git history. Use leaktap for everything git never sees: local agent transcripts ~/.claude , ~/.codex , ~/.cursor , ~/.gemini , SQLite -wal files, .mcp.json configs, installed hooks, and live agent traffic. Live wrapping supports Claude Code claude , Codex CLI codex , Antigravity CLI agy , and local MCP servers. Offline scan also checks configs and state left by Cursor, Windsurf, Cline, Roo Code, Zed, Continue, Aider, and similar editors. I also used leaktap to check the top 20 MCP servers on GitHub https://github.com/vssinghh/leaktap/blob/master/docs/mcp-top-20-audit.md : 5 opened outbound internet connections on startup before any tool ran, 7 ship telemetry on by default, 2 put API keys in CLI flags visible in ps aux , and 0 of 470 live tools had hidden prompt injections. Try an offline scan on macOS, Linux, or Windows 0 network requests npx leaktap@0.4.3 Or install with Homebrew on macOS / Linux brew install vssinghh/tap/leaktap && leaktap npx prebuilt native binaries published with npm provenance : npx leaktap@0.4.3 Homebrew macOS and Linux : brew install vssinghh/tap/leaktap Cargo: cargo install --git https://github.com/vssinghh/leaktap --tag v0.4.3 --locked Shell installer macOS and Linux; inspect the script first : curl -fsSLO https://raw.githubusercontent.com/vssinghh/leaktap/v0.4.3/install.sh less install.sh LEAKTAP VERSION=v0.4.3 sh install.sh Optional: verify GitHub Actions build attestation gh attestation verify ~/.local/bin/leaktap --repo vssinghh/leaktap Prebuilt binaries, .sha256 checksums, and build attestations for macOS, Linux, and Windows are on GitHub Releases https://github.com/vssinghh/leaktap/releases . Runs offline by default. Scans ~/.claude , ~/.codex , ~/.gemini , ~/.cursor , ~/.codeium/windsurf , ~/.continue , installed plugins and skills, shell hooks, and workspace MCP or rule files. Catches API keys, private keys PEM, OpenPGP, JWK, GCP service accounts, Kubernetes secrets , database URLs, and passwords, including encoded blobs Base64, gzip+Base64, hex, UTF-16 and SQLite -wal pages. Default local audit exits 0; add --ci to fail on HIGH/CRITICAL findings leaktap Scan both the current repo and global AI agent folders leaktap scan --all --ci Opt-in: check whether detected keys are still active across 24 providers leaktap scan --verify --fail-on critical Opt-in: inspect live MCP servers for poisoned tool descriptions and save schema hashes leaktap --mcp-pins-file ./mcp-pins.lock scan --inspect-mcp --ci Refresh saved MCP tool hashes after upgrading a server leaktap --mcp-pins-file ./mcp-pins.lock scan --inspect-mcp --update-mcp-pins Scan a specific repo, skill folder, or file leaktap scan ./my-project --ci leaktap scan ./third-party-skill --ci PR CI check loading policy from origin/main with SARIF output LEAKTAP FINGERPRINT SALT="$SARIF SALT" leaktap scan . --policy-git-ref origin/main --format sarif --ci leaktap.sarif --inspect-mcp blocks loopback, private, and cloud-metadata IPs and does not expand ${ENV} variables from untrusted repo configs. Start claude , codex , or agy through leaktap . Any extra flags pass straight through: Watch outgoing prompts, strip unrelated shell secrets, and log child sockets leaktap claude leaktap codex leaktap agy Also strip SSH AUTH SOCK from the CLI and its MCP servers leaktap --scrub-ssh-agent claude Keep specific env vars needed by a tool or MCP server leaktap --allow-env GH TOKEN,GOOGLE APPLICATION CREDENTIALS claude Block outgoing API requests HTTP 400 containing secrets or critical prompt injections leaktap --block-secrets claude Redact secrets to REDACTED BY LEAKTAP in transit blocks with HTTP 400 if unredactable leaktap --redact-secrets claude When wrapping a session, leaktap : - Strips unrelated shell secrets AWS SECRET ACCESS KEY , STRIPE SECRET KEY , DATABASE URL , etc. while keeping profile selectors AWS PROFILE , KUBECONFIG , the CLI's own API key, and anything passed to --allow-env . - Routes supported BASE URL env vars through a local loopback proxy so prompts, headers, and MCP tool results are checked in memory before forwarding upstream over HTTPS. - Inspects non-TTY MCP tools/list and tools/call traffic for poisoned schemas or rug-pulls, logs HTTP CONNECT destination hostnames without custom root certificates, and writes live events to ~/.leaktap/live.jsonl 0600 . To wrap a single MCP server inside .mcp.json : leaktap tap --scrub-env --scrub-ssh-agent --quiet --log ~/.leaktap/mcp.jsonl -- npx @org/some-mcp@1.2.0 Dry run by default. On a folder, clean only edits AI session logs and skips source code and backups unless you pass --include-code or point directly at a file. With --apply , it scrubs text logs, prompt history in ~/.claude.json leaving login accounts and mcpServers untouched , and SQLite/ -wal databases after checking for active locks so open IDEs are not corrupted. Preview changes without modifying files leaktap clean Scrub leaked secrets in place leaktap clean --apply Clean a specific file, or include repo source files leaktap clean ./leaked.env --apply leaktap clean ./my-repo --include-code --apply Save a 0600