Webhook Verdict — Verify Webhook Signatures & Catch Replays

    by LINH RATHHENRY

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    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 IDEndpointSchemeVerdictDiagnosis / Notes
    evt_123api.service.com/hooksstripeINVALIDre-serialized JSON: The body was modified (likely by framework middleware) to use sorted keys.
    evt_124api.service.com/hooksstripeVALIDMatches current secret.
    evt_125api.service.com/hooksstripeDUPLICATEIdentical body and signature to evt_124. Skip to avoid double-processing.
    evt_126api.service.com/hooksstripeINVALIDtrailing 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_123 to 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Write Files
    Network Access
    Listed9 days ago
    Updated8 days ago

    What's inside

    Creator

    LINH RATHHENRY

    LINH RATHHENRY

    7 skills on Agensi

    Frequently Asked Questions

    Webhook Verdict solves the common 'silent failure' problem where signature verification fails due to hidden issues like re-serialized JSON, trailing newlines, or encoding mix-ups that are impossible to spot manually.

    The tool supports standard HMAC-SHA256 schemes used by major providers like Stripe, GitHub, Shopify, and Slack, and can be configured for custom HMAC implementations.

    No, this skill is a zero-dependency Python tool designed for offline execution to ensure your sensitive endpoint secrets and raw request bodies never leave your local environment.

    You receive the full diagnostic toolset, including the core verification engine, the batch processing command, a self-test utility, and a signature generator for creating test fixtures.

    The skill requires the exact, raw request body as it was received; if your logging middleware has already truncated the data or converted it to a standard object, the HMAC hash will not match.

    Yes, the tool features a 'Rotated Secret' mode that allows you to test signatures against both current and legacy secrets to identify which senders haven't updated their configurations yet.

    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.