Hub rules-grpc

rules-grpc

v3 public Verified

gRPC

gRPC is a modern open-source high-performance Remote Procedure Call (RPC) framework that can run in any environment. These rules govern service definition, protocol buffer usage, and client-server interaction for AI agents.

@sigmashakeinc 2 pulls 7 rules published Apr 8, 2026 synced Nov 22, 2026 sigmashakeinc/rules/rulesets/rules-grpc →
Severity
2 error 5 warn 0 info
demo.cast
gRPC is a modern open-source high-performance Remote Procedure Call (RPC) framework that can run in any environment. These rules govern service definition, protocol buffer usage, and client-server interaction for AI agents.

Rules index

7 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

grpc

grpc-block-unsafe-patterns warning ask

Potentially unsafe pattern detected in grpc code: "grpc.credentials.createInsecure()". Review the use case — this may indicate a security risk, a deprecated API, or a misconfiguration. Confirm the write is intentional.

Rule source requires an active Pro or Enterprise subscription.
grpc-force-updated-api warning log

You are using an outdated API for grpc. Please upgrade to the newer API.

Rule source requires an active Pro or Enterprise subscription.
grpc-no-insecure-channel-go error block

Insecure gRPC channel (no TLS) sends all traffic in plaintext — credentials, tokens, and data are exposed to network interception. Use grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{})) for production connections.

Rule source requires an active Pro or Enterprise subscription.
grpc-no-insecure-channel-py error block

grpc.insecure_channel() transmits all RPCs in plaintext — tokens, session data, and payloads are visible to any network observer. Use grpc.secure_channel() with ssl_channel_credentials() for production.

Rule source requires an active Pro or Enterprise subscription.
grpc-no-max-recv-size-unset warning log

gRPC server without MaxRecvMsgSize uses the 4 MB default, but clients can send larger messages causing memory pressure and DoS (CWE-400). Set grpc.MaxRecvMsgSize() to an appropriate limit for your service.

Rule source requires an active Pro or Enterprise subscription.
grpc-no-missing-deadline warning log

gRPC calls without a deadline or timeout can block indefinitely, exhausting goroutine pools under slow or adversarial server conditions (CWE-400). Pass a context with deadline: ctx, cancel := context.WithTimeout(ctx, 5*time.Second).

Rule source requires an active Pro or Enterprise subscription.
grpc-no-reflection-service-prod warning log

gRPC reflection service enumerates all service methods to unauthenticated clients, giving attackers a full API map. Gate it behind an environment check: only enable reflection in non-production environments.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Nov 22, 2026
Hash
f7be9649828dc702c399a5f73b95c3225653f07d96ac2b9706ae2f4430b79a4d
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-grpc/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-grpc. The published version only bumps when a maintainer resyncs.

No commit history available.