Local Groups Discovery Attempt - Linux

Detects attempts to enumerate local groups and group membership via common Linux utilities and sensitive file access. Adversaries may read files such as /etc/group and /etc/gshadow, or use tools like getent and groups to identify group memberships and privilege assignments on a compromised system.

Sigma rule (View on GitHub)

 1title: Local Groups Discovery Attempt - Linux
 2id: 676381a6-15ca-4d73-a9c8-6a22e970b90d
 3status: test
 4description: |
 5    Detects attempts to enumerate local groups and group membership via common Linux utilities and sensitive file access.
 6    Adversaries may read files such as /etc/group and /etc/gshadow, or use tools like getent and groups to identify
 7    group memberships and privilege assignments on a compromised system.    
 8references:
 9    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.001/T1069.001.md
10    - https://man7.org/linux/man-pages/man1/getent.1.html
11author: Ömer Günal, Alejandro Ortuno, oscd.community
12date: 2020-10-11
13modified: 2026-11-03
14tags:
15    - attack.discovery
16    - attack.t1069.001
17logsource:
18    category: process_creation
19    product: linux
20detection:
21    selection_groups:
22        Image|endswith: '/groups'
23    selection_read_utilities:
24        Image|endswith:
25            - '/cat'
26            - '/ed'
27            - '/emacs'
28            - '/head'
29            - '/less'
30            - '/makemap'
31            - '/more'
32            - '/nano'
33            - '/sqlite3'
34            - '/tail'
35            - '/vi'
36            - '/vim'
37        CommandLine|contains:
38            - 'group'
39            - 'gshadow'
40    selection_getent:
41        Image|endswith: '/getent'
42        CommandLine|contains:
43            - ' group'
44            - ' gshadow'
45    selection_ypcat:
46        Image|endswith: '/ypcat'
47        CommandLine|contains: 'group'
48    condition: 1 of selection_*
49falsepositives:
50    - Legitimate administration activities
51level: low

References

Related rules

to-top