Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Explains testing local group discovery (T1069.001) with Atomic Red Team commands listing groups and permissions on Linux, macOS, Windows.
77% 100%+23 ptsof test cases passed
Passed 26 of 26 test cases with the skill, and 20 of 26 without it.
3 of 3 safety checks passed
Not used yet
Sub-technique of: T1069
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.
Commands such as net localgroup of the Net utility, dscl . -list /Groups on macOS, and groups on Linux can list local groups.
Platforms: Linux, macOS, Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Permission Groups Discovery
Supported Platforms: linux, macos
if [ -x "$(command -v dscacheutil)" ]; then dscacheutil -q group; else echo "dscacheutil is missing from the machine. skipping..."; fi;
if [ -x "$(command -v dscl)" ]; then dscl . -list /Groups; else echo "dscl is missing from the machine. skipping..."; fi;
if [ -x "$(command -v groups)" ]; then groups; else echo "groups is missing from the machine. skipping..."; fi;
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.