Why it matters
An AppArmor profile of `unconfined` removes the mandatory access control the runtime would otherwise apply.
How to fix it
Remove the override, or set `appArmorProfile.type: RuntimeDefault`.
What TrustIvan reads
Read through the Kubernetes API with the read-only role TrustIvan's install creates.
Benchmark controls
- CIS Kubernetes Benchmark 1.9.0, control
5.7.3: A security context is applied to pods and containers. Also checked for this control: Container sets a custom SELinux user, role or type, Container mounts /proc unmasked, Container root filesystem is writable, Workload sets an unsafe sysctl - NSA/CISA Kubernetes Hardening Guidance 1.2, control
pod.hardened-runtime: Container environments are hardened (seccomp, AppArmor, SELinux). Also checked for this control: Container explicitly disables seccomp, Container sets a custom SELinux user, role or type, Workload sets an unsafe sysctl
Control numbers are the published ones; the titles are TrustIvan's own short descriptions. The benchmarks belong to their publishers, who do not endorse TrustIvan.
Related checks
- Container adds a Linux capability
KubernetesSeverity: Low
k8s.container.added-capability - Container keeps the default capabilities
KubernetesSeverity: Low
k8s.container.capabilities-not-dropped - Container has a credential written into its manifest
KubernetesSeverity: High
k8s.container.credential-in-env - Container adds a dangerous capability
KubernetesSeverity: High
k8s.container.dangerous-capability - Container binds a host port
KubernetesSeverity: Medium
k8s.container.host-port - Container runs `latest` or an untagged image
KubernetesSeverity: Medium
k8s.container.image-latest
Terms: KSPM (Kubernetes security posture management), Kubernetes RBAC, NSA/CISA Kubernetes Hardening Guidance, CIS Benchmarks
All Kubernetes posture checks · The whole catalogue · How this works in TrustIvan · Documentation