Detectioncriticaltest
CobaltStrike Service Installations - System
Detects known malicious service installs that appear in cases in which a Cobalt Strike beacon elevates privileges or lateral movement
Florian Roth (Nextron Systems), Wojciech LesickiCreated 2021-05-26Updated 2022-11-275a105d34-05fc-401e-8553-272b45c1522dwindows
Log Source
Windowssystem
ProductWindows← raw: windows
Servicesystem← raw: system
Detection Logic
Detection Logic5 selectors
detection:
selection_id:
Provider_Name: 'Service Control Manager'
EventID: 7045
selection1:
ImagePath|contains|all:
- 'ADMIN$'
- '.exe'
selection2:
ImagePath|contains|all:
- '%COMSPEC%'
- 'start'
- 'powershell'
selection3:
ImagePath|contains: 'powershell -nop -w hidden -encodedcommand'
selection4:
ImagePath|base64offset|contains: "IEX (New-Object Net.Webclient).DownloadString('http://127.0.0.1:"
condition: selection_id and (selection1 or selection2 or selection3 or selection4)False Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
MITRE ATT&CK
Rule Metadata
Rule ID
5a105d34-05fc-401e-8553-272b45c1522d
Status
test
Level
critical
Type
Detection
Created
2021-05-26
Modified
2022-11-27
Path
rules/windows/builtin/system/service_control_manager/win_system_cobaltstrike_service_installs.yml
Raw Tags
attack.persistenceattack.executionattack.privilege-escalationattack.lateral-movementattack.t1021.002attack.t1543.003attack.t1569.002