Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Webhook and Queue Security

Reviews gRPC, GraphQL, queues and webhooks for missing auth, forged events, replays and duplicate delivery.

Claude's review

8/10 Precise RPC, queue and webhook review: stream interceptor gaps, secret chosen before body, proto enum zero, replay and ordering.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Use when the diff adds or changes a gRPC service or interceptor, a GraphQL resolver or subscription, a protobuf/Thrift schema, a queue or pub/sub producer or consumer, an event handler or an inbound webhook - peer identity vs claimed principal, interceptor gaps, per-item and stream authorization, webhook signatures, untrusted producers, enum defaults, replay, duplicate delivery and ordering

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: rpc-messaging-and-webhooks
category: security
description: Use when the diff adds or changes a gRPC service or interceptor, a GraphQL resolver or subscription, a protobuf/Thrift schema, a queue or pub/sub producer or consumer, an event handler or an inbound webhook - peer identity vs claimed principal, interceptor gaps, per-item and stream authorization, webhook signatures, untrusted producers, enum defaults, replay, duplicate delivery and ordering
tech_stack: Protocols & messaging
source: cloudflare/security-audit-skill (MIT) protocol, RPC and messaging attack classes, adapted to diff review; own wording; OWASP API Security Top 10 2023 and CWE cited by name only
---
# RPC, Messaging and Webhooks

## Overview

Behind the HTTP edge, services talk through RPC calls, queues and callbacks, and two beliefs keep failing there: "it is internal, so it is authenticated" and "it passed the schema, so it is safe". A schema proves a message's shape — not who sent it, which tenant it may touch, whether it was already processed, or whether it is still current.

**Core principle:** at every hop, name the authenticated peer and show how it becomes the principal the handler authorizes. A field inside the message that names a user or tenant is a claim, not an identity.

## 1. gRPC Interceptors and Method Coverage (CWE-306, CWE-862)

```go
// ❌ only unary calls are authenticated; every streaming method is open
srv := grpc.NewServer(grpc.UnaryInterceptor(authUnary))

// ✅ both kinds, and the skip list is exact method names, not prefixes
srv := grpc.NewServer(
	grpc.ChainUnaryInterceptor(authUnary),
	grpc.ChainStreamInterceptor(authStream),
)
```

Also: a skip list matched with `strings.HasPrefix(info.FullMethod, "/pkg.Health")` that also matches `/pkg.HealthAdmin/…`; server reflection registered on a public listener next to unauthenticated methods; grpc-gateway or Connect transcoding that reaches the same handler through an HTTP route the interceptor does not see; identity read from metadata such as `x-user-id` that any client can send.

## 2. Per-Item and Streaming Authorization

A stream, subscription or batch is authorized once, then later items name different resources:

- a bidirectional stream checks the first message's project and trusts the rest;
- a GraphQL subscription authorized at connect keeps delivering after the user's role is revoked;
- a batch RPC with `repeated string ids` checks `ids[0]`;
- a WebSocket that subscribes by channel name builds the channel from client input (`"org." + msg.org`).

Re-check where the scope can change, and bind a subscription to the principal and resources it started with.
...

From makifbaysal's repository, Apache-2.0 licence.

Related skills

  • Checked

    Codebase quality audit

    Audits a whole code repo for bugs, security holes, slow paths and dead code, ranked in plain English.

    by DietrichGebert 203k
    7/101 credit
  • Checked

    Security and CVE audit

    Runs a security and CVE audit on code in any language and scores it out of 100, with false alarms filtered.

    by opencrabs 1k
    7/101 credit
  • Checked

    OWASP code review

    Reviews code for security flaws using the latest OWASP Top 10 lists, including those for AI and agent apps.

    by agamm 467
    7/101 credit
  • Checked

    Code security hardening

    Hardens code that handles user input, logins and data against the OWASP Top 10, starting from a threat model.

    by addyosmani 122k
    7/101 credit
  • Checked

    Android intent security

    Audits Android components and incoming intents to fix redirection and unauthorised access holes in your app.

    by android 11k
    8/101 credit
  • Checked

    Fuzz harness planning

    Plans fuzz harness scope and fuzzer choice for code you are authorised to test, so real bugs surface sooner.

    by provos 690
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added