Sigma rule: New User Account Creation Attempt Via ADSI in CommandLine

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-eebca067a429, updated 2026-08-13T00:00:00.000Z.

Rule

Title
New User Account Creation Attempt Via ADSI in CommandLine
Status
experimental
Level
medium
Author
William Gokah (idea), Raylee Hawkins, Swachchhanda Shrawan Poudel (Nextron Systems)
Date
2026-08-13
File
rules/windows/process_creation/proc_creation_win_powershell_adsi_create_user.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects PowerShell command line arguments containing ADSI (Active Directory Service Interfaces) patterns
trying to create a new user account via the WinNT or LDAP provider. This is an uncommon method to create
user accounts and may indicate an attempt to evade detection by avoiding more commonly monitored commands
such as "net user", "New-LocalUser" or "New-ADUser".

Log source

product
windows
category
process_creation

Detection

selection_img:
    - Image|endswith:
          - '\powershell.exe'
          - '\pwsh.exe'
    - OriginalFileName:
          - 'PowerShell.EXE'
          - 'pwsh.dll'
selection_cli_adsi:
    CommandLine|contains: '[ADSI]'
selection_cli_create_user:
    # Example (WinNT - local user):
    #   powershell.exe -Command "$c = [ADSI]('WinNT://' + $env:COMPUTERNAME); $u = $c.Create('User','NewUser'); $u.SetPassword('P@ssw0rd!'); $u.SetInfo()"
    # Example (LDAP - domain user):
    #   $ou = [ADSI]"LDAP://CN=Users,DC=domain,DC=com"; $user = $ou.Create("user", "CN=NewUser"); $user.Put("sAMAccountName","NewUser"); $user.SetInfo()
    CommandLine|contains:
        - '.Create("user'
        - ".Create('user"
selection_cli_adsi_provider:
    CommandLine|contains:
        - 'WinNT://' # Local user creation via WinNT provider
        - 'LDAP://' # Domain user creation via LDAP provider
condition: all of selection_*

False positives (as the rule lists them)

  • Legitimate administrative scripts that use ADSI to provision user accounts but should be rare in most environments

Tags

  • attack.persistence
  • attack.t1136.001
  • attack.t1136.002

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_adsi_create_user.yml

Sources and licences

  • SigmaHQ

    "New User Account Creation Attempt Via ADSI in CommandLine" by William Gokah (idea), Raylee Hawkins, Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_adsi_create_user.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: New User Account Creation Attempt Via ADSI in CommandLine",
entity page, dataset version ref-eebca067a429, updated 2026-08-13T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/7c9fed65-039a-4055-8c23-fa763d94aff6 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 7c9fed65-039a-4055-8c23-fa763d94aff6, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.