- Home
- Skills
- APIs & Backend
- Webhook Verdict — Verify Webhook Signatures & Catch Replays
Webhook Verdict — Verify Webhook Signatures & Catch Replays
Your webhook handler says "invalid signature" and nothing else. This skill tells you whether each captured delivery is genuine, exactly why the bad ones fail, and which ones are replays that would double-process.
$19
Webhook Verdict — Verify Webhook Signatures & Catch Replays
Example session with this skill installed
Verify the captured Stripe webhooks in captures.json and tell me why the signatures are failing.
- Read your context and instructions
- Compiled the webhook verdict
I have analyzed the webhook captures. The verification identified 2 invalid deliveries and 1 duplicate event.
Webhook Verification Report
| Delivery ID | Endpoint | Scheme | Verdict | Diagnosis / Notes |
|---|---|---|---|---|
evt_123 | api.service.com/hooks | stripe | INVALID | re-serialized JSON: The body was modified (likely by framework middleware) to use sorted keys. |
evt_124 | api.service.com/hooks | stripe | VALID | Matches current secret. |
evt_125 | api.service.com/hooks | stripe | DUPLICATE | Identical body and signature to evt_124. Skip to avoid double-processing. |
evt_126 | api.service.com/hooks | stripe | INVALID | trailing newline: The captured body has an extra \n not present during signing. |
Endpoint Findings
- Endpoint:
http://legacy.service.com/hooks-> INSECURE_URL: Delivery sent over unencrypted HTTP. - Scheme:
stripe-> NO_TIMESTAMP: Note: ensure event-id deduplication is active for this endpoint.
Next steps
- Update the middleware for
evt_123to preserve the raw request body before JSON parsing. - Trim trailing whitespace from your log collector to fix body corruption seen in
evt_126. - Migrate the legacy HTTP endpoint to HTTPS immediately.
Connects securely to your tools. The creator never sees your data.
About this skill
Every developer who receives webhooks hits the same wall: the provider swears it sent the event, your handler swears the signature is invalid, and the error message gives you nothing to work with. The cause is almost always one of a handful of mistakes — the body was parsed and re-serialized before verification, the signature was computed without the timestamp, the endpoint secret was rotated on one side only — but finding which one means hours of manual HMAC arithmetic.
Webhook Verdict gives your agent a verification step for webhook work. Feed it captured deliveries (the raw bodies and headers you already have) and it produces a one-page Markdown verdict for each one:
- Signature verification for Stripe, GitHub, Shopify, and Slack, plus a custom HMAC scheme you configure — always against the exact raw bytes, with constant-time comparison
- Mismatch diagnosis — for every invalid signature it re-tests the known failure variants (re-serialized JSON, including the JS JSON.stringify style; sorted keys; hex vs base64; timestamp left out of the signed payload; trailing newline; an unusable timestamp header) and names the likely cause
- Replay check — signature timestamps are compared against a configurable tolerance window (default 300 seconds) and stale deliveries are flagged
- Duplicate detection — repeat deliveries are caught per endpoint by event id and by identical body + signature, so a redelivery never double-applies an event; only signature-verified deliveries count as the original
- Secret rotation check — a delivery that verifies only under a previous secret is reported as exactly that, so you know the sender has not picked up the new secret yet
- Setup findings — plain-HTTP endpoints and legacy SHA-1 signatures are flagged, and secrets are masked in every output, never printed in full
The skill includes the exact reaction playbook: process on VALID, re-key on VALID_PREVIOUS_SECRET, reject on STALE and INVALID, skip on DUPLICATE.
What's inside:
- webhook_verdict CLI (pure Python standard library, zero dependencies): verifies a captures file and writes the Markdown report; --json for machine-readable results; exit codes 0/1/2 for CI gating
- --sign mode that builds correctly signed test deliveries, and a --self-test mode with known-answer vectors that proves the verifier itself is correct
- The agent skill (SKILL.md) with the capture, verify, act workflow and the verdict playbook
- A demo with 9 captured deliveries across 5 endpoints — valid, rotated, stale, duplicated, tampered, and mis-signed — with a generated report
- 60 passing pytest tests covering every scheme, verdict, and diagnosis
Who it's for: anyone whose agent (or backend) receives Stripe, GitHub, Shopify, or Slack webhooks — and who is done debugging signature failures by hand.
Requires the exact raw body string; modified or truncated logs cannot be verified. Does not support asymmetric (RSA/ECDSA) signatures.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python
Permissions
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.