Permission Groups Discovery

From enterprise
Jump to: navigation, search
Permission Groups Discovery
Technique
ID T1069
Tactic Discovery
Platform Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP, Windows 7, Windows 8, Windows Server 2003 R2, Windows Server 2008 R2, Windows Server 2012 R2, Windows Vista, Windows 8.1, Linux, Windows 10, MacOS, OS X
Permissions Required User
Data Sources API monitoring, Process command-line parameters, Process monitoring
CAPEC ID CAPEC-576

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 /domain and net localgroup using the Net utility.

Mac

On Mac, this same thing can be accomplished with the dscacheutil -q group for the domain, or dscl . -list /Groups for local groups.

Linux

On Linux, local groups can be enumerated with the groups command and domain groups via the ldapsearch command.

Examples

  • Ke3chang performs discovery of permission groups net group /domain.1
  • admin@338 actors used the following command following exploitation of a machine with LOWBALL malware to list local groups: net localgroup administrator >> %temp%\download2
  • Emissary has the capability to execute the command net localgroup administrators.3
  • Commands such as net group and net localgroup can be used in Net to gather information about and manipulate groups.4
  • Sys10 collects the group name of the logged-in user and sends it to the C2.5
  • dsquery can be used to gather information on permission groups within a domain.6

Mitigation

Identify unnecessary system utilities or potentially malicious software that may be used to acquire information about groups and permissions, and audit and/or block them by using whitelisting7 tools, like AppLocker,89 or Software Restriction Policies10 where appropriate.11

Detection

System and network discovery techniques normally occur throughout an operation as an adversary learns the environment. Data and events should not be viewed in isolation, but as part of a chain of behavior that could lead to other activities, such as Lateral Movement, based on the information obtained.

Monitor processes and command-line arguments for actions that could be taken to gather system and network information. Remote access tools with built-in features may interact directly with the Windows API to gather information. Information may also be acquired through Windows system management tools such as Windows Management Instrumentation and PowerShell.