{"id":"d7a95147-145f-4678-b85d-d1ff4a3bb3f6","title":"CobaltStrike Service Installations - Security","description":"Detects known malicious service installs that appear in cases in which a Cobalt Strike beacon elevates privileges or lateral movement","author":"Florian Roth (Nextron Systems), Wojciech Lesicki","status":"test","level":"high","date":"2021-05-26","modified":"2022-11-27","tags":["attack.persistence","attack.execution","attack.privilege-escalation","attack.lateral-movement","attack.t1021.002","attack.t1543.003","attack.t1569.002"],"technique_ids":["T1021.002","T1543.003","T1569.002"],"logsource":{"product":"windows","service":"security","definition":"The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697"},"falsepositives":["Unknown"],"references":["https://www.sans.org/webcasts/119395","https://www.crowdstrike.com/blog/getting-the-bacon-from-cobalt-strike-beacon/","https://thedfirreport.com/2021/08/29/cobalt-strike-a-defenders-guide/"],"source_path":"rules/windows/builtin/security/win_security_cobaltstrike_service_installs.yml","source_sha256":"6e5a67db862c48342750e76203ee45dced8b802462bed83da6df944ed39e7697","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/builtin/security/win_security_cobaltstrike_service_installs.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: CobaltStrike Service Installations - Security\nid: d7a95147-145f-4678-b85d-d1ff4a3bb3f6\nrelated:\n    - id: 5a105d34-05fc-401e-8553-272b45c1522d\n      type: derived\nstatus: test\ndescription: Detects known malicious service installs that appear in cases in which a Cobalt Strike beacon elevates privileges or lateral movement\nreferences:\n    - https://www.sans.org/webcasts/119395\n    - https://www.crowdstrike.com/blog/getting-the-bacon-from-cobalt-strike-beacon/\n    - https://thedfirreport.com/2021/08/29/cobalt-strike-a-defenders-guide/\nauthor: Florian Roth (Nextron Systems), Wojciech Lesicki\ndate: 2021-05-26\nmodified: 2022-11-27\ntags:\n    - attack.persistence\n    - attack.execution\n    - attack.privilege-escalation\n    - attack.lateral-movement\n    - attack.t1021.002\n    - attack.t1543.003\n    - attack.t1569.002\nlogsource:\n    product: windows\n    service: security\n    definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697\ndetection:\n    event_id:\n        EventID: 4697\n    selection1:\n        ServiceFileName|contains|all:\n            - 'ADMIN$'\n            - '.exe'\n    selection2:\n        ServiceFileName|contains|all:\n            - '%COMSPEC%'\n            - 'start'\n            - 'powershell'\n    selection3:\n        ServiceFileName|contains: 'powershell -nop -w hidden -encodedcommand'\n    selection4:\n        ServiceFileName|base64offset|contains: \"IEX (New-Object Net.Webclient).DownloadString('http://127.0.0.1:\"\n    condition: event_id and 1 of selection*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1021.002","id":"T1021.002","name":"SMB/Windows Admin Shares","page":"techniques/enterprise/T1021.002/"},{"key":"enterprise/T1543.003","id":"T1543.003","name":"Windows Service","page":"techniques/enterprise/T1543.003/"},{"key":"enterprise/T1569.002","id":"T1569.002","name":"Service Execution","page":"techniques/enterprise/T1569.002/"}],"data_path":"data/detection-rules/d7a95147-145f-4678-b85d-d1ff4a3bb3f6.json","kind":"sigma"}
