Cis K8S V200 5.1.13

Minimize access to the service account token creation (Manual)

cyberstrikeus Updated

File contents

5.1.13 Minimize access to the service account token creation (Manual)

Profile Applicability

  • Level 1 - Master Node

Description

Users with rights to create new service account tokens at a cluster level, can create long-lived privileged credentials in the cluster. This could allow for privilege escalation and persistent access to the cluster, even if the users account has been revoked.

Rationale

The ability to create service account tokens should be limited.

Audit

Review the users who have access to create the token sub-resource of serviceaccount objects in the Kubernetes API.

Remediation

Where possible, remove access to the token sub-resource of serviceaccount objects.

References

  1. https://kubernetes.io/docs/concepts/security/rbac-good-practices/#token-request

cyberstrikeus/cyberstrike/tree/main/.cyberstrike/skill/CIS_benchmarks/Server_Software/Kubernetes/CIS_Kubernetes_Benchmark_v2.0.0/cis-k8s-v200-5.1.13 commit e4506e622f

Frequently asked questions

npx skillmds@latest add cyberstrikeus/cis-k8s-v200-5-1-13