Webhook security splits into two jobs: receivers check that requests are genuine, and senders keep customer URLs from reaching their internal network. Here's our yes/no checklist for each side, with sources.
Webhook security splits cleanly into two jobs. Receivers have to make sure a request really came from the sender and hasn't been replayed or processed twice. Senders have to make sure customer-supplied URLs can't be used to reach their internal network, that signing secrets are strong, stored safely and rotatable, and that delivery logs don't turn into a data leak. Below is a checklist for each side, written as yes/no questions.
Receiver checklist
- Do you verify the signature on every request? Using whatever the sender specifies: HMAC-SHA256, an asymmetric signature, and so on.
- Do you verify against the raw body? The bytes you received, before any JSON parsing (raw body by framework).
- Do you compare in constant time?
timingSafeEqual,hmac.compare_digestor similar, never===. GitHub's docs explicitly warn against plain equality operators (GitHub: validating deliveries). - Do you enforce a timestamp tolerance? If the timestamp is signed, reject messages far from the current time, typically more than 5 minutes. The Standard Webhooks spec says to check that
webhook-timestampis within tolerance to prevent replay attacks. - Do you drop duplicate IDs? Put
webhook-idor the event ID in a table with a unique constraint and skip anything already processed (handling duplicates). - Is the secret kept out of code and logs? Not in the repo, not in error reports, and different for test and production.
- Do you accept multiple signatures? During rotation, senders send several; pass if any one matches (rotating secrets).
- Do you avoid trusting the payload blindly? A valid signature proves who sent it, but for money movements or state changes you may still want to re-fetch the object from the sender's API.
- Do you acknowledge fast and process later? Verify, store, return 2xx, then work. Handlers that do slow work inline are easy to overwhelm (webhook timeouts).
Where IP allowlisting fits
Filtering by source IP is a second layer, not a substitute: several providers publish no source IPs, and the ones that do can change them. See Webhook IP allowlisting for what each provider publishes.
Secret URLs
Some tools that can't sign requests rely on an unguessable URL. That may be the only option there, but URLs end up in settings screens, access logs, proxy logs and wiki pages. Where the sender signs requests, verify the signature and treat the URL secrecy as an extra layer.
Sender checklist
- Do you validate endpoint URLs at registration? HTTPS only; reject raw IP addresses, internal names such as
localhostor.internal, and credentials embedded in the URL. - Do you re-resolve at send time? A hostname that pointed to a public address when it was registered can later be changed to point at
127.0.0.1,10.0.0.0/8or169.254.169.254. OWASP's SSRF guidance says to resolve both A and AAAA records and confirm the addresses are public. - Do you refuse to follow redirects? Treat 3xx as a failure and never POST to the
Location. OWASP recommends disabling redirects in the HTTP client used for these requests. - Is the sending worker isolated from your internal network? The Standard Webhooks spec recommends running webhook workers where they can't reach internal networks and services, for example behind a filtering proxy or in an isolated subnet.
- Do you time out slow endpoints? Something like 10-15 seconds, so one slow customer can't tie up your workers.
- Are signing secrets long enough? Standard Webhooks specifies random HMAC secrets between 24 and 64 bytes.
- Are secrets encrypted at rest? Per-endpoint secrets shouldn't sit in plaintext in your database. Reveal them only on creation or on an explicit, permissioned action that you log.
- Can you rotate secrets without downtime? Sign with both old and new secrets for a window so receivers can switch over, and have a written procedure for a leaked secret.
- Do your delivery logs keep only what they need? Store just the start of response bodies, delete logs on a schedule, and check whether payloads need personal data at all.
- Can you answer "which IPs will you send from?" Either send from static IPs or be ready to explain signature verification to the customer's firewall team (sending from a static IP).
Sources (checked 2026-09-27): OWASP SSRF Prevention Cheat Sheet, Standard Webhooks spec, GitHub: validating deliveries
Using the checklist
- Count the "no" answers. On the receiving side, items 1-5 come first; on the sending side, items 1-3 and 7.
- For sender-side URL checks in code, including how to avoid DNS rebinding between the check and the connection, see SSRF protection for webhook senders.
- Each item links to a deeper post. For choosing between HMAC, asymmetric signatures, mTLS and static tokens, see Webhook authentication methods compared. For how timestamp tolerance interacts with retries, see Webhook replay attacks.
What Webhook Admin covers on the sending side
As of 2026-09-27:
- Endpoint URLs must be HTTPS on port 443 or 8443. Raw IP addresses, internal hostnames and embedded credentials are rejected. At registration, names that resolve to internal addresses or don't resolve at all are refused, and DNS is checked again right before each send.
- Redirects are not followed. Responses time out after 15 seconds, and only the first 1,024 bytes of the response body are logged. Log retention is 7 to 90 days depending on the plan.
- Deliveries are signed in the Standard Webhooks format (HMAC-SHA256) with a per-endpoint secret stored encrypted. Revealing a secret is recorded in the audit log.
- After a rotation, deliveries carry signatures from both the old and new secret for 24 hours.
- A static source IP (
209.71.107.233, one IPv4 address) is available per endpoint from the Starter plan.
If you'd rather not build the sender side of this list yourself, Webhook Admin is free for up to 50,000 messages a month: https://app.webhookadmin.com/signup
Quick FAQ
Is an IP allowlist enough on its own?
No. Several providers (Shopify, Slack, LINE) don't publish source IPs, and the ones that do can change them. A matching IP also says nothing about whether the body was altered. Use allowlisting on top of signature verification, not instead of it.
Isn't a long, unguessable URL good enough?
Not really. URLs leak through settings pages, access logs, proxy logs and internal docs, and anyone who has the URL can post fake events. Treat a secret URL as an extra layer and verify signatures whenever the sender provides them.
Where should signing secrets be stored?
On the receiving side, in environment variables or a secrets manager, never in the repository or logs. On the sending side, encrypt each endpoint's secret at rest and only show it on creation or on an explicit, audited action.
Thanks for reading! Is there an item you'd add to either checklist? We'd love to hear in the comments.
This post first appeared on the Webhook Admin blog.

