Adversaries may attempt to find local system or domain-level groups and permissions settings.Examples of commands that can list groups are
net group /domainandnet localgroupusing the Net utility.On Mac, this same thing can be accomplished with the
dscacheutil -q groupfor the domain, ordscl . -list /Groupsfor local groups.On Linux, local groups can be enumerated with the
groupscommand and domain groups via theldapsearchcommand.
Permission Groups Discovery
Supported Platforms: macOS, Linux
dscacheutil -q group
dscl . -list /Groups
groups
Permission Groups Discovery for Windows
Supported Platforms: Windows
net localgroup
net group /domain
Permission Groups Discovery utilizing PowerShell
Supported Platforms: Windows
| Name | Description | Type | Default Value |
|---|---|---|---|
| user | User to identify what groups a user is a member of | string | administrator |
get-localgroup
get-ADPrinicipalGroupMembership #{user} | select name