Detectionlowtest
Kubernetes Unauthorized or Unauthenticated Access
Detects 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.
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Log Source
Kubernetesaudit
ProductKubernetes← raw: kubernetes
Serviceaudit← raw: audit
Detection Logic
Detection Logic1 selector
detection:
selection:
responseStatus.code:
- 401 # Unauthorized
- 403 # Forbidden
condition: selectionFalse Positives
A misconfigured RBAC policy, a mistake by a valid user, or a wider issue with authentication tokens can also generate these errors.
MITRE ATT&CK
Rule Metadata
Rule ID
0d933542-1f1f-420d-97d4-21b2c3c492d9
Status
test
Level
low
Type
Detection
Created
Fri Apr 12
Author
Path
rules/application/kubernetes/audit/kubernetes_audit_unauthorized_unauthenticated_actions.yml
Raw Tags
attack.privilege-escalation