Why it matters
Allow platform user-agents carefully; do not block signature failures wrongly.
Practical steps
- Threat-model sec waf webhooks: spoofed webhooks, leaked tokens, and confused-deputy admin actions.
- Implement allow platform user-agents carefully; do not block signature failures wrongly with constant-time compares where secrets are involved.
- Never log raw tokens, signing secrets, or full payment payloads.
- Add unit tests that prove forgeries fail closed for sec waf webhooks.
- Document rotation and incident steps for sec waf webhooks in the security runbook.
Watch out for
- Copy-pasting outdated snippets for sec waf webhooks without re-reading current official docs.
- Shipping sec waf webhooks to production without a staging rehearsal and a documented rollback.