Suspicious Password Set to Never Expire through WMI (via process_creation)
This rule detects the use of wmic.exe to modify user account settings and explicitly disable password expiration.
SigmamediumWindowsv1
sigma
suspicious-password-set-to-never-expire-through-wmi-via-process-creation
title: Suspicious Password Set to Never Expire through WMI (via process_creation)
id: 399490d9-5ceb-5c9e-b312-4ed489bd9c1e
status: stable
description: This rule detects the use of wmic.exe to modify user account settings and explicitly disable password expiration.
references:
- https://attack.mitre.org/techniques/T1098/
- https://attack.mitre.org/techniques/T1047/
- https://www.huntress.com/blog/the-unwanted-guest
author: "Huntrule Team"
date: 2026-05-22
tags:
- attack.privilege-escalation
- attack.execution
- attack.persistence
- attack.t1047
- attack.t1098
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: '\wmic.exe'
- OriginalFileName: 'wmic.exe'
selection_cli:
CommandLine|contains|all:
- 'useraccount'
- ' set '
- 'passwordexpires'
- 'false'
condition: all of selection_*
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.