Back to skills
SKILL.md
Api Grpc Protobuf
ASecuritygRPC / protobuf security testing — server-reflection enumeration with grpcurl, .proto/descriptor extraction, per-method authorization (BOLA/BFLA), injection via message fields, and TLS downgrade. Tier 1. Use whenever a target exposes gRPC (HTTP/2 + protobuf) or grpc-web.
- 16 stars
- 0 votes
- 0 copies
- 3 views
- Added November 17, 2026
Works with
Security analysis
100/100npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill api-grpc-protobuf --agent claude-codeAre you the author of Api Grpc Protobuf?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-api-grpc-protobuf)---
name: api-grpc-protobuf
description: gRPC / protobuf security testing — server-reflection enumeration with grpcurl, .proto/descriptor extraction, per-method authorization (BOLA/BFLA), injection via message fields, and TLS downgrade. Tier 1. Use whenever a target exposes gRPC (HTTP/2 + protobuf) or grpc-web.
---
# gRPC / protobuf Security
gRPC rides HTTP/2 + length-prefixed protobuf. Enumerate services, tamper fields, and test authz per method. Payload libs per injection class.
## Trigger phrases
`grpc, protobuf, grpcurl, reflection, proto, grpc-web, grpc auth, tls downgrade, protoc decode`
## Method
1. **Reflection enumeration** (if server reflection enabled):
```bash
grpcurl -plaintext target:50051 list # services
grpcurl -plaintext target:50051 list package.Service # methods
grpcurl -plaintext target:50051 describe package.Service.Method
grpcurl -plaintext -d '{"id":1}' target:50051 package.Service/GetUser
```
TLS target: drop `-plaintext`. Reflection off: add `-import-path`/`-proto` with a recovered `.proto`.
2. **No reflection** — extract `.proto` or message descriptors from the mobile/web client (jadx on APK, JS bundles) or `protoc --decode_raw` on captured payloads to recover field structure.
3. **Intercept / decode / tamper** — Burp with gRPC/protobuf support, or `protoc`/grpc-web decoders / mitmproxy. **grpc-web** (base64 over HTTP/1.1) is far easier to proxy and tamper.
4. **Authz per method (BOLA/BFLA)** — call privileged methods and swap IDs in messages with a low-priv identity:
```bash
grpcurl -H 'authorization: Bearer LOWPRIV' -d '{"id":<other>}' target:443 pkg.Admin/DeleteUser
```
5. **Injection via string fields** — SQLi/NoSQLi/command injection in message string fields (`${CLAUDE_PLUGIN_ROOT}/payloads/sqli.md`, `nosql.md`, `command-exec.md`); mass-assignment of protobuf fields the server shouldn't accept.
## Bypass / evasion
grpc-web base64 bypasses binary-unaware WAFs; try plaintext channel to skip TLS inspection; error-code differences map valid methods. See `${CLAUDE_PLUGIN_ROOT}/payloads/waf-bypass.md`.
## Modern / rare techniques
- **[RARE] TLS downgrade** — `-plaintext` succeeds → no transport security; flag as a finding.
- **[RARE] Error-code oracle** — `UNAUTHENTICATED` vs `PERMISSION_DENIED` vs `NOT_FOUND` reveals valid methods/objects for enumeration.
- **[RARE] Descriptor extraction from client** — recover `.proto` from APK/JS to reach methods when reflection is disabled.
- **DoS** — large/deeply-nested messages (gate under `api-resource-consumption`).
## Escalation / chaining
Privileged method for a low-priv identity → `api-bfla`; ID swap → `api-bola`; field injection → `api-injection` (RCE/SQLi); plaintext → MITM/credential capture. Recover protos via `api-recon` (APK extraction).
## Backend & tooling
Preferred Kali path (WSL+Kali / Kali-MCP / HexStrike): grpcurl, protoc, grpc-web tools, mitmproxy; Burp for grpc-web. See `zazy-orchestrator`.
## Verification (background, before reporting)
Confirm a privileged method returns data / acts for a low-priv identity (second identity), reproduced; confirm plaintext channel accepted independently; confirm injection with a second payload/OAST. True positives only.
## Evidence
The grpcurl call + response proving unauthorized access / injection / plaintext acceptance, method and identity shown. Impact + remediation (disable reflection in prod, enforce TLS+mTLS, per-method authz, input validation, message-size limits).
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.