gRPC & Internal Microservices Penetration Testing Checklist
How to penetration test gRPC services and microservice architectures: protobuf reflection, missing mTLS, JWT propagation, and service-to-service BOLA.
API Security · By Thimmagurudu Bathini, CTO · Published · 6 min read
Where Internal Service Meshes Lose Authorization
Modern SaaS backends increasingly expose gRPC and internal microservice meshes behind an API gateway. While external attackers hit the gateway, compromised edge services or misconfigured ingress rules can expose raw protobuf endpoints lacking per-method authorization.
# Enumerate exposed gRPC services if reflection is left on in prod
grpcurl -plaintext api-internal.example:50051 list
# Production services should disable reflection or require mTLS client certsgRPC Reflection, mTLS & Header Trust Risks
| Layer | Common Gap | Test Check |
|---|---|---|
| gRPC Reflection | Server reflection enabled in production exposes full .proto schema | Query ServerReflectionInfo to enumerate services and message types |
| Service-to-Service Auth | Internal services trust x-user-id headers without verifying JWT/mTLS | Forge internal identity headers or bypass API gateway |
| Protobuf Inputs | Missing bounds checks or unexpected enum/oneof values | Fuzz protobuf fields for business logic and injection flaws |
| Metadata & TLS | Plaintext internal gRPC or weak deadline/size limits | Verify mTLS enforcement and max message size caps |
Testing Protobuf Endpoints With Gray-Box Specs
- Disable gRPC server reflection in production or restrict it strictly to internal diagnostic networks.
- Supply .proto definitions during gray-box API testing so engineers inspect every RPC method and field.
- Verify that downstream microservices validate signed JWTs or mTLS client certificates rather than trusting raw gateway headers.
- Test streaming RPCs for resource exhaustion and missing per-stream authorization.
Enforcing Zero-Trust Auth Between Services
Provide .proto schemas and gateway architecture diagrams at kickoff so testers can audit both the public API gateway and internal RPC trust boundaries.
Scope your gRPC and microservice APIs for manual testing from ₹36,000 + 18% GST. Request a scoped proposal →
gRPC & Microservices Pentest Questions
Can BERRY9 test gRPC APIs if we share .proto files?
Yes—gray-box API testing with .proto or OpenAPI specs gives far deeper coverage than blind probing.
What does API security testing start at?
Standalone API and microservice penetration testing starts from ₹36,000 + 18% GST (₹42,480 total).