Skip to main content

Long-Lived Credentials are Exposed to Workloads

CCC.K8S.TH03

Long-lived cloud credentials stored in workload configuration, container images, environment variables, or mounted files may be read by a compromised workload or unauthorized user. The credentials can then be used independently of the workload lifecycle. Protected data may be disclosed and resources accessible through those credentials may be modified outside the cluster's authorization controls.

Related Capabilities

IDTitleDescription
CCC.K8S.CP11Workload Identity FederationThe service may be configured to exchange Kubernetes service-account identity for short-lived cloud credentials without placing long-lived credentials in workloads.
CCC.K8S.CP12Secrets Service IntegrationThe service can present secrets, keys, and certificates from a cloud secrets service to authorized Kubernetes workloads without embedding them in workload definitions.

Related Controls

IDTitleDescription
CCC.K8S.CN03Use Federated Identities for WorkloadsReplace stored cloud credentials with narrowly scoped, short-lived federated identity for workload access to cloud services.
CCC.K8S.CN07Protect Workload SecretsProtect workload secrets through encrypted handling, narrow authorization, and removal from images and non-secret configuration objects.

External Mappings

FrameworkIDRelationshipRemarks
CWECWE-522relates-toInsufficiently Protected Credentials
MITRE-ATT&CKT1552.001relates-toUnsecured Credentials - Credentials In Files