Detectionmediumtest

DirectorySearcher Powershell Exploitation

Enumerates Active Directory to determine computers that are joined to the domain

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
François HubautCreated Sat Feb 121f6399cf-2c80-4924-ace1-6fcff3393480windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enabled

Detection Logic
Detection Logic1 selector
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'New-Object '
            - 'System.DirectoryServices.DirectorySearcher'
            - '.PropertiesToLoad.Add'
            - '.findall()'
            - 'Properties.name'
    condition: selection
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
1f6399cf-2c80-4924-ace1-6fcff3393480
Status
test
Level
medium
Type
Detection
Created
Sat Feb 12
Path
rules/windows/powershell/powershell_script/posh_ps_directorysearcher.yml
Raw Tags
attack.discoveryattack.t1018
View on GitHub