Logo de Auditing Grpc Service Authorization

Auditing Grpc Service Authorization

Organização
UnboundCompute
auditing-grpc-service-authorization

Audite um serviço gRPC para identificar métodos que um chamador pode acessar sem a autorização que o serviço espera que um interceptor imponha, depois de verificar a cobertura dos interceptors e resolver as credenciais do canal. Abrange autorização configurada no interceptor unary, mas ausente na cadeia de streaming; falhas de autorização por método acessíveis com privilégios inadequados; reflexão do servidor habilitada em produção, expondo a API completa; canal sem criptografia com metadados considerados confiáveis sem verificação; ausência de limites de tamanho de mensagem ou profundidade de recursão, que facilita ataques de negação de serviço durante a decodificação; e um gateway de transcodificação que não aplica o mesmo filtro de autenticação do gRPC nativo. Use ao revisar o registro do serviço e dos interceptors, os handlers dos métodos e a configuração do canal, não a mecânica de validação de certificados, que fica a cargo da habilidade de transporte. Um chamador com metadados falsificados ou ausentes é a origem, um método do serviço executado sem verificação de autorização é o destino, e um interceptor que não cobre o método ou o fluxo é a vulnerabilidade.

Visão geral

Publicado porUnboundCompute
Repositóriosecurity-agent-skills
Nome da habilidadeauditing-grpc-service-authorization
Estrelas
27
Forks
8
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por UnboundCompute no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Auditing Grpc Service Authorization no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-grpc-service-authorization
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Auditing Grpc Service Authorization em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Auditing Grpc Service Authorization automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Auditing Grpc Service Authorization não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Perguntas frequentes

O que a habilidade de IA Auditing Grpc Service Authorization faz?

Audite um serviço gRPC para identificar métodos que um chamador pode acessar sem a autorização que o serviço espera que um interceptor imponha, depois de verificar a cobertura dos interceptors e resolver as credenciais do canal. Abrange autorização configurada no interceptor unary, mas ausente na cadeia de streaming; falhas de autorização por método acessíveis com privilégios inadequados; reflexão do servidor habilitada em produção, expondo a API completa; canal sem criptografia com metadados considerados confiáveis sem verificação; ausência de limites de tamanho de mensagem ou profundidade...

Por que usar Auditing Grpc Service Authorization no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Auditing Grpc Service Authorization é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Auditing Grpc Service Authorization no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-grpc-service-authorization. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Auditing Grpc Service Authorization?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Auditing Grpc Service Authorization?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Auditing Grpc Service Authorization com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Auditing Grpc Service Authorization é gratuita?

Sim. A habilidade é publicada no GitHub por UnboundCompute sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇