Detectionmediumtest

Password Provided In Command Line Of Net.EXE

Detects a when net.exe is called with a password in the command line

Open in Detection LabConvert ruleBuild Package
Tim Shelton (HAWK.IO)Created 2021-12-09Updated 2023-02-21d4498716-1d52-438f-8084-4a603157d131windows
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 Logic3 selectors
detection:
    selection_img:
        - Image|endswith:
              - '\net.exe'
              - '\net1.exe'
        - OriginalFileName:
              - 'net.exe'
              - 'net1.exe'
    selection_cli:
        CommandLine|contains|all:
            - ' use '
            - ':*\\'
            - '/USER:* *'
    filter_main_empty:
        CommandLine|endswith: ' '
    condition: all of selection_* and not 1 of filter_main_*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

References
1
Resolving title…
Internal Research
Rule Metadata
Rule ID
d4498716-1d52-438f-8084-4a603157d131
Status
test
Level
medium
Type
Detection
Created
2021-12-09
Modified
2023-02-21
Path
rules/windows/process_creation/proc_creation_win_net_use_password_plaintext.yml
Raw Tags
attack.initial-accessattack.persistenceattack.privilege-escalationattack.lateral-movementattack.stealthattack.t1021.002attack.t1078
View on GitHub