Windows WMI (wmic.exe) Sets User Password to Never Expire

Detects wmic.exe commands that set a Windows account password to never expire via WMI.

FreeReviewedSigma · Medium · v1
Product
windows
Category
process_creation
Author
Daniel Koifman (KoifSec) (SigmaHQ), DRL 1.1
Published
2025-07-30
Updated
2026-07-30

ATT&CK techniques

Execution → Priv Esc
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Defense Evasion

  5. Cred Access

  6. Discovery

  7. Lateral Movement

  8. Collection

  9. C2

  10. Exfiltration

  11. Impact

What it detects

This rule flags use of wmic.exe to change a user account property that disables password expiration (passwordexpires set to false). Attackers may use this to maintain persistent access without needing password resets, which can reduce friction for long-term compromise. It relies on Windows process creation telemetry, matching on the process executable name and specific command-line arguments indicating the password expiration setting change.

Related detections9 linkedT1098 — drag to rearrange
Suspicious Impacket Style Command Execution with ADMIN Share Output Redirect
Suspicious Route53 Domain Transfer Lock Disabled via Scattered Spider Technique
Suspicious Domain Admin Account Creation via net (via process_creation)
Suspicious Guest Account Privilege Escalation (via process_creation)
Suspicious Login Shell Assigned to Service Account games on Linux
Malicious Shadow Copy Deletion via WMIC via Process Creation (via process_creation)
Suspicious System Reconnaissance Output Redirected to PDF File (via process_creation)
Suspicious dMSA Object Access with Migration AccessMask
Suspicious Phantom Taurus mssq.bat SQL Execution via WMI (via process_creation)
Windows WMI (wmic.exe) Sets User Password to Never Expire
Pivot detection · T1098 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.