passdetective
CLI tool that scans shell command history
Platforms: Linux · Last verified September 6, 2026
This package contains a command-line tool that scans the shell command history for mistakenly written passwords, API keys, and secrets. It uses regular expressions to identify potential sensitive information and helps avoid accidentally exposing sensitive data in the command history.
Only use this tool against systems you own or are explicitly authorized to test — see the disclaimer.
Getting started
Install on Kali Linux with `sudo apt install passdetective`. See the official Kali tool page and upstream homepage linked above for full usage and configuration details.