{"id":"a1b0ca4e-7835-413e-8471-3ff2b8a66be6","title":"Potential Remote Command Execution In Pod Container","description":"Detects attempts to execute remote commands, within a Pod's container using e.g. the \"kubectl exec\" command.\n","author":"Leo Tsaousis (@laripping)","status":"test","level":"medium","date":"2024-03-26","modified":"","tags":["attack.t1609","attack.execution"],"technique_ids":["T1609"],"logsource":{"category":"application","product":"kubernetes","service":"audit"},"falsepositives":["Legitimate debugging activity. Investigate the identity performing the requests and their authorization."],"references":["https://microsoft.github.io/Threat-Matrix-for-Kubernetes/techniques/Exec%20into%20container/"],"source_path":"rules/application/kubernetes/audit/kubernetes_audit_exec_into_container.yml","source_sha256":"a8c4d01b9fe0a82455d5153e900c6349500f1b7cae7352630aad0852f8ba4646","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/application/kubernetes/audit/kubernetes_audit_exec_into_container.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potential Remote Command Execution In Pod Container\nid: a1b0ca4e-7835-413e-8471-3ff2b8a66be6\nstatus: test\ndescription: |\n    Detects attempts to execute remote commands, within a Pod's container using e.g. the \"kubectl exec\" command.\nreferences:\n    - https://microsoft.github.io/Threat-Matrix-for-Kubernetes/techniques/Exec%20into%20container/\nauthor: Leo Tsaousis (@laripping)\ndate: 2024-03-26\ntags:\n    - attack.t1609\n    - attack.execution\nlogsource:\n    category: application\n    product: kubernetes\n    service: audit\ndetection:\n    selection:\n        verb: 'create'\n        objectRef.resource: 'pods'\n        objectRef.subresource: 'exec'\n    condition: selection\nfalsepositives:\n    - Legitimate debugging activity. Investigate the identity performing the requests and their authorization.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1609","id":"T1609","name":"Container Administration Command","page":"techniques/enterprise/T1609/"}],"data_path":"data/detection-rules/a1b0ca4e-7835-413e-8471-3ff2b8a66be6.json","kind":"sigma"}
