Restrict Automounting of Service Account Tokens
An XCCDF Rule
Description
Service accounts tokens should not be mounted in pods except where the workload
running in the pod explicitly needs to communicate with the API server.
To ensure pods do not automatically mount tokens, set
automountServiceAccountToken
to false
.
Rationale
Mounting service account tokens inside pods can provide an avenue for privilege escalation attacks where an attacker is able to compromise a single pod in the cluster.
- ID
- xccdf_org.ssgproject.content_rule_accounts_restrict_service_account_tokens
- Severity
- Medium
- References
- Updated