Sigma rule: AD Groups Or Users Enumeration Using PowerShell - ScriptBlock

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-7b0b92ca9148, updated 2022-12-25T00:00:00.000Z.

Rule

Title
AD Groups Or Users Enumeration Using PowerShell - ScriptBlock
Status
test
Level
low
Author
frack113
Date
2021-12-15
Modified
2022-12-25
File
rules/windows/powershell/powershell_script/posh_ps_susp_ad_group_reco.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Adversaries may attempt to find domain-level groups and permission settings.
The knowledge of domain-level permission groups can help adversaries 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.

Log source

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_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.discovery
  • attack.t1069.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_susp_ad_group_reco.yml

Sources and licences

  • SigmaHQ

    "AD Groups Or Users Enumeration Using PowerShell - ScriptBlock" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_susp_ad_group_reco.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: AD Groups Or Users Enumeration Using PowerShell - ScriptBlock",
entity page, dataset version ref-7b0b92ca9148, updated 2022-12-25T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/88f0884b-331d-403d-a3a1-b668cf035603 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 88f0884b-331d-403d-a3a1-b668cf035603, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.