1
Course Overview
Slide
Signed Webhooks — FDE Contractor Training
- At-least-once delivery risks
- Gold bars: bad signature, duplicate, poison, clean logs
- Self-paced practice focus
2
Raw-Body HMAC Verification
Slide
- Verify before parsing JSON
- Constant-time comparison
- Timestamp freshness check
3
HMAC Verification Simulator
Interactive
Runs in a sandboxed frame (scripts allowed; no same-origin access).
\n \n \n \n\n\n\n\n\n\n\n\n
\n\n\n\n\n
\n\n HMAC Verification Simulator
\nImplement raw-body HMAC verification for webhook security. Test valid signatures, invalid signatures, and replay protection with timestamp tolerance.
\n\n
\n\n \n
\n \n Verification Function
\n \n\n \n Loading Python environment...\n
\n \n
\n Execution Output
\nReady to execute...
\n \n \n
\n Test Cases
\n \n\n \n
\nUse
\n hmac.new(secret.encode(), body.encode(), hashlib.sha256).hexdigest() to generate the expected signature.Compare signatures using
\n hmac.compare_digest() to prevent timing attacks.Check timestamp freshness before verifying the signature to prevent replay attacks.
\n