DirectorySearcher Powershell Exploitation
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Enumerates Active Directory to determine computers that are joined to the domain
Severity
Trouble
Rule Requirement
Criteria
Action1: actionname = "PowerShell Script Block Logged" AND SCRIPTEXECUTED contains "New-Object " AND SCRIPTEXECUTED contains "System.DirectoryServices.DirectorySearcher" AND SCRIPTEXECUTED contains ".PropertiesToLoad.Add" AND SCRIPTEXECUTED contains ".findall()" AND SCRIPTEXECUTED contains "Properties.name" select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED
Detection
Execution Mode
realtime
Log Sources
Active Directory
Author
frack113


