Skip to main content

Containers should not use the host network namespace

SeverityExploitabilityProvidersCategories
HIGHHIGHKubernetesPERMISSION

Description

Network namespaces allow containers to operate in smaller, isolated networks. Containers placed in the host network namespace lose all the security benefits of isolation.

Impact

Potential data exposureVisible in logsUser interaction requiredPrivileges required
TrueFalseFalseFalse

In case of a compromised container, attackers will have access to information about the host's network, leading to a potential privilege escalation.

Remediation guidelines

Disallow access to the host namespace. This can be done by changing 'containers[].securityContext.spec.hostNetwork' to 'false'.

References

How can I help you ?