Local Groups Discovery Attempt - Linux


Description

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.

Query · sigma

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_*

Known false positives

  • Legitimate administration activities
Raw source Local Groups Discovery Attempt - Linux · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
title: Local Groups Discovery Attempt - Linux
id: 676381a6-15ca-4d73-a9c8-6a22e970b90d
status: test
description: |
    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.
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1069.001/T1069.001.md
    - https://man7.org/linux/man-pages/man1/getent.1.html
author: Ömer Günal, Alejandro Ortuno, oscd.community
date: 2020-10-11
modified: 2026-11-03
tags:
    - attack.discovery
    - attack.t1069.001
logsource:
    category: process_creation
    product: linux
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_*
falsepositives:
    - Legitimate administration activities
level: low

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.