Default ServiceAccount tokens not auto-mounted
Description
Default ServiceAccount tokens in every namespace must not be auto-mounted. The watcher reads the ServiceAccount object metadata for AutomountServiceAccountToken and flags any default SA where it is unset (K8s default true) or explicitly true.
⚠️ Risk Impact
Auto-mounted default SA tokens give every Pod (even a misconfigured one with no specific SA) direct API server access. Compromise the Pod, get a cluster credential.
🔍 How EchelonGraph Detects This
EchelonGraph's Tier 1 Cloud Scanner automatically checks for this condition across all connected cloud accounts. Violations are flagged as high-severity findings with remediation guidance.
🔧 Remediation
kubectl patch serviceaccount default -n <ns> -p '{"automountServiceAccountToken": false}'
🔗 Cross-Framework References
Automate CIS Kubernetes 5.1.5 compliance
EchelonGraph continuously monitors this control across all your cloud accounts.
Start Free →