3.1 KiB
T1069 - Permission Groups Discovery
Description from ATT&CK
Adversaries may attempt to find local system or domain-level groups and permissions settings.Windows
Examples of commands that can list groups are
net group /domainandnet localgroupusing the Net utility.Mac
On Mac, this same thing can be accomplished with the
dscacheutil -q groupfor the domain, ordscl . -list /Groupsfor local groups.Linux
On Linux, local groups can be enumerated with the
groupscommand and domain groups via theldapsearchcommand.Office 365 and Azure AD
With authenticated access there are several tools that can be used to find permissions groups. The
Get-MsolRolePowerShell cmdlet can be used to obtain roles and permissions groups for Exchange and Office 365 accounts.(Citation: Microsoft msrole)(Citation: GitHub Raindance)Azure CLI (AZ CLI) also provides an interface to obtain permissions groups with authenticated access to a domain. The command
az ad user get-member-groupswill list groups associated to a user account.(Citation: Microsoft AZ CLI)(Citation: Black Hills Red Teaming MS AD Azure, 2018)
Atomic Tests
Atomic Test #1 - Permission Groups Discovery
Permission Groups Discovery
Supported Platforms: macOS, Linux
Run it with sh!
dscacheutil -q group
dscl . -list /Groups
groups
Atomic Test #2 - Basic Permission Groups Discovery Windows
Basic Permission Groups Discovery for Windows
Supported Platforms: Windows
Run it with command_prompt!
net localgroup
net group /domain
Atomic Test #3 - Permission Groups Discovery PowerShell
Permission Groups Discovery utilizing PowerShell
Supported Platforms: Windows
Inputs
| Name | Description | Type | Default Value |
|---|---|---|---|
| user | User to identify what groups a user is a member of | string | administrator |
Run it with powershell!
get-localgroup
get-ADPrinicipalGroupMembership #{user} | select name
Atomic Test #4 - Elevated group enumeration using net group
Runs 'net group' command including command aliases and loose typing to simulate enumeration/discovery of high value domain groups
Supported Platforms: Windows
Run it with command_prompt!
net group /domai 'Domain Admins'
net groups 'Account Operators' /doma
net groups 'Exchange Organization Management' /doma
net group 'BUILTIN\Backup Operators' /doma