Sigma rule: User Discovery And Export Via Get-ADUser Cmdlet
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-042968bd6343, updated 2022-11-17T00:00:00.000Z.
Rule
- Title
- User Discovery And Export Via Get-ADUser Cmdlet
- Status
- test
- Level
- medium
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2022-09-09
- Modified
- 2022-11-17
- File
- rules/windows/process_creation/proc_creation_win_powershell_user_discovery_get_aduser.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects usage of the Get-ADUser cmdlet to collect user information and output it to a file
Log source
- product
- windows
- category
- process_creation
Detection
selection_img:
- Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
- OriginalFileName:
- 'PowerShell.EXE'
- 'pwsh.dll'
selection_cli:
CommandLine|contains|all:
- 'Get-ADUser '
- ' -Filter \*'
CommandLine|contains:
- ' > '
- ' | Select '
- 'Out-File'
- 'Set-Content'
- 'Add-Content'
condition: all of selection_*False positives (as the rule lists them)
- Legitimate admin scripts may use the same technique, it's better to exclude specific computers or users who execute these commands or scripts often
Tags
- attack.discovery
- attack.t1033
MITRE ATT&CK ids this rule names
Related rules
References
- http://blog.talosintelligence.com/2022/09/lazarus-three-rats.html
- https://www.microsoft.com/en-us/security/blog/2022/10/18/defenders-beware-a-case-for-post-ransomware-investigations/
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_user_discovery_get_aduser.yml
Sources and licences
SigmaHQ
"User Discovery And Export Via Get-ADUser Cmdlet" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_user_discovery_get_aduser.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: User Discovery And Export Via Get-ADUser Cmdlet",
entity page, dataset version ref-042968bd6343, updated 2022-11-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/1114e048-b69c-4f41-bc20-657245ae6e3f (accessed 2026-11-03).
Underlying source: SigmaHQ rule 1114e048-b69c-4f41-bc20-657245ae6e3f, 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.