Skip to content

Replay prevention

To prevent replay attacks, reject requests where X-Ingrid-Timestamp falls outside your allowed clock-skew window, store recently seen event identifiers for at least the duration of that window, and reject any request whose event identifier has already been accepted.

A typical implementation accepts only recent deliveries, for example within a five-minute window from X-Ingrid-Timestamp, and treats each event identifier as single-use within that window.

If your system uses queues or retries internally, apply deduplication before starting downstream processing so that repeated webhook deliveries do not create duplicate side effects.

Receiver recommendations

Recommended practices include a short acceptance window for old requests, deduplication keyed by event id, and audit logging for rejected or replayed requests.

Defense in depth

Even when request signing is in place, standard transport controls should remain in effect. Require HTTPS, restrict ingress where possible, enforce request size limits, and isolate webhook processing from public application traffic.