Detection rules › Sigma

Password Provided In Command Line Of Net.EXE

Severity
medium
Author
Tim Shelton (HAWK.IO)
Source
upstream

Detects a when net.exe is called with a password in the command line

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1078 Valid Accounts
PersistenceT1078 Valid Accounts
Privilege EscalationT1078 Valid Accounts
Defense EvasionT1078 Valid Accounts
Lateral MovementT1021.002 Remote Services: SMB/Windows Admin Shares

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: all of selection_img

or:
Image|endswith: '\net.exe'
Image|endswith: '\net1.exe'
OriginalFileName: net.exe
OriginalFileName: net1.exe

Stage 2: all of selection_cli

CommandLine|contains: ' use '
CommandLine|contains: '/USER:* *'
CommandLine|contains: ':*\\'

Stage 3: not 1 of filter_main_empty

CommandLine|endswith: ' '

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
CommandLineends_with
CommandLinematch
  • use corpus 6 (sigma 6)
  • /USER:* *
  • :*\\
Imageends_with
  • \net.exe corpus 27 (sigma 27)
  • \net1.exe corpus 25 (sigma 25)
OriginalFileNameeq
  • net.exe corpus 16 (sigma 16)
  • net1.exe corpus 16 (sigma 16)