Possible Active Directory Computers Enumeration With Get-AdComputer (via ps_script)
This rule detects use of the "Get-AdComputer" to enumerate Computers or properties within Active Directory.
SigmalowWindowsv1
sigma
possible-active-directory-computers-enumeration-with-get-adcomputer-via-ps-script
title: Possible Active Directory Computers Enumeration With Get-AdComputer (via ps_script)
id: a6625b3b-4b7d-555b-824c-baded154ce7c
status: stable
description: This rule detects use of the "Get-AdComputer" to enumerate Computers or properties within Active Directory.
references:
- https://attack.mitre.org/techniques/T1087/002/
- https://attack.mitre.org/techniques/T1018/
- https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-adcomputer
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1018/T1018.md
- https://github.com/redcanaryco/atomic-red-team/blob/02cb591f75064ffe1e0df9ac3ed5972a2e491c97/atomics/T1087.002/T1087.002.md
author: Huntrule Team
date: 2026-07-01
tags:
- attack.discovery
- attack.t1018
- attack.t1087.002
logsource:
product: windows
category: ps_script
definition: 'Requirements: Script Block Logging must be enabled'
detection:
selection_cmdlet:
ScriptBlockText|contains: 'Get-AdComputer '
selection_option:
ScriptBlockText|contains:
- '-Filter '
- '-LDAPFilter '
- '-Properties '
condition: all of selection_*
falsepositives:
- Unknown
level: low
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.