webhook-security

webhook-security is a cursor rule for Cursor from lacymorrow/paperclip-hub. It costs 0 tokens per session (904 once invoked), scanned A, original, MIT.

A rule for using the vibe-tools command-line program to ask AI models questions and work with other tools. It lists supported command options and notes that direct questions do not automatically include your codebase context.

In plain words
What is it for?
Use it when an agent needs to query an AI model directly or use vibe-tools commands such as repository or planning operations.
Why use it?
It helps an agent choose the right command and avoid asking a model questions without the repository information it needs. It also documents how to select a model provider.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when an agent needs to query an AI model directly or use vibe-tools commands such as repository or planning operations.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/lacymorrow/paperclip-hub/webhook-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/lacymorrow/paperclip-hub

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for webhook-security

README.md
[![agentmods](https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/webhook-security/github.svg)](https://agentmods.dev/rules/lacymorrow/paperclip-hub/webhook-security)
Your own site
<a href="https://agentmods.dev/rules/lacymorrow/paperclip-hub/webhook-security"><img src="https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/webhook-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for webhook-security

Your own site · 80×15
<a href="https://agentmods.dev/rules/lacymorrow/paperclip-hub/webhook-security"><img src="https://agentmods.dev/badge/rules/lacymorrow/paperclip-hub/webhook-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 904 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00904
Opus 5.5 $0.00000 $0.00362
Sonnet 5.5 $0.00000 $0.00181
Haiku 4.5 $0.00000 $0.00090

Measured yesterday against content hash 7f8e58d426b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

webhook-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/webhook-security.mdc · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Webhook Security Best Practices

Signature Verification

  • ALWAYS verify webhook signatures using timing-safe comparison
  • Never accept webhooks without proper signature validation
  • Use environment variables for webhook secrets
  • Implement multiple signature algorithm support when available
  • Log signature verification failures for security monitoring
  • Never expose signature verification logic in error messages
  • Use raw request body for signature validation (before JSON parsing)

Request Validation

  • Validate all webhook payload fields before processing
  • Implement strict JSON schema validation
  • Check for required fields and proper data types
  • Sanitize all input data before database operations
  • Validate webhook event types against expected values
  • Implement payload size limits to prevent DoS attacks
  • Check request headers for proper content-type

Idempotency

  • Implement idempotency using unique event identifiers
  • Store processed webhook IDs to prevent duplicate processing
  • Use database transactions for atomic operations
  • Handle race conditions with proper locking mechanisms
  • Implement retry logic for failed webhook processing
  • Set appropriate timeouts for database operations
  • Log all idempotency checks and outcomes

Error Handling

  • Return proper HTTP status codes (200 for success, 4xx for client errors)
  • Implement comprehensive try/catch blocks
  • Log all webhook processing errors with context
  • Never expose internal error details in responses
  • Implement graceful degradation for non-critical failures
  • Use structured logging for better error analysis
  • Set up alerts for webhook failure patterns

Rate Limiting

  • Implement rate limiting per webhook source
  • Use sliding window or token bucket algorithms
  • Configure different limits for different event types
  • Monitor and alert on rate limit violations
  • Implement progressive backoff for repeated violations
  • Log all rate limiting actions
  • Allow for burst traffic during normal operations

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 125 lines · 0 tokens per session scan A 7f8e58d426b5

Subscribe to this mod's changes

webhook-security is a cursor rule published in the GitHub repository lacymorrow/paperclip-hub (15 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 904 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-10.

Related

webhook-security compared with cursor rules from other repositories

webhook-security next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
webhook-securitylacymorrow/paperclip-hubCursor rule15yesterdayMITA0Cursor
always-push-pritsmemeworks/adhxCursor rule195d agoMITA279Cursor
codex-premium-website-skillsTheGoat395/Codex-SkillsCursor rule13720d agoMITA0Cursor
context-managementvibestackdev/vibe-stackCursor rule8yesterdayMITA0Cursor
project-contextvibestackdev/vibe-stackCursor rule8yesterdayMITA508Cursor
typescript-coding-styleWebDevPeterGriffin/The-VibeCode-BibleCursor rule427d agononeA128Cursor
javascript-typescript-code-styleWebDevPeterGriffin/The-VibeCode-BibleCursor rule427d agononeA88Cursor