Platform / product
kubernetes Sigma detection rules
16 community-maintained Sigma detection rules in the library target the kubernetes platform, covering log sources such as application. Browse by severity, inspect the detection logic and MITRE ATT&CK mapping, and open the original Sigma YAML before using a rule in your detection engineering workflow.
Log sources
Creation Of Pod In System Namespace
mediumDetects deployments of pods within the kube-system namespace, which could be intended to imitate system pods. System pods, created by controllers such as Deployments or DaemonSets have random suffixes in their names. Attackers can use this fact and name their backdoor pods as if they were created by these controllers to avoid detection. Deployment of such a backdoor container e.g. named kube-proxy-bv61v, could be attempted in the kube-system namespace alongside the other administrative containers.
kubernetes · audit
Kubernetes Admission Controller Modification
mediumDetects when a modification (create, update or replace) action is taken that affects mutating or validating webhook configurations, as they can be used by an adversary to achieve persistence or exfiltrate access credentials.
kubernetes · audit
Kubernetes CronJob/Job Modification
mediumDetects when a Kubernetes CronJob or Job is created or modified. A Kubernetes Job creates one or more pods to accomplish a specific task, and a CronJob creates Jobs on a recurring schedule. An adversary can take advantage of this Kubernetes object to schedule Jobs to run containers that execute malicious code within a cluster, allowing them to achieve persistence.
kubernetes · audit
Kubernetes Events Deleted
mediumDetects when events are deleted in Kubernetes. An adversary may delete Kubernetes events in an attempt to evade detection.
kubernetes · audit
Kubernetes Potential Enumeration Activity
mediumDetects potential Kubernetes enumeration or attack activity via the audit log. This includes the execution of common shells, utilities, or specialized tools like 'Rakkess' (access_matrix) and 'TruffleHog' via Kubernetes API requests. Attackers use these methods to perform reconnaissance (enumeration), secret harvesting, or execute code (exec) within a cluster.
kubernetes · audit
Kubernetes Rolebinding Modification
mediumDetects when a Kubernetes Rolebinding is created or modified.
kubernetes · audit
Kubernetes Secrets Modified or Deleted
mediumDetects when Kubernetes Secrets are Modified or Deleted.
kubernetes · audit
Potential Remote Command Execution In Pod Container
mediumDetects attempts to execute remote commands, within a Pod's container using e.g. the "kubectl exec" command.
kubernetes · audit
Potential Sidecar Injection Into Running Deployment
mediumDetects attempts to inject a sidecar container into a running deployment. A sidecar container is an additional container within a pod, that resides alongside the main container. One way to add containers to running resources like Deployments/DeamonSets/StatefulSets, is via a "kubectl patch" operation. By injecting a new container within a legitimate pod, an attacker can run their code and hide their activity, instead of running their own separated pod in the cluster.
kubernetes · audit
Container With A hostPath Mount Created
lowDetects creation of a container with a hostPath mount. A hostPath volume mounts a directory or a file from the node to the container. Attackers who have permissions to create a new pod in the cluster may create one with a writable hostPath volume and chroot to escape to the underlying node.
kubernetes · audit
Deployment Deleted From Kubernetes Cluster
lowDetects the removal of a deployment from a Kubernetes cluster. This could indicate disruptive activity aiming to impact business operations.
kubernetes · audit
Kubernetes Secrets Enumeration
lowDetects enumeration of Kubernetes secrets.
kubernetes · audit
Kubernetes Unauthorized or Unauthenticated Access
lowDetects when a request to the Kubernetes API is rejected due to lack of authorization or due to an expired authentication token being used. This may indicate an attacker attempting to leverage credentials they have obtained.
kubernetes · audit
New Kubernetes Service Account Created
lowDetects creation of new Kubernetes service account, which could indicate an attacker's attempt to persist within a cluster.
kubernetes · audit
Privileged Container Deployed
lowDetects the creation of a "privileged" container, an action which could be indicative of a threat actor mounting a container breakout attacks. A privileged container is a container that can access the host with all of the root capabilities of the host machine. This allows it to view, interact and modify processes, network operations, IPC calls, the file system, mount points, SELinux configurations etc. as the root user on the host. Various versions of "privileged" containers can be specified, e.g. by setting the securityContext.privileged flag in the resource specification, setting non-standard Linux capabilities, or configuring the hostNetwork/hostPID fields
kubernetes · audit
RBAC Permission Enumeration Attempt
lowDetects identities attempting to enumerate their Kubernetes RBAC permissions. In the early stages of a breach, attackers will aim to list the permissions they have within the compromised environment. In a Kubernetes cluster, this can be achieved by interacting with the API server, and querying the SelfSubjectAccessReview API via e.g. a "kubectl auth can-i --list" command. This will enumerate the Role-Based Access Controls (RBAC) rules defining the compromised user's authorization.
kubernetes · audit