Detectionlowtest
Local System Accounts Discovery Attempt - Linux
Detects attempts to enumerate local user accounts via common Linux utilities and sensitive file access. Adversaries may read files such as /etc/passwd, /etc/shadow, and /etc/sudoers, or use tools like getent, id, who, and finger to identify accounts and privilege levels on a compromised system.
Alejandro Ortuno, oscd.community, CheraghiMiladCreated 2020-10-08Updated 2026-11-03b45e3d6f-42c6-47d8-a478-df6bd6cf534clinux
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 Logic9 selectors
detection:
selection_lastlog:
Image|endswith:
- '/lastlog'
- '/last'
- '/lastb'
selection_root_string:
CommandLine|contains: 'x:0:'
selection_read_utilities:
Image|endswith:
- '/cat'
- '/ed'
- '/emacs'
- '/head'
- '/less'
- '/makemap'
- '/more'
- '/nano'
- '/sqlite3'
- '/tail'
- '/vi'
- '/vim'
CommandLine|contains:
- '/etc/passwd'
- '/etc/shadow'
- '/etc/sudoers'
- 'master.passwd'
- 'pwd.db'
selection_id:
Image|endswith: '/id'
selection_lsof:
Image|endswith: '/lsof'
CommandLine|contains: '-u'
selection_getent:
Image|endswith: '/getent'
CommandLine|contains:
- ' passwd'
- ' shadow'
selection_who:
Image|endswith:
- '/finger'
- '/users'
- '/w'
- '/who'
selection_ypcat:
Image|endswith: '/ypcat'
CommandLine|contains: 'passwd'
filter_optional_landscape_sysinfo:
ParentCommandLine|contains: '/usr/bin/landscape-sysinfo'
Image|endswith: '/who'
condition: 1 of selection_* and not 1 of filter_optional_*False Positives
Legitimate administration activities
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
b45e3d6f-42c6-47d8-a478-df6bd6cf534c
Status
test
Level
low
Type
Detection
Created
2020-10-08
Modified
2026-11-03
Path
rules/linux/process_creation/proc_creation_lnx_local_account.yml
Raw Tags
attack.discoveryattack.t1087.001