{"id":"7864a175-3654-4824-9f0d-f0da18ab27c0","title":"Password Set to Never Expire via WMI","description":"Detects the use of wmic.exe to modify user account settings and explicitly disable password expiration.\n","author":"Daniel Koifman (KoifSec)","status":"experimental","level":"medium","date":"2025-07-30","modified":"","tags":["attack.privilege-escalation","attack.execution","attack.persistence","attack.t1047","attack.t1098"],"technique_ids":["T1047","T1098"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate administrative activity"],"references":["https://www.huntress.com/blog/the-unwanted-guest"],"source_path":"rules/windows/process_creation/proc_creation_win_wmi_password_never_expire.yml","source_sha256":"62d5fd1f2a2e283ceb7cc343aad509f0861efe57fea05e22b472814ed493f881","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_wmi_password_never_expire.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Password Set to Never Expire via WMI\nid: 7864a175-3654-4824-9f0d-f0da18ab27c0\nstatus: experimental\ndescription: |\n    Detects the use of wmic.exe to modify user account settings and explicitly disable password expiration.\nreferences:\n    - https://www.huntress.com/blog/the-unwanted-guest\nauthor: \"Daniel Koifman (KoifSec)\"\ndate: 2025-07-30\ntags:\n    - attack.privilege-escalation\n    - attack.execution\n    - attack.persistence\n    - attack.t1047\n    - attack.t1098\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:   # Example command simulated:  wmic  useraccount where name='guest' set passwordexpires=false\n        - Image|endswith: '\\wmic.exe'\n        - OriginalFileName: 'wmic.exe'\n    selection_cli:\n        CommandLine|contains|all:\n            - 'useraccount'\n            - ' set '\n            - 'passwordexpires'\n            - 'false'\n    condition: all of selection_*\nfalsepositives:\n    - Legitimate administrative activity\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1047","id":"T1047","name":"Windows Management Instrumentation","page":"techniques/enterprise/T1047/"},{"key":"enterprise/T1098","id":"T1098","name":"Account Manipulation","page":"techniques/enterprise/T1098/"}],"data_path":"data/detection-rules/7864a175-3654-4824-9f0d-f0da18ab27c0.json","kind":"sigma"}
