Possible AD Groups Or Users Enumeration Via PowerShell - ScriptBlock (via ps_script)

This rule detects threat actors may attempt to find domain-level groups and permission settings. The knowledge of domain-level permission groups can help threat actors determine which groups exist and which users belong to a particular group. Adversaries may use this information to determine which users have elevated permissions, such as domain administrators.

SigmalowWindowsv1
sigma
title: Possible AD Groups Or Users Enumeration Via PowerShell - ScriptBlock (via ps_script)
id: cad893fb-bd65-53eb-a291-fe9f088c5285
status: stable
description: This rule detects threat actors may attempt to find domain-level groups and permission settings. The knowledge of domain-level permission groups can help threat actors determine which groups exist and which users belong to a particular group. Adversaries may use this information to determine which users have elevated permissions, such as domain administrators.
references:
    - https://attack.mitre.org/techniques/T1069/001/
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.002/T1069.002.md
author: Huntrule Team
date: 2026-03-10
tags:
    - attack.discovery
    - attack.t1069.001
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    test_2:
        ScriptBlockText|contains: get-ADPrincipalGroupMembership
    test_7:
        ScriptBlockText|contains|all:
            - get-aduser
            - '-f '
            - '-pr '
            - DoesNotRequirePreAuth
    condition: 1 of test_*
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.