Learn the hard way: an AI security audit missed a committed token
A developer asked Claude Code to audit a repo for secrets before going public. It missed a Contentful management token in .claude/mcp.json, a file Claude Code had created, which had been committed into git history.
Source: FieldNotes AI ·
Copy the prompt
Audit this repo for secrets before I make it public. Scan the full git history (not just current files), including hidden folders like .claude/, .cursor/ and .vscode/, plus .env files and CI configs. List every credential with file, commit and type, then tell me which to rotate and what to add to .gitignore.