Home Permission Groups Discovery -> Local Groups
Post
Cancel

Permission Groups Discovery -> Local Groups

Permission Groups Discovery : Local Groups

  • ID : T1069.001
  • Tactic : Discovery
  • Platforms: Windows, linux, macos

Local Groups

Adversaries may attempt to find local system groups and permission settings. The knowledge of local system 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 the users found within the local administrators group.

Exploitations

Windows

Command Prompt

We will use command prompt to list the members of a specific group. To do that, we will have to get the list of available groups on the system and then choose the one that looks interesting to us i.e Administrators. Let’s execute the following command to get the list of available groups.

1
2
3
net localgroup

localaccount

As you can see , we were able to list the available groups on the system.

Now let’s list the members of Administrators group since it has higher privileges than other groups.

1
2
3
net localgroup Administrators

localaccount

As you can see, we were able to get the members of Administrators group.

Powershell

We will use powershell to list the members of a specific group. To do that, we will have to get the list of available groups on the system and then choose the one that looks interesting to us i.e Administrators. Let’s execute the following command to get the list of available groups.

1
2
3

get-localgroup

localaccount

As you can see , we were able to list the available groups on the system.

Now let’s list the members of Administrators group since it has higher privileges than other groups.

1
2
3

get-localgroupmember -Name Administrators

localaccount

References

This post is licensed under CC BY 4.0 by the author.