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.
Detection logic
selection
ScriptBlockText|contains:
- -Properties*TrustedForDelegation
- -Properties*TrustedToAuthForDelegation
- -Properties*msDS-AllowedToDelegateTo
- -Properties*PrincipalsAllowedToDelegateToAccount
- -LDAPFilter*(userAccountControl:1.2.840.113556.1.4.803:=524288)Condition
selectionRaw YAML
title: Potential Unconstrained Delegation Discovery Via Get-ADComputer - ScriptBlock
id: cdfa73b6-3c9d-4bb8-97f8-ddbd8921f5c5
status: experimental
description: Detects the use of the "Get-ADComputer" cmdlet in order to identify systems which are configured for unconstrained delegation.
references:
- https://pentestlab.blog/2022/03/21/unconstrained-delegation/
- https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adcomputer?view=windowsserver2022-ps
author: frack113
date: 2025-03-05
tags:
- attack.reconnaissance
- attack.discovery
- attack.credential-access
- attack.t1018
- attack.t1558
- attack.t1589.002
logsource:
product: windows
category: ps_script
definition: 'Requirements: Script Block Logging must be enable'
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
falsepositives:
- Legitimate use of the library for administrative activity
level: mediumFalse positives
- Legitimate use of the library for administrative activity
References
Similar rules
Active Directory Computers Enumeration With Get-AdComputer
lowwindows · Shares T1018
DirectorySearcher Powershell Exploitation
mediumwindows · Shares T1018
HackTool - Rubeus Execution - ScriptBlock
highwindows · Shares T1558
Suspicious Kerberos Ticket Request via PowerShell Script - ScriptBlock
highwindows · Shares T1558