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
More work

AgentShield — local security for Claude Code
A desktop app and CLI in Rust that records every Claude Code action, gives it a risk score and can block what your policy forbids. All local.

Interactive 3D WebGL Experience
A 3D WebGL piece with animated chrome letters, a neon grid and warp-speed stars. Move your mouse to pan the camera.

ForgeTerm — a terminal for AI agents
A terminal in Rust for Windows 11 and Linux, made for working with Claude Code and Codex: several agents at once, each in its own worktree.
