Container is running with multiple open ports Affecting Container service in Kubernetes


Severity

0.0
medium
0
10
    Severity Framework
    Snyk CCSS
    Rule category
    Containers / Ports

Is your enviroment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
    Frameworks
    CIS-Controls
  • Snyk ID SNYK-CC-00622
  • credit Snyk Research Team

Description

Containers with more than 2 listening ports will increase the attack surface of the application and the container.

How to fix?

Reduce ports count to 2.

Terraform