Skip to main content

Pod ports should not be exposed through host ports

SeverityExploitabilityProvidersCategories
HIGHLOWKubernetesPERMISSION

Description

HostPort in container configuration allows access to container port through the host. Exposing ports through it should be avoided.

Impact

Potential data exposureVisible in logsUser interaction requiredPrivileges required
TrueFalseFalseFalse

Internal services might be publicly exposed through host, and thus exposed to various attack.

Remediation guidelines

Remove hostPort from containers configuration or limit exposed ports with a known list of ports.

References

How can I help you ?