Detection rules › Sigma
Kubernetes Rolebinding Modification
Detects when a Kubernetes Rolebinding is created or modified.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Privilege Escalation | No specific technique |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Kubernetes-clusterrolebindings | create-clusterrolebindings | create clusterrolebindings |
| Kubernetes-clusterrolebindings | update-clusterrolebindings | update clusterrolebindings |
| Kubernetes-clusterrolebindings | replace-clusterrolebindings | replace clusterrolebindings |
| Kubernetes-clusterrolebindings | patch-clusterrolebindings | patch clusterrolebindings |
| Kubernetes-clusterrolebindings | delete-clusterrolebindings | delete clusterrolebindings |
| Kubernetes-rolebindings | create-rolebindings | create rolebindings |
| Kubernetes-rolebindings | update-rolebindings | update rolebindings |
| Kubernetes-rolebindings | replace-rolebindings | replace rolebindings |
| Kubernetes-rolebindings | patch-rolebindings | patch rolebindings |
| Kubernetes-rolebindings | delete-rolebindings | delete rolebindings |
Rules detecting the same action
Other rules on this platform that filter on the same API call or operation.
Rule body yaml
title: Kubernetes Rolebinding Modification
id: 10b97915-ec8d-455f-a815-9a78926585f6
related:
- id: 0322d9f2-289a-47c2-b5e1-b63c90901a3e
type: similar
status: test
description: |
Detects when a Kubernetes Rolebinding is created or modified.
references:
- https://kubernetes.io/docs/reference/config-api/apiserver-audit.v1/
- https://medium.com/@seifeddinerajhi/kubernetes-rbac-privilege-escalation-exploits-and-mitigations-26c07629eeab
author: kelnage
date: 2024-07-11
tags:
- attack.privilege-escalation
logsource:
product: kubernetes
service: audit
detection:
selection:
objectRef.apiGroup: 'rbac.authorization.k8s.io'
objectRef.resource:
- 'clusterrolebindings'
- 'rolebindings'
verb:
- 'create'
- 'delete'
- 'patch'
- 'replace'
- 'update'
condition: selection
falsepositives:
- Modifying a Kubernetes Rolebinding may need to be done by a system administrator.
- Automated processes may need to take these actions and may need to be filtered.
level: medium
Stages and Predicates
Stage 0: condition
selectionStage 1: selection
selection:
objectRef.apiGroup: 'rbac.authorization.k8s.io'
objectRef.resource:
- 'clusterrolebindings'
- 'rolebindings'
verb:
- 'create'
- 'delete'
- 'patch'
- 'replace'
- 'update'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
objectRef.apiGroup | eq |
|
objectRef.resource | eq |
|
verb | eq |
|