Summary
Some Tetragon deployments can expose a privileged gRPC API over an unauthenticated TCP listener on localhost. An attacker able to run or compromise a same-node pod using host networking may reach the listener and invoke privileged methods, potentially enabling privilege escalation or container escape.
Affected context
The risk applies to Tetragon deployments whose Helm configuration exposes the privileged gRPC API through an unauthenticated TCP listener on localhost:54321. Reachability depends on the deployment's network configuration; same-node pods using host networking may be able to access the listener. Deployments that do not expose an unauthenticated TCP listener are not affected.
Exploit preconditions
- Attack surface: The privileged Tetragon gRPC API exposed through a TCP listener on localhost.
- Required access: Ability to run or compromise a pod on the same node with host networking.
- Trigger point: An unauthenticated request to a privileged gRPC method.
- Why exploitation is possible: The listener accepts requests without verifying the caller's identity or authorization.
Why this happens
The underlying issue is a privileged API endpoint that accepts requests without authentication, mapping to CWE-306: Missing Authentication for Critical Function. When the API is exposed over a reachable TCP listener without an identity check, callers who can reach the endpoint may invoke sensitive operations.
Potential impact
- An attacker may add, delete, or reconfigure tracing policies.
- An attacker could change Tetragon debug settings.
- Unauthorized policy changes may weaken runtime monitoring or enforcement.
- Successful misuse could contribute to privilege escalation or container escape.
General mitigation guidance
Mitigation patterns focus on preventing unauthenticated access to privileged control interfaces:
- Prefer secure-by-default local communication, such as a Unix-domain socket with appropriately restricted permissions.
- Require authentication and authorization for privileged API methods.
- Avoid exposing control APIs on TCP listeners unless access is explicitly secured.
- Restrict network reachability and host-network pod usage to trusted workloads.
- Apply least privilege to workloads and services that can access the API.
- Review deployment configuration to ensure the listener is not enabled unintentionally.
How teams detect issues like this
- Review Helm values and rendered deployment configuration for unauthenticated TCP listeners on localhost:54321.
- Use static analysis or configuration policy checks to flag privileged APIs exposed without authentication.
- Check code and configuration for privileged gRPC methods that lack caller identity or authorization checks.
- Monitor API access and changes to tracing policies or debug settings, and investigate unexpected callers or modifications.
- Automated configuration review tools can help identify exposed control interfaces during deployment checks.

