sudo cscli collections install crowdsecurity/k8s-auditInstalls 1 parser and 7 scenarios.
View Kubernetes - Audit Detection →sudo cscli scenarios install crowdsecurity/k8s-audit-privileged-pod-creationThen reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
type: triggername: crowdsecurity/k8s-audit-privileged-pod-creationdescription: "Detect privileged pod creation"filter: |evt.Meta.log_type == 'k8s-audit' &&((evt.Meta.datasource_type == "k8s-audit" &&evt.Unmarshaled.k8s_audit.Verb == 'create' &&evt.Unmarshaled.k8s_audit.ObjectRef?.Resource == 'pods' &&evt.Unmarshaled.k8s_audit.RequestObject != nil &&evt.Unmarshaled.k8s_audit.RequestObject.spec != nil &&any(evt.Unmarshaled.k8s_audit.RequestObject.spec.containers, { .securityContext != nil && .securityContext.privileged == true }))||(evt.Meta.datasource_type != "k8s-audit" &&evt.Unmarshaled.k8s_audit.verb == 'create' &&evt.Unmarshaled.k8s_audit.objectRef?.resource == 'pods' &&evt.Unmarshaled.k8s_audit.requestObject != nil &&evt.Unmarshaled.k8s_audit.requestObject.spec != nil &&any(evt.Unmarshaled.k8s_audit.requestObject.spec.containers, { .securityContext != nil && .securityContext.privileged == true })))labels:notification: trueclassification:- attack.T1610behavior: "k8s:audit"label: "Kubernetes Privileged Pod Creation"spoofable: 0confidence: 3service: k8s
Sign in to see the Security Engines that run this attack scenario, the version they run and whether it was modified locally.
Detects privileged pods creation in a K8S cluster, using the cluster audit logs.
The scenario needs logs from the pods resources at the Request level at a minimum.
No decision will be taken based on this scenario, it is only intended for notification purposes.