Detection rules › Sigma

Password Set to Never Expire via WMI

Severity
medium
Author
Daniel Koifman (KoifSec)
Source
upstream

Detects the use of wmic.exe to modify user account settings and explicitly disable password expiration.

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1047 Windows Management Instrumentation
PersistenceT1098 Account Manipulation
Privilege EscalationT1098 Account Manipulation

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: all of selection_img

or:
Image|endswith: '\wmic.exe'
OriginalFileName: wmic.exe

Stage 2: all of selection_cli

CommandLine|contains: ' set '
CommandLine|contains: false
CommandLine|contains: passwordexpires
CommandLine|contains: useraccount

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
  • set corpus 4 (sigma 4)
  • false
  • passwordexpires
  • useraccount corpus 2 (sigma 2)
Imageends_with
  • \wmic.exe corpus 37 (sigma 37)
OriginalFileNameeq
  • wmic.exe corpus 33 (sigma 33)