Detection rules › Sigma

HackTool - CrackMapExec Execution

Severity
high
Author
Florian Roth (Nextron Systems)
Source
upstream

This rule detect common flag combinations used by CrackMapExec in order to detect its use even if the binary has been replaced.

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1047 Windows Management Instrumentation, T1053 Scheduled Task/Job, T1059.001 Command and Scripting Interpreter: PowerShell, T1059.003 Command and Scripting Interpreter: Windows Command Shell
PersistenceT1053 Scheduled Task/Job
Privilege EscalationT1053 Scheduled Task/Job
Credential AccessT1110 Brute Force
DiscoveryT1201 Password Policy Discovery

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: 1 of selection_binary

Image|endswith: '\crackmapexec.exe'

Stage 2: 1 of selection_special

CommandLine|contains: ' -M pe_inject '

Stage 3: 1 of selection_execute

CommandLine|contains: ' --local-auth'
CommandLine|contains: ' -u '
CommandLine|contains: ' -x '

Stage 4: 1 of selection_hash

CommandLine|contains: ' --local-auth'
CommandLine|contains: ' -H ''NTHASH'''
CommandLine|contains: ' -p '
CommandLine|contains: ' -u '

Stage 5: 1 of selection_module_mssql

CommandLine|contains: ' -M '
CommandLine|contains: ' -d '
CommandLine|contains: ' -p '
CommandLine|contains: ' -u '
CommandLine|contains: ' mssql '

Stage 6: 1 of selection_module_smb1

CommandLine|contains: ' -H '
CommandLine|contains: ' -M '
CommandLine|contains: ' -o '
CommandLine|contains: ' -u '
CommandLine|contains: ' smb '

Stage 7: 1 of selection_module_smb2

CommandLine|contains: ' --local-auth'
CommandLine|contains: ' -p '
CommandLine|contains: ' -u '
CommandLine|contains: ' smb '

Stage 8: all of part_localauth_1

CommandLine|contains: ' --local-auth'
CommandLine|contains: ' -p '
CommandLine|contains: ' -u '

Stage 9: all of part_localauth_2

CommandLine|contains: ' 10.'
CommandLine|contains: ' 192.168.'
CommandLine|contains: '/24 '

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • --local-auth
  • -H
  • -H 'NTHASH'
  • -M
  • -M pe_inject
  • -d corpus 6 (sigma 6)
  • -o corpus 2 (sigma 2)
  • -p corpus 5 (sigma 5)
  • -u corpus 4 (sigma 4)
  • -x
  • 10.
  • 192.168.
  • mssql corpus 2 (sigma 2)
  • smb corpus 2 (sigma 2)
  • /24
Imageends_with
  • \crackmapexec.exe corpus 2 (sigma 2)