AWS EKS Creation of a RoleBinding Referencing a ServiceAccount

Last updated 2 days ago on 2026-10-21
Created 3 months ago on 2026-08-03

About

This rule detects the creation of RoleBindings or ClusterRoleBindings that reference a ServiceAccount, which may indicate privilege delegation or potential RBAC misconfiguration leading to elevated access.
Tags
Domain: CloudDomain: ContainersPlatform: AWSPlatform: KubernetesData Source: AWSData Source: Amazon Web ServicesData Source: Kubernetes API Server Audit LogsService: AWS EKSUse Case: Threat DetectionTactic: PersistenceTactic: Privilege EscalationRule Type: Custom Query (KQL)Profile: BetaLanguage: kuery
Severity
medium
Risk Score
47
MITRE ATT&CK™

Persistence (TA0003)(external, opens in a new tab or window)

Privilege Escalation (TA0004)(external, opens in a new tab or window)

License
Elastic License v2(external, opens in a new tab or window)

Definition

Rule Type
Query (Kibana Query Language)
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
logs-aws.eks_audit-*
Related Integrations

aws(external, opens in a new tab or window)

Query
text code block:
data_stream.dataset: "aws.eks_audit" and aws.eks.audit.requestObject.subjects.kind:"ServiceAccount" and aws.eks.audit.verb:"create" and aws.eks.audit.objectRef.resource:("rolebindings" or "clusterrolebindings") and aws.eks.audit.annotations.authorization_k8s_io/decision:"allow"

Install detection rules in Elastic Security

Detect AWS EKS Creation of a RoleBinding Referencing a ServiceAccount in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).