SigmaHQ/rules/windows/process_creation/win_susp_crackmapexec_execution.yml

42 lines
1.4 KiB
YAML
Raw Normal View History

2020-05-21 22:50:37 +00:00
title: CrackMapExec Command Execution
id: 058f4380-962d-40a5-afce-50207d36d7e2
2021-04-02 22:00:43 +00:00
status: stable
2020-05-21 22:50:37 +00:00
description: Detect various execution methods of the CrackMapExec pentesting framework
references:
- https://github.com/byt3bl33d3r/CrackMapExec
tags:
- attack.execution
- attack.t1047
- attack.t1053
2021-04-02 22:00:43 +00:00
- attack.t1059.003
2020-06-16 20:46:08 +00:00
- attack.t1059.001
- attack.s0106
- attack.t1086 # an old one
2020-05-21 22:50:37 +00:00
author: Thomas Patzke
date: 2020/05/22
logsource:
category: process_creation
product: windows
detection:
selection:
2021-04-02 22:00:43 +00:00
CommandLine|endswith:
2020-05-21 22:50:37 +00:00
# cme/protocols/smb/wmiexec.py (generalized execute_remote and execute_fileless)
2021-04-02 22:00:43 +00:00
- 'cmd.exe /Q /c * 1> \\\\*\\*\\* 2>&1'
2020-05-21 22:50:37 +00:00
# cme/protocols/smb/atexec.py:109 (fileless output via share)
2021-04-02 22:00:43 +00:00
- 'cmd.exe /C * > \\\\*\\*\\* 2>&1'
2020-05-21 22:50:37 +00:00
# cme/protocols/smb/atexec.py:111 (fileless output via share)
2021-04-02 22:00:43 +00:00
- 'cmd.exe /C * > *\\Temp\\* 2>&1'
CommandLine|contains:
2020-05-21 22:50:37 +00:00
# cme/helpers/powershell.py:139 (PowerShell execution with obfuscation)
2021-04-02 22:00:43 +00:00
- '*powershell.exe -exec bypass -noni -nop -w 1 -C "*'
2020-05-21 22:50:37 +00:00
# cme/helpers/powershell.py:149 (PowerShell execution without obfuscation)
2021-04-02 22:00:43 +00:00
- '*powershell.exe -noni -nop -w 1 -enc *'
2020-05-21 22:50:37 +00:00
condition: selection
fields:
- ComputerName
- User
- CommandLine
falsepositives:
- Unknown
level: high