SecurityPassDetector — secrets in your AI history

2026

A desktop app and CLI in Rust that searches the session history of Claude Code and Codex for passwords, API keys and personal data. All local.

SecurityPassDetector — secrets in your AI history

SecurityPassDetector searches the session history that AI coding agents such as Claude Code and OpenAI Codex keep on disk. That history holds every prompt, every answer and the output of every tool, so also the .env file the agent just read. The program looks in it for passwords, API keys, private keys and personal data such as a Dutch citizen service number (BSN) or an IBAN, and points to every hit as file, line and column, even when the value sits inside nested JSON.

Every finding has three separate properties: the severity of the type of secret, the confidence of the detection and the exposure. The last one says whether the user pasted the value, a tool read it, or the model wrote it. Together they give a risk score from 0 to 100, as a sum that can be checked. Fingerprints recognise the same secret across sessions, projects and agents. A remediation center tracks the status of each secret, with a checklist per type in English and Dutch. There are reports in HTML, JSON, CSV and SARIF, and a transcript can be written out as a redacted copy.

A scanner for secrets must not become a leak itself. That is why SecurityPassDetector never stores the secret, only a masked value and a fingerprint (HMAC) with a key that stays on the user's own computer. Source files are only read, the agents' login files are skipped, symlinks are not followed and there is no network code: no account, no telemetry, no online validation of keys. A built-in self test checks with test values that nothing ends up in the database, the reports or the copies. The limits are stated too: detection is heuristic, a clean scan is no guarantee, and deleting a file does not revoke a key.

The engine is written in Rust. The same engine sits behind the command line tool spd and behind the desktop app, which is built with Tauri 2 and React, in English and Dutch. The detection rules are written in TOML and can be extended with your own. More than two hundred automated tests run on synthetic data only. There is an installer for Windows. SecurityPassDetector is free and open source (Apache-2.0); the source code is on GitHub under erikvandeblaak/SecurityPassDetector. The image above comes from the app's demo mode: the data shown is fictional.

Download, and checking what you download: Download SecurityPassDetector. Explained for beginners, with tests: SecurityPassDetector explained.

Related work: AgentShield.

Technologies

Rust Tauri 2 React TypeScript SQLite TOML Claude Code OpenAI Codex

More of my work

Browse the full portfolio or read the blog.

More work