# Secret Scan

> Catch hardcoded secrets, keys, and tokens before they get committed. Use before any commit and on any file with credentials.

- Skill: `archive228/secret-scan` (Agent Skill)
- Install (CLI): `npx skillmds@latest add archive228/secret-scan`
- Raw SKILL.md: https://api.skillmd.com/api/skills/archive228/secret-scan/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: archive228 (https://skillmd.com/u/archive228)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/archive228/secret-scan

---

# Secret Scan
Grep the diff for: `api[_-]?key`, `secret`, `token`, `password`, `BEGIN PRIVATE KEY`, `AKIA[0-9A-Z]{16}`, `sk-`, `ghp_`, bearer values, and long base64/hex blobs.
For each hit: is it a real secret or a placeholder? Real secrets:
1. Must move to env / a secrets manager — never the repo.
2. If already committed, it is COMPROMISED. Rotate it, don't just delete the line.
3. Add the pattern to `.gitignore` / a pre-commit secret scanner.
Output: file:line of every real secret + the rotation step. A deleted secret in git history is still leaked.

