Skip to main content

secretscan-report

A personal security-hygiene tool: scans your own machine for accidentally exposed secrets (API keys, tokens, passwords, private keys), audits what's installed and what's exposed (Docker containers, listening ports, Chrome browser cookies), and can optionally check your local network and internet connectivity.

Everything runs locally. No secrets ever leave your machine.

Install

pip install secretscan-report[all]

The [all] extra installs websocket-client, which is used only to talk to Chrome's DevTools Protocol on localhost:9222 for headless browser auditing (the same mechanism as chromedp in Go). It never makes outbound network connections.

Without [all]:

pip install secretscan-report

This installs the core scanner (filesystem, shell history, keychain, processes, network, Docker). Chrome headless auditing is skipped if websocket-client is not installed.

Usage

# Full scan — all modules including Chrome, LAN, Internet
# Generates HTML + JSON reports with a progress bar
secretscan fullscan

# Default scan (home dir, default modules)
secretscan run

# Scan a specific directory, filesystem module only
secretscan run --paths ~/Projects --modules filesystem

# Full scan with custom output directory
secretscan fullscan --output-dir ./report

# List all detection rules
secretscan rules list

Modules

Module Default What it does
filesystem yes Scans files under --paths (default $HOME) for secret patterns
shell-history yes Scans .zsh_history, .bash_history, and other history files
keychain yes Audits macOS Keychain metadata (never decrypts values)
process-env yes Inspects your own running processes' command lines
installed-tools yes Inventories security/dev tools and packages
network yes Lists TCP/UDP ports this machine is listening on
docker yes Lists running containers, checks for exposed Docker API
chrome yes Audits Chrome browser: launches headless, reads cookies via CDP, takes screenshots
lan opt-in Probes other devices on your local network (--yes-lan)
internet opt-in Tests outbound connectivity to public endpoints

Output formats

  • table — colored terminal output (default)
  • json — machine-readable {meta, findings} document
  • html — self-contained HTML report with dark/light theme
  • csv — flat CSV of findings

Detection

15 built-in rules covering AWS, GitHub, GitLab, Slack, Stripe, Google, npm, PEM private keys, and generic password/secret/token assignments. Each rule uses regex matching with optional Shannon entropy scoring and keyword pre-filtering for performance.

Values that look like placeholders ({{password}}, changeme, your_api_key_here) are detected and downgraded rather than competing with real findings.

Security & privacy

  • No outbound network calls from secret-detection modules — ever.
  • The chrome module connects to localhost:9222 (Chrome DevTools Protocol) to audit your own browser. This is the same protocol used by Selenium, Playwright, Puppeteer, and chromedp. It copies essential Chrome profile files to a temp directory, launches headless Chrome against the copy, reads cookies and takes a screenshot, then deletes the copy.
  • The optional lan module sends pings to your local subnet (requires --yes-lan).
  • The optional internet module makes TCP connections to well-known public endpoints (e.g. google.com:443) to test connectivity.
  • All scan results stay on disk in the output directory you choose.

Cross-platform

Works on macOS, Linux, and Windows. Platform-specific features:

  • macOS: Keychain audit, Chrome cookie decryption via Keychain
  • Linux: /proc-based process inspection
  • Windows: netstat/wmic/ipconfig fallbacks

What this tool does NOT do

  • No git-history scanning (use Gitleaks/TruffleHog for that)
  • No live credential verification
  • No bypassing macOS security prompts
  • No outbound transmission of findings
  • Secret detection modules never make outbound network calls

Dependencies

  • pyyaml — for loading rules YAML files
  • websocket-client (optional, via [all]) — localhost-only CDP communication for Chrome auditing
  • cryptography (optional, via [crypto]) — macOS Chrome cookie decryption from SQLite fallback

Metadata

Release files for get-report 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for get-report 0.1.0
File Size Uploaded
get_report-0.1.0.tar.gz 35.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for get-report 0.1.0
File Interpreter ABI Platform
get_report-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 81.8 kB

Release files / get_report-0.1.0.tar.gz

Download URL get_report-0.1.0.tar.gz
Size 35.8 kB
Tags Source
SHA-256 checksum
How to use checksums
25ec360173f560c67cb3d79a3c393e13b9182e48df912c1bd96a8db0d54de0f5
BLAKE2b-256 checksum
How to use checksums
41416a898decf702d4a8301bb9668e96085143b015cc20c4badd0f64217af86e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.6

Release files / get_report-0.1.0-py3-none-any.whl

Download URL get_report-0.1.0-py3-none-any.whl
Size 45.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12b08df48bde785198d411bc83a78a7cc2fcfe8dc4c4876ef321af9eab5af965
BLAKE2b-256 checksum
How to use checksums
5d8f7276949f69bce55e731881edc622db3ad7d38f6bf0837206855b31d1b178
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page