Detectionmediumexperimental

Potential Unconstrained Delegation Discovery Via Get-ADComputer - ScriptBlock

Detects the use of the "Get-ADComputer" cmdlet in order to identify systems which are configured for unconstrained delegation.

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2025-03-05cdfa73b6-3c9d-4bb8-97f8-ddbd8921f5c5windows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script

Definition

Requirements: Script Block Logging must be enable

Detection Logic
Detection Logic1 selector
detection:
    selection:
        ScriptBlockText|contains:
            - '-Properties*TrustedForDelegation'
            - '-Properties*TrustedToAuthForDelegation'
            - '-Properties*msDS-AllowedToDelegateTo'
            - '-Properties*PrincipalsAllowedToDelegateToAccount'
            - '-LDAPFilter*(userAccountControl:1.2.840.113556.1.4.803:=524288)'
    condition: selection
False Positives

Legitimate use of the library for administrative activity

Testing & Validation

Regression Tests

by frack113
Positive Detection Test1 matchevtx

Microsoft-Windows-PowerShell

Rule Metadata
Rule ID
cdfa73b6-3c9d-4bb8-97f8-ddbd8921f5c5
Status
experimental
Level
medium
Type
Detection
Created
2025-03-05
Path
rules/windows/powershell/powershell_script/posh_ps_potential_unconstrained_delegation_discovery.yml
Raw Tags
attack.reconnaissanceattack.discoveryattack.credential-accessattack.t1018attack.t1558attack.t1589.002
View on GitHub