Linux Command Lines Creating Symlink to /etc/passwd

Alerts on Linux command lines attempting to create symlinks to /etc/passwd via ln -s/ln -f patterns.

FreeReviewedSigma · High · v3
Product
linux
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2019-04-05
Updated
2026-07-31

ATT&CK techniques

Execution
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule matches Linux process command lines containing patterns for creating a symbolic link to /etc/passwd using ln with -s and optionally -f. Attackers use symlinks to redirect file operations and potentially manipulate how privileged processes read sensitive files. The detection relies on command-line text telemetry that captures the executed ln arguments.

Related detections9 linkedT1204.001 — drag to rearrange
Suspicious Script Interpreter Spawned by Explorer via ClickFix Run Dialog (via process_creation)
Suspicious Masqueraded Windows Update Python Script Execution
ClickFix Pastejacking via Script Interpreter Command in Run Dialog MRU (via registry_set)
Suspicious cscript Execution of JavaScript Spawned by PowerShell
Suspicious Ukraine-Themed LNK Lure Files Dropped (via file_event)
Suspicious Renamed MySQL Binary Executed from Temp via ClickFix (via process_creation)
Windows ClickFix/FileFix Clipboard Phishing Leading to Suspicious mshta/powershell Command Execution
Windows Registry RunMRU Tampering with HTTP/HTTPS and Script Execution Indicators
macOS Script Editor Spawns Suspicious Command-Line Interpreters
Linux Command Lines Creating Symlink to /etc/passwd
Pivot detection · T1204.001 · 9 related

Changelog

v3
  1. v3
    Candidate ingested via manual entry.2026-07-31
  2. v2
    Candidate ingested via manual entry.2026-07-31
  3. 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.