Check: SRG-APP-000342-CTR-000775
Container Platform SRG:
SRG-APP-000342-CTR-000775
(in versions v1 r5 through v1 r1)
Title
Container images instantiated by the container platform must execute using least privileges. (Cat II impact)
Discussion
Containers running within the container platform must execute as non-privileged. When a container can execute as a privileged container, the privileged container is also a privileged user within the hosting system, and the hosting system becomes a major security risk. It is important for the container platform runtime to validate the container user and disallow instantiation if the container is trying to execute with more privileges than required, as a privileged user, or is trying to perform a privilege escalation. When privileged access is necessary for a container, a new policy for execution should be written for the container. The default behavior must not give containers privileged execution. Examples of privileged users are root, admin, and default service accounts for the container platform.
Check Content
Review documentation and configuration to determine if the container platform disallows instantiation of containers trying to execute with more privileges than required or with privileged permissions. If the container platform does not block containers requesting privileged permissions, privilege escalation, or allows containers to have more privileges than required, this is a finding.
Fix Text
Configure the container platform to block instantiation with no more privileges than necessary.
Additional Identifiers
Rule ID: SV-233163r879719_rule
Vulnerability ID: V-233163
Group Title: SRG-APP-000342
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-002233 |
The information system prevents organization-defined software from executing at higher privilege levels than users executing the software. |
Controls
Number | Title |
---|---|
AC-6 (8) |
Privilege Levels For Code Execution |