Skip to main content

SYS_ADMIN capability should not be added to the container

SeverityExploitabilityProvidersCategories
HIGHMEDIUMKubernetesPERMISSION

Description

SYS_ADMIN is the most privileged capability for a container. It is equivalent to root and should always be avoided.

Impact

Potential data exposureVisible in logsUser interaction requiredPrivileges required
TrueFalseFalseFalse

SYS_ADMIN capability enables to perform a range of system administration operations, and thus exposes the machine on which the container runs to various attacks.

Remediation guidelines

Remove SYS_ADMIN from the container capabilities. This can be done by changing 'containers[].securityContext.capabilities.add'.

References

How can I help you ?