Why it matters
Every pod that names no service account runs as `default`, and receives its token unless the account sets `automountServiceAccountToken: false`.
How to fix it
Set `automountServiceAccountToken: false` on each namespace's default service account.
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.1.5: Default service accounts are not actively used. Also checked for this control: A role is bound to a default service account, Workload runs as the default service account - NSA/CISA Kubernetes Hardening Guidance 1.2, control
pod.service-account-tokens: Pod service account tokens are protected. Also checked for this control: Service account mounts its token by default, Workload runs as the default service account, Workload has an API token mounted
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
- Service account mounts its token by default
KubernetesSeverity: Low
k8s.serviceaccount.token-automounted
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