Wiz Analyzes Security Risks and Defenses for New Amazon EKS Identity Features

Summary
Wiz examines security implications of Amazon EKS access management and pod identity, recommending permission audits, token protections, safer service-account practices, and expanded detection using both Kubernetes and AWS CloudTrail data.
Key points
- EKS access management adds access entries and policies; in API_AND_CONFIG_MAP mode, effective permissions combine grants from both mechanisms.
- Auditors need EKS API access as well as Kubernetes API access to calculate principals’ effective permissions, including multiple policies attached to an entry.
- A stolen pod identity token may let an attacker request credentials from the node’s pod identity agent; the article recommends reviewing RBAC, restricting hostPath access to /var/lib/kubelet, and separating workloads by risk.
- Monitor access-entry creation and policy associations through AWS CloudTrail; Kubernetes admission controls and audit logs alone do not cover these events.
- The article recommends monitoring for suspicious pod identity token access, role assumption, and connections to the pod identity agent.
- Avoid assigning EKS pod identities to default service accounts, or disable automatic service-account token mounting where appropriate.
Article Details
- Defense Focus
- Detect unauthorized or high-privilege EKS access changes and pod-identity abuse, and audit effective permissions across EKS API and Kubernetes authorization paths.
- Detection Methods
- Monitor creation of EKS access entries and association of access policies, including grants of cluster-admin or admin access across one or multiple clusters.
- Use AWS CloudTrail log-based detections for EKS access-management events; Kubernetes Admission Controller and kube-audit logs alone do not cover these events.
- Detect processes using the AWS EKS CLI to discover, create, or modify pod identities, and processes using EKS pod identity to assume roles.
- Alert on unrecognized access to the EKS pod-identity token and unrecognized connections to the pod-identity agent credentials endpoint.
- Review policy semantics and calculate effective permissions as the union of aws-config mappings, EKS access policies, and bound Kubernetes RBAC roles.
- Data Sources
- AWS CloudTrail logs
- Kubernetes kube-audit logs
- Admission Controller events and rules
- Process telemetry from Wiz sensor detections
- Filesystem access to the EKS pod-identity token
- Network connections to the pod-identity agent credentials endpoint
- EKS API access-management events
- Rule Types
- Cloud log-based detections
- Process behavior detections
- Token-access detections
- Network connection detections
- Kubernetes admission rules
- Platforms
- Amazon EKS
- Kubernetes
- Defensive Actions
- Audit permissions using the cluster authentication mode and include both EKS API access and aws-config mappings; account for multiple associated access policies and Kubernetes RBAC bindings.
- Periodically review access-policy combinations for redundant or unintended permissions.
- Treat permissions to manage EKS access entries and policies as high privilege.
- Review RBAC permissions and separate workloads with different risk profiles into distinct namespaces or nodes.
- Use Admission Controller rules to disallow access to /var/lib/kubelet where appropriate.
- Avoid EKS pod identities on default service accounts, or disable automatic service-account-token mounting with automountServiceAccountToken: false.
- Extend detection coverage to include both EKS and Kubernetes APIs.
MITRE ATT&CK
T1078.004 · Cloud AccountsThe article describes using a stolen pod-identity token to obtain STS identity credentials and using EKS pod identity to assume a role.T1552.001 · Credentials In FilesThe article describes an attacker reading the eks-pod-identity-token from the filesystem, including through access to /var/lib/kubelet/pods, and using it to obtain credentials.
Vendors
AmazonOn November 26 Amazon introduced EKS Pod Identity feature — a new way for cluster workloads to interact with cloud resources. About three weeks later Amazon presented yet another related feature — EKS access management.Datadogdetection solution should incorporate cloud AWS CloudTrail log for the full coverage (see, for example, Datadog examples of cloud log-based detections). Wiz has introduced several new detections in this area: WizCloudTrail log for the full coverage (see, for example, Datadog examples of cloud log-based detections). Wiz has introduced several new detections in this area:
Products
AWS CloudTrailwith Admission Controller is not possible, and a proper detection solution should incorporate cloud AWS CloudTrail log for the full coverage (see, for example, Datadog examples of cloud log-based detections). Wiz hasEKSOn November 26 Amazon introduced EKS Pod Identity feature — a new way for cluster workloads to interact with cloud resources. About three weeks later Amazon presented yet another related feature — EKS access management.KubernetesAccess policies. Access policies essentially duplicate a big part of Kubernetes RBAC. A principal with access entry but without any associated access policy is equivalent to anonymous user in level of access. There is a