Detectionhightest

New User Created Via Net.EXE With Never Expire Option

Detects creation of local users via the net.exe command with the option "never expire"

Open in Detection LabConvert ruleBuild Package
Nasreddine BencherchaliCreated 2022-07-12Updated 2023-02-21b9f0e6f5-09b4-4358-bae4-08408705bd5cwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith:
              - '\net.exe'
              - '\net1.exe'
        - OriginalFileName:
              - 'net.exe'
              - 'net1.exe'
    selection_cli:
        CommandLine|contains|all:
            - 'user'
            - 'add'
            - 'expires:never'
    condition: all of selection_*
False Positives
Unlikely

False positives are unlikely for most environments. High confidence detection.

MITRE ATT&CK
Rule Metadata
Rule ID
b9f0e6f5-09b4-4358-bae4-08408705bd5c
Status
test
Level
high
Type
Detection
Created
2022-07-12
Modified
2023-02-21
Path
rules/windows/process_creation/proc_creation_win_net_user_add_never_expire.yml
Raw Tags
attack.persistenceattack.t1136.001
View on GitHub