Logo: Auditing Grpc Service Authorization

Auditing Grpc Service Authorization

Organisatioun
UnboundCompute
auditing-grpc-service-authorization

Audit a gRPC service for a method a caller can reach without the authorization the service assumes an interceptor enforces, after the interceptor coverage and the channel credentials are resolved. Covers authorization installed on the unary interceptor while the streaming chain omits it, a per-method authorization gap reachable at the wrong privilege, server reflection enabled in production exposing the full API, a plaintext channel with metadata trusted unverified, an absent message-size or recursion-depth limit inviting decode denial of service, and a transcoding gateway that does not apply the same auth filter as native gRPC. Use when reviewing service and interceptor registration, method handlers, and channel setup, not the certificate-validation mechanics the transport skill owns. A caller with forged or absent metadata is the source, a service method acting without an authorization check is the sink, and an interceptor that does not cover the method or stream is the bug.

Iwwersiicht

EditeurUnboundCompute
Repositorysecurity-agent-skills
Skill-Nummauditing-grpc-service-authorization
Stären
27
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    UnboundCompute huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Auditing Grpc Service Authorization an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-grpc-service-authorization
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-grpc-service-authorization .claude/skills/auditing-grpc-service-authorization
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Auditing Grpc Service Authorization an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Auditing Grpc Service Authorization automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Auditing Grpc Service Authorization net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Auditing gRPC service authorization: the method the interceptor does not cover

A gRPC service usually centralizes authorization in an interceptor, and the bug is a method the interceptor does not actually cover. The classic shape is an auth interceptor installed on the unary chain while the streaming chain runs without it, so a streaming RPC is callable with no credentials. You audit it by resolving which interceptors are registered and which methods and stream types they actually gate, then checking each method the check assumes is covered. The other half is the channel: a plaintext or insecure channel, metadata trusted without verification, missing message and recursion limits, and a transcoding gateway that fronts the service without the same auth filter. Certificate-validation mechanics belong to the transport skill; this skill owns whether a reachable method is authorized.

When to use

  • You are reviewing a gRPC server's service registration, interceptor chain, and method handlers.
  • The service enforces authorization in an interceptor, or is fronted by a transcoding gateway.
  • You want to know whether a caller can reach a method without the authorization the service assumes.

Scope check

Audit only services you own or are authorized to assess, and call a method only against an endpoint in scope, an unauthorized RPC drives real service state. Adjudicate on the registration and the handlers. If you can't name the authorization, stop.

The loop

  1. Resolve the interceptor coverage and channel credentials first. Enumerate the registered interceptors and determine, for each, whether it applies to the unary chain, the streaming chain, or both, and read the channel setup for whether it requires transport credentials or runs insecure. A method's authorization lives in whatever interceptor actually wraps it, so establish that coverage map before judging any individual handler.

  2. Check the unary-versus-streaming gap. Look for an authorization interceptor installed on the unary interceptor while the streaming interceptor chain omits it (or the reverse), so a whole class of RPCs runs without the check that the unary methods enforce.

  3. Check per-method authorization. Look for a method reachable at the wrong privilege: an interceptor that authenticates a caller but does not check that this caller may call this method, letting a low-privilege identity invoke a high-privilege RPC or read another tenant's object.

  4. Check reflection and channel trust. Look for server reflection registered in production, exposing the full method set to any caller for enumeration, and for a channel using insecure or plaintext credentials while trusting caller-supplied metadata (an identity header, a tenant id) without verifying it.

  5. Check decode limits and the transcoding gateway. Look for a missing maximum-receive-message-size or recursion-depth bound, so a deeply nested or oversized message exhausts the decoder, and for a transcoding gateway (a REST-to-gRPC front) whose entry does not apply the same authentication and authorization filter as a native gRPC call, opening a second unguarded path to the method.

  6. Confirm and record. Confirm by calling the method along the suspect path (a streaming RPC with no metadata, a low-privilege identity against a privileged method, the gateway route) and showing it acts without the authorization the service assumes. Kill the lead if a server interceptor enforces auth for both the unary and streaming chains so per-method handlers legitimately omit their own checks, if reflection is registered only behind an internal-only listener or a development build, if a service mesh enforces peer identity with mutual authentication so trusting the mesh identity is intended, if the maximum-message-size and depth limits are set, if metadata is re-validated by an interceptor rather than blindly trusted, or if the transcoding gateway applies the same auth filter with no REST-versus-gRPC asymmetry. Record the method, the path that reaches it unguarded, and the authorization it skips.

Where gRPC authorization leaks

  • Coverage is per-chain, not per-service. An interceptor on the unary chain does not gate streaming methods; resolve which chains each interceptor wraps before assuming a method is covered.
  • Authentication is not authorization. An interceptor that proves who the caller is, but not that they may call this method, leaves a per-method gap that reads or writes across a privilege or tenant boundary.
  • Reflection in production is free enumeration. Server reflection hands any caller the whole API surface; behind an internal listener or a dev build it is not exposed, in production it is a map for the attacker.
  • An insecure channel makes metadata a lie. Trusting a caller-supplied identity or tenant header on a plaintext or unauthenticated channel lets the caller assert any identity; the metadata has to be verified.
  • The transcoding gateway is a second door. A REST-to-gRPC front that skips the gRPC auth filter reaches the method by another path; the asymmetry, not the native call, is the bug.

Worked example (a confirm and a kill)

Confirm. A server registers an auth interceptor with the unary interceptor option only; the streaming interceptor chain has none. A server-streaming RPC that returns account records is callable with no metadata and streams the records to an unauthenticated caller. Confirmed a streaming method reachable without authorization because the interceptor covers only the unary chain, high rising to critical for cross-tenant data, remediation = install the auth interceptor on the streaming chain as well (or a single interceptor covering both) and re-check per-method privilege.

Kill. The same server installs the auth interceptor on both the unary and streaming chains, verifies the caller identity and its per-method privilege, sets the maximum-message-size and depth limits, and registers reflection only on an internal loopback listener. The streaming RPC rejects the metadata-less call. Killed, kill_reason = "a single auth interceptor covers unary and streaming, per-method privilege is checked, and reflection is not exposed; no uncovered method or stream."

Rationalizations to reject

  • "The interceptor handles auth." -> On which chain? An interceptor on the unary option does not wrap streaming methods; confirm the coverage includes every chain and stream type.
  • "The caller is authenticated." -> Authenticated to do what? Without a per-method privilege check, a low-privilege identity can call a high-privilege method.
  • "Reflection is convenient." -> In production it enumerates the whole API for an attacker; register it only behind an internal listener or a development build.
  • "We read the tenant from metadata." -> On what channel, verified how? On an insecure channel, unverified metadata is attacker-asserted; verify the identity, do not trust the header.
  • "The gateway is just a proxy." -> Does it apply the same auth filter as the native call? A transcoding front that skips it is a second unguarded path to the method.

Executing this in practice

You need the service and interceptor registration (which interceptors, which chains), each method handler and whether it relies on the interceptor for authorization, the channel credential setup and any metadata it trusts, the message-size and recursion-depth limits, the reflection registration and its listener, and any transcoding gateway and its filter. For each method, decide whether a caller can reach it without the authorization the service assumes. Reading the registration tells you what is covered; calling the method tells you what is reachable.

Related

  • auditing-websocket-connection-trust - the sibling wire-protocol audit where trust is established once at the handshake; here the analogous gap is trust assumed in an interceptor that misses a method or stream.
  • auditing-tls-and-certificate-validation - owns the certificate-validation mechanics for the channel; this skill covers whether the channel requires credentials and whether the method is authorized, not the chain-and-hostname check.
  • hunting-broken-object-level-authorization - the object-authorization analogue; a gRPC method that reads an object without checking the caller owns it has the same missing-scope shape at the method boundary.
  • FINDING-SCHEMA.md - source = a caller with forged or absent metadata, sink = a service method acting without an authorization check, evidence = the interceptor coverage map and the path that reaches the method unguarded.

Heefeg gestallte Froen

Wat mécht de KI-Skill Auditing Grpc Service Authorization?

Audit a gRPC service for a method a caller can reach without the authorization the service assumes an interceptor enforces, after the interceptor coverage and the channel credentials are resolved. Covers authorization installed on the unary interceptor while the streaming chain omits it, a per-method authorization gap reachable at the wrong privilege, server reflection enabled in production exposing the full API, a plaintext channel with metadata trusted unverified, an absent message-size or recursion-depth limit inviting decode denial of service, and a transcoding gateway that does not app...

Firwat Auditing Grpc Service Authorization op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Auditing Grpc Service Authorization besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Auditing Grpc Service Authorization an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-grpc-service-authorization an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Auditing Grpc Service Authorization benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Auditing Grpc Service Authorization benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Auditing Grpc Service Authorization domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Auditing Grpc Service Authorization gratis?

Jo. UnboundCompute huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇