sudo cscli collections install crowdsecurity/k8s-auditInstalls 1 parser and 7 scenarios.
View Kubernetes - Audit Detection →sudo cscli scenarios install crowdsecurity/k8s-audit-pod-execThen 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-pod-execdescription: "Detect execution (via kubectl exec) in pods"filter: |evt.Meta.log_type == 'k8s-audit' &&((evt.Meta.datasource_type == "k8s-audit" && evt.Unmarshaled.k8s_audit.ObjectRef?.Resource == 'pods' && evt.Unmarshaled.k8s_audit.ObjectRef?.Subresource == 'exec')||(evt.Meta.datasource_type != "k8s-audit" && evt.Unmarshaled.k8s_audit.objectRef?.resource == 'pods' && evt.Unmarshaled.k8s_audit.objectRef?.subresource == 'exec'))labels:notification: trueclassification:- attack.T1609behavior: "k8s:audit"label: "Kubernetes Exec Into Pod"spoofable: 0confidence: 3cti: falseservice: k8s
Sign in to see the Security Engines that run this attack scenario, the version they run and whether it was modified locally.
Detects execution (via kubectl exec) in pods.
The scenario needs logs from the pods resources at the Metadata level at a minimum.
No decision will be taken based on this scenario, it is only intended for notification purposes.