Container does not drop all default capabilities Affecting Deployment service in Kubernetes


0.0
medium
    Severity Framework Snyk CCSS
    Rule category Containers / Best Practices

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 CSA-CCM
  • Snyk ID SNYK-CC-00610
  • credit Snyk Research Team

Description

Containers are running with potentially unnecessary privileges violating the principle of least privilege.

How to fix?

Add ALL to securityContext.capabilities.drop list, and add only required capabilities in securityContext.capabilities.add.

Terraform

References