Red Hat OpenShift
TMA-OPENSHIFT-5.2.7
Minimize the admission of containers with the NET_RAW capability
MediumLevel 1Manual reviewopenshift
Description
Do not generally permit containers with the potentially dangerous NET_RAW capability. The benchmark marks this recommendation Manual.
How it is checked
Audit method: Manual review
This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.
Use the following command to list all SCCs that drop all capabilities: oc get scc -A -o json | jq '.items[] | select(.requiredDropCapabilities[]?|any(. == "ALL"; .)) | .metadata.name' Verify at least one SCC is returned.
How it is fixed
Fix method: Guidance or infrastructure patch
Create an SCC that sets requiredDropCapabilities to include ALL or at least NET_RAW and take it into use by assigning it to applicable users and groups.
Properties
- Operating systems
- Any
- Tags
- openshiftpoliciespod-security
- Reference
- CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 5.2.7 Minimize the admission of containers with the NET_RAW capability