sudo cscli collections install crowdsecurity/k8s-auditInstalls 1 parser and 7 scenarios.
View Kubernetes - Audit Detection →sudo cscli scenarios install crowdsecurity/k8s-audit-service-account-access-deniedThen 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-service-account-access-denieddescription: "Detect unauthorized requests from service accounts"filter: |evt.Meta.log_type == 'k8s-audit' &&evt.Meta.user startsWith "system:serviceaccount:" &&((evt.Meta.datasource_type == "k8s-audit" && evt.Unmarshaled.k8s_audit.Annotations["authorization.k8s.io/decision"] == "forbid")||(evt.Meta.datasource_type != "k8s-audit" && evt.Unmarshaled.k8s_audit.annotations["authorization.k8s.io/decision"] == "forbid"))labels:notification: trueclassification:- attack.T1078- attack.T1069behavior: "k8s:scan"label: "Kubernetes Service Account Denied Request"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 service accounts making forbidden requests to the K8S API.
Only attempts done on resources that are logged at least at the Metadata level will be recorded.
No decision will be taken based on this scenario, it is only intended for notification purposes.