Local Groups Discovery Attempt - Linux

 Original Source: [Sigma source]
Title: Local Groups Discovery Attempt - Linux
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