For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Admission of containers with NET_RAW capability is not minimized misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_K8S_28

Category - Subcategory

Kubernetes - Access Control

Provider

OTHER

Severity

LOW

Framework

Helm, Kubernetes, Kustomize, Terraform, Terraform Plan

Impact

NET_RAW capability allows the binary to use RAW and PACKET sockets as well as binding to any address for transparent proxying. The ep stands for "effective" (active) and "permitted" (allowed to be used). With Docker as the container runtime NET_RAW capability is enabled by default and may be misused by malicious containers. We recommend you define at least one PodSecurityPolicy (PSP) to prevent containers with NET_RAW capability from launching.

How to Fix

Resource: Container

  • Arguments: securityContext:capabilities:drop (Optional) Capabilites field allows granting certain privileges to a process without granting all the privileges of the root user. when drop includes ALL or NET_RAW, the NET_RAW capability is disabled. [source,go]


apiVersion: v1 kind: Pod metadata: name: spec: containers:

  • name: image: securityContext: capabilities: drop:

    • NET_RAW

    • ALL


Last updated

Was this helpful?