2020-05-21 22:50:37 +00:00
|
|
|
title: CrackMapExec Command Execution
|
|
|
|
id: 058f4380-962d-40a5-afce-50207d36d7e2
|
|
|
|
status: experimental
|
|
|
|
description: Detect various execution methods of the CrackMapExec pentesting framework
|
|
|
|
references:
|
|
|
|
- https://github.com/byt3bl33d3r/CrackMapExec
|
|
|
|
tags:
|
|
|
|
- attack.execution
|
|
|
|
- attack.t1047
|
|
|
|
- attack.t1053
|
2020-09-05 17:35:21 +00:00
|
|
|
- attack.t1059.003
|
2020-06-16 20:46:08 +00:00
|
|
|
- attack.t1059.001
|
2020-09-05 17:35:21 +00:00
|
|
|
- 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:
|
|
|
|
CommandLine:
|
|
|
|
# cme/protocols/smb/wmiexec.py (generalized execute_remote and execute_fileless)
|
|
|
|
- '*cmd.exe /Q /c * 1> \\\\*\\*\\* 2>&1'
|
|
|
|
# cme/protocols/smb/atexec.py:109 (fileless output via share)
|
|
|
|
- '*cmd.exe /C * > \\\\*\\*\\* 2>&1'
|
|
|
|
# cme/protocols/smb/atexec.py:111 (fileless output via share)
|
|
|
|
- '*cmd.exe /C * > *\\Temp\\* 2>&1'
|
|
|
|
# cme/helpers/powershell.py:139 (PowerShell execution with obfuscation)
|
|
|
|
- '*powershell.exe -exec bypass -noni -nop -w 1 -C "*'
|
|
|
|
# cme/helpers/powershell.py:149 (PowerShell execution without obfuscation)
|
|
|
|
- '*powershell.exe -noni -nop -w 1 -enc *'
|
|
|
|
condition: selection
|
|
|
|
fields:
|
|
|
|
- ComputerName
|
|
|
|
- User
|
|
|
|
- CommandLine
|
|
|
|
falsepositives:
|
|
|
|
- Unknown
|
|
|
|
level: high
|