User Discovery And Export Via Get-ADUser Cmdlet
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects usage of the Get-ADUser cmdlet to collect user information and output it to a file
Severity
Trouble
Rule Requirement
Criteria
Action1:
actionname = "Process started" AND (PROCESSNAME endswith "\powershell.exe,\pwsh.exe" OR ORIGINALFILENAME = "PowerShell.EXE,pwsh.dll") AND ((COMMANDLINE contains "Get-ADUser " AND COMMANDLINE contains " -Filter *") AND COMMANDLINE contains " > , | Select ,Out-File,Set-Content,Add-Content")
select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME,Action1.DOMAIN,Action1.ORIGINALFILENAME,Action1.PARENTPROCESSID,Action1.PROCESSID,Action1.PRODUCT_NAME,Action1.SECURITYID
Detection
Execution Mode
realtime
Log Sources
Active Directory
Author
Nasreddine Bencherchali (Nextron Systems)


