Detection rules › Sigma

AD Groups Or Users Enumeration Using PowerShell - ScriptBlock

Severity
low
Author
frack113
Source
upstream

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.

MITRE ATT&CK coverage

TacticTechniques
DiscoveryT1069.001 Permission Groups Discovery: Local Groups

Event coverage

ProviderEvent IDTitle
PowerShell4104Creating Scriptblock text (MessageNumber of MessageTotal).

Stages and Predicates

Stage 1: 1 of test_2

ScriptBlockText|contains: get-ADPrincipalGroupMembership

Stage 2: 1 of test_7

ScriptBlockText|contains: '-f '
ScriptBlockText|contains: '-pr '
ScriptBlockText|contains: DoesNotRequirePreAuth
ScriptBlockText|contains: get-aduser

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
ScriptBlockTextmatch
  • -f
  • -pr
  • DoesNotRequirePreAuth
  • get-ADPrincipalGroupMembership
  • get-aduser

Neighbors

Broader alternatives (more inclusive than this rule)

These rules match a superset of what this rule catches. They cover the same events plus more. Use them if you want wider coverage and can absorb more false positives.