secrets-guard.mjs
- Event: PreToolUse Edit/Write
- Type: wall: blocks the action and says why (exits with code 2)
What it does
Section titled “What it does”BLOCKS writing real credentials (AWS, GitHub, Stripe, OpenAI/Anthropic, PEM, JWT, strings with a password); ignores placeholders.