Linux Local Account Enumeration via lastlog, /etc/* file reads, id, and lsof -u

Flags Linux process activity consistent with enumerating local system accounts using /etc account data and related tools.

FreeReviewedSigma · Low · v2
Product
linux
Category
process_creation
Author
Alejandro Ortuno, oscd.community, CheraghiMilad (SigmaHQ), DRL 1.1
Published
2020-10-08
Updated
2026-07-31

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies Linux process activity indicative of local account enumeration, such as invoking utilities like lastlog, cat/vi-like tools, id, and lsof with user-focused options. It matters because discovering which local accounts exist can support later targeting and privilege-related actions. The detection relies on process creation telemetry, matching image paths and command-line content that reference common account databases and related files like /etc/passwd and /etc/shadow.

Related detections9 linkedT1087.001 — drag to rearrange
Windows PowerShell module commandlet names matching known exploitation and post-exploitation tooling
Windows Process Creation: Suspicious PowerShell Commandlets Used by Known Exploitation Tools
Windows PowerShell Recon Using Get-LocalGroupMember on Local/Well-Known Groups
Windows file creation for SharpHound/BloodHound collection output filenames
Windows: Process Execution of PsLogList with Event Log Dump/Export Flags
macOS Local System Account Enumeration via dscl, dscacheutil, and user listing commands
Windows Process Execution of Bloodhound/SharpHound Command-Line Collection Options
Windows Local Account Discovery via System Utilities Process Execution
Cisco AAA Command Output Collection: show running/startup-config and archive config
Linux Local Account Enumeration via lastlog, /etc/* file reads, id, and lsof -u
Pivot detection · T1087.001 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.