Detectionlowtest

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.

Open in Detection LabConvert ruleBuild Package
Ömer Günal, Alejandro Ortuno, oscd.communityCreated 2020-10-11Updated 2026-11-03676381a6-15ca-4d73-a9c8-6a22e970b90dlinux
Log Source
LinuxProcess Creation
ProductLinux← raw: linux
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic4 selectors
detection:
    selection_groups:
        Image|endswith: '/groups'
    selection_read_utilities:
        Image|endswith:
            - '/cat'
            - '/ed'
            - '/emacs'
            - '/head'
            - '/less'
            - '/makemap'
            - '/more'
            - '/nano'
            - '/sqlite3'
            - '/tail'
            - '/vi'
            - '/vim'
        CommandLine|contains:
            - 'group'
            - 'gshadow'
    selection_getent:
        Image|endswith: '/getent'
        CommandLine|contains:
            - ' group'
            - ' gshadow'
    selection_ypcat:
        Image|endswith: '/ypcat'
        CommandLine|contains: 'group'
    condition: 1 of selection_*
False Positives

Legitimate administration activities

MITRE ATT&CK
Rule Metadata
Rule ID
676381a6-15ca-4d73-a9c8-6a22e970b90d
Status
test
Level
low
Type
Detection
Created
2020-10-11
Modified
2026-11-03
Path
rules/linux/process_creation/proc_creation_lnx_local_groups.yml
Raw Tags
attack.discoveryattack.t1069.001
View on GitHub