Skip to content

secrets-guard.mjs

  • Event: PreToolUse Edit/Write
  • Type: wall: blocks the action and says why (exits with code 2)

BLOCKS writing real credentials (AWS, GitHub, Stripe, OpenAI/Anthropic, PEM, JWT, strings with a password); ignores placeholders.

See the code of secrets-guard.mjs on GitHub