Skip to content
Back to skills

Webhook Handling

ASecurity

Robust webhooks: raw-body signature checks, idempotency by event ID, fast acknowledgement, async processing, ordering and replay.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgitbackendsecurity

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill webhook-handling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Webhook Handling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Webhook Handling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-webhook-handling/badge)](https://www.skillsdirectory.com/skills/karthikrshet-webhook-handling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: webhook-handling
description: "Robust webhooks: raw-body signature checks, idempotency by event ID, fast acknowledgement, async processing, ordering and replay."
tags: [payments, backend, security]
---

# Webhook Handling

## When to use

- Receiving webhooks from payment providers, GitHub, Slack, etc.

## Procedure

1. Read the raw body before JSON parsing
2. Verify HMAC with constant-time compare
3. Reject old timestamps
4. Store event ID with a unique constraint
5. Return 2xx fast and process async
6. Handle out-of-order events by checking current state

## Checklist

- [ ] Replay test
- [ ] Duplicate test
- [ ] Invalid signature test

## Anti-patterns

- Doing slow work before responding
- Verifying against re-serialised JSON

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.