Sigma rule: New User Account Creation Attempt Via ADSI
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-61fb4ffe9801, updated 2026-08-13T00:00:00.000Z.
Rule
- Title
- New User Account Creation Attempt Via ADSI
- Status
- experimental
- Level
- medium
- Author
- William Gokah (idea), Raylee Hawkins, Swachchhanda Shrawan Poudel (Nextron Systems)
- Date
- 2026-08-13
- File
- rules/windows/powershell/powershell_script/posh_ps_adsi_create_user.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects an attempt to create a new user account via ADSI (Active Directory Service Interfaces)
using either 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
- ps_script
- definition
- Requirements: Script Block Logging must be enabled
Detection
selection_adsi:
ScriptBlockText|contains: '[ADSI]'
selection_create_user:
# Example (WinNT - local user):
# $computer = [ADSI]"WinNT://localhost"; $user = $computer.Create("User", "NewUser"); $user.SetPassword("P@ssw0rd!"); $user.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()
ScriptBlockText|contains:
- '.create("user'
- ".create('user"
selection_adsi_provider:
ScriptBlockText|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
- https://learn.microsoft.com/en-us/windows/win32/adsi/user-creation-with-the-adsi-ldap-provider
- https://learn.microsoft.com/en-us/windows/win32/adsi/adsi-winnt-provider
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/powershell/powershell_script/posh_ps_adsi_create_user.yml
Sources and licences
SigmaHQ
"New User Account Creation Attempt Via ADSI" by William Gokah (idea), Raylee Hawkins, Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_adsi_create_user.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: New User Account Creation Attempt Via ADSI",
entity page, dataset version ref-61fb4ffe9801, updated 2026-08-13T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/e50d5d26-0cf6-4045-b82b-13c0a4e316be (accessed 2026-11-03).
Underlying source: SigmaHQ rule e50d5d26-0cf6-4045-b82b-13c0a4e316be, 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.