Linux chmod Process Commandlines Targeting Sensitive Directory Paths

Flags Linux chmod commands that modify permissions for paths under /tmp/, /.Library/, /etc/, or /opt/, excluding several known benign package-maintenance patterns.

FreeReviewedSigma · Medium · v3
Product
linux
Category
process_creation
Author
Christopher Peacock @SecurePeacock, SCYTHE @scythe_io (SigmaHQ), DRL 1.1
Published
2022-06-03
Updated
2026-07-31

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags Linux process executions where the command line contains specific sensitive directory paths and the executable path ends with '/chmod'. Changing permissions in locations such as /etc, /opt, and /tmp can help attackers persist, escalate, or disrupt system behavior. It relies on Linux process creation telemetry that includes the process image path and full command line, with exclusions for several known benign chmod use cases.

Related detections7 linkedT1222.002 — drag to rearrange
Suspicious Making a File Executable in a Temp Directory (via process_creation)
Suspicious File Immutability Manipulation via chattr
Suspicious Download to tmp Followed by chmod Execution on Linux
Malicious Immutable Flag on SSH authorized_keys via chattr
Linux: chattr Used to Remove Immutable File Attribute
Linux auditd: chmod/chown process execution indicating file or folder permission changes
Linux auditd: Detect chattr -i removing immutable file attribute
Linux chmod Process Commandlines Targeting Sensitive Directory Paths
Pivot detection · T1222.002 · 7 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.