CLAUDE CODE MARKETPLACES

cis-k8s-v1120-5.6.2

Ensure that the seccomp profile is set to docker/default in your pod definitions (Manual)

npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-k8s-v1120-5.6.2
SKILL.md

5.6.2 Ensure that the seccomp profile is set to docker/default in your pod definitions (Manual)

Profile Applicability

  • Level 2 - Master Node

Description

Enable docker/default seccomp profile in your pod definitions.

Rationale

Seccomp (secure computing mode) is used to restrict the set of system calls applications can make, allowing cluster administrators greater control over the security of workloads running in the cluster. Kubernetes disables seccomp profiles by default for historical reasons. You should enable it to ensure that the workloads have restricted actions available within the container.

Impact

If the docker/default seccomp profile is too restrictive for you, you would have to create/manage your own seccomp profiles.

Audit Procedure

Review the pod definitions in your cluster. It should create a line as below:

securityContext:
  seccompProfile:
    type: RuntimeDefault

Remediation

Use security context to enable the docker/default seccomp profile in your pod definitions. An example is as below:

securityContext:
  seccompProfile:
    type: RuntimeDefault

Default Value

By default, seccomp profile is set to unconfined which means that no seccomp profiles are enabled.

References

  1. https://kubernetes.io/docs/tutorials/clusters/seccomp/
  2. https://docs.docker.com/engine/security/seccomp/

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v816.7 Use Standard Hardening Configuration Templates for Application InfrastructureXX
v75.2 Maintain Secure ImagesXX