Local Groups Discovery Attempt - Linux
A Sigma rule for process creation on Linux, by Ömer Günal, Alejandro Ortuno, oscd.community.
low 1 ATT&CK technique 13 programs it names 4 everyday examples trip it
What it looks for
detection:
selection_getent:
CommandLine|contains:
- ' group'
- ' gshadow'
Image|endswith: '/getent'
selection_groups:
Image|endswith: '/groups'
selection_read_utilities:
CommandLine|contains:
- 'group'
- 'gshadow'
Image|endswith:
- '/cat'
- '/ed'
- '/emacs'
- '/head'
- '/less'
- '/makemap'
- '/more'
- '/nano'
- '/sqlite3'
- '/tail'
- '/vi'
- '/vim'
selection_ypcat:
CommandLine|contains: 'group'
Image|endswith: '/ypcat'
condition: 1 of selection_*
The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Ömer Günal, Alejandro Ortuno, oscd.community, under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.
Command lines that trip it
Programs and files it names
ATT&CK
T1069.001Permission Groups Discovery: Local Groups