Password Set to Never Expire via WMI

Last updated on:

About the rule

Rule Type

Standard

Rule Description

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

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (( PROCESSNAME endswith "\wmic.exe" OR ORIGINALFILENAME = "wmic.exe" ) AND ( COMMANDLINE contains "useraccount" AND COMMANDLINE contains "set" AND COMMANDLINE contains "passwordexpires" AND COMMANDLINE contains "false" )) select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME,Action1.DOMAIN,Action1.ORIGINALFILENAME,Action1.PARENTPROCESSID,Action1.PROCESSID,Action1.PRODUCT_NAME,Action1.SECURITYID

Detection

Execution Mode

realtime

Log Sources

Windows

Author

@Daniel Koifman (KoifSec)