{"id":"84b777bd-c946-4d17-aa2e-c39f5a454325","title":"RBAC Permission Enumeration Attempt","description":"Detects identities attempting to enumerate their Kubernetes RBAC permissions.\nIn the early stages of a breach, attackers will aim to list the permissions they have within the compromised environment.\nIn a Kubernetes cluster, this can be achieved by interacting with the API server, and querying the SelfSubjectAccessReview API via e.g. a \"kubectl auth can-i --list\" command.\nThis will enumerate the Role-Based Access Controls (RBAC) rules defining the compromised user's authorization.\n","author":"Leo Tsaousis (@laripping)","status":"test","level":"low","date":"2024-03-26","modified":"","tags":["attack.t1069.003","attack.t1087.004","attack.discovery"],"technique_ids":["T1069.003","T1087.004"],"logsource":{"category":"application","product":"kubernetes","service":"audit"},"falsepositives":["Unknown"],"references":["https://www.elastic.co/guide/en/security/current/kubernetes-suspicious-self-subject-review.html"],"source_path":"rules/application/kubernetes/audit/kubernetes_audit_rbac_permisions_listing.yml","source_sha256":"ae1b5e896a966aeb3368613ef6c5cd5d178a09b494e600f169ca9edb6fe9b733","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/application/kubernetes/audit/kubernetes_audit_rbac_permisions_listing.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: RBAC Permission Enumeration Attempt\nid: 84b777bd-c946-4d17-aa2e-c39f5a454325\nstatus: test\ndescription: |\n    Detects identities attempting to enumerate their Kubernetes RBAC permissions.\n    In the early stages of a breach, attackers will aim to list the permissions they have within the compromised environment.\n    In a Kubernetes cluster, this can be achieved by interacting with the API server, and querying the SelfSubjectAccessReview API via e.g. a \"kubectl auth can-i --list\" command.\n    This will enumerate the Role-Based Access Controls (RBAC) rules defining the compromised user's authorization.\nreferences:\n    - https://www.elastic.co/guide/en/security/current/kubernetes-suspicious-self-subject-review.html\nauthor: Leo Tsaousis (@laripping)\ndate: 2024-03-26\ntags:\n    - attack.t1069.003\n    - attack.t1087.004\n    - attack.discovery\nlogsource:\n    category: application\n    product: kubernetes\n    service: audit\ndetection:\n    selection:\n        verb: 'create'\n        apiGroup: 'authorization.k8s.io'\n        objectRef.resource: 'selfsubjectrulesreviews'\n    condition: selection\nfalsepositives:\n    - Unknown\nlevel: low\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1069.003","id":"T1069.003","name":"Cloud Groups","page":"techniques/enterprise/T1069.003/"},{"key":"enterprise/T1087.004","id":"T1087.004","name":"Cloud Account","page":"techniques/enterprise/T1087.004/"}],"data_path":"data/detection-rules/84b777bd-c946-4d17-aa2e-c39f5a454325.json","kind":"sigma"}
