Kubernetes Security Rules and Detections
developThe Alpha Index includes comprehensive detection rules for Kubernetes clusters (EKS, AKS, GKE) focusing on cluster-wide security and pod-level isolation.
Key Detection Categories:
- Pod Security & Isolation: Detects pods using
hostNetwork,hostPID,hostIPC, orhostPathmounts. It also alerts on pods with dangerous Linux capabilities (e.g.,SYS_ADMIN,NET_ADMIN) and privileged pods. - RBAC & Identity: Monitors for the creation of Roles/ClusterRoles with wildcard (
*) permissions, write permissions to sensitive resources, or permissions forpods/execandnodes/proxy. It also detectsClusterRoleBindingto privileged roles likecluster-admin. - Secret Protection: Detects mass secret dumping across namespaces, repeated failed attempts to read secrets (potential brute-force), and single users accessing a high volume of distinct secrets (enumeration).
- API & Access: Detects anonymous API access, API requests from Tor exit nodes, and Kubernetes system principals being accessed from non-cloud public IP addresses.
- Persistence & Lateral Movement: Monitors for the creation/modification of
CronJobs,DaemonSets, andAdmissionControllerwebhooks, as well askubectl cpoperations used for data exfiltration.