Why it matters
Creating on serviceaccounts/token issues a token for any service account in scope, and so acts with its permissions.
How to fix it
Remove create on serviceaccounts/token.
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.13: Access to create service account tokens is minimised
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
- Role can read Secrets
KubernetesSeverity: Medium
k8s.rbac.secrets-read - Role can change admission webhooks
KubernetesSeverity: Medium
k8s.rbac.webhook-config - Role can create PersistentVolumes
KubernetesSeverity: Low
k8s.rbac.pv-create - Role uses a wildcard
KubernetesSeverity: Medium
k8s.rbac.wildcard - Role can exec into or attach to pods
KubernetesSeverity: Medium
k8s.rbac.pod-exec - Role can create pods
KubernetesSeverity: Medium
k8s.rbac.pod-create
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