Linux process activity: chown root and setuid/setgid chmod flags

Alerts on Linux command lines that set root ownership and enable setuid/setgid via chmod u+s or g+s.

FreeReviewedSigma · Low · v2
Product
linux
Category
process_creation
Author
Ömer Günal (SigmaHQ), DRL 1.1
Published
2020-06-16
Updated
2026-07-31

ATT&CK techniques

Priv Esc → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule flags Linux process executions where command lines include changing ownership to root via chown root and enabling setuid or setgid via chmod u+s or chmod g+s. Attackers may use these file permission changes to persist or escalate privileges by allowing programs to run with elevated rights. Detection relies on process creation telemetry with the full command line captured for chown and chmod invocations.

Related detections3 linkedT1548.001 — drag to rearrange
Possible CopyFail Root Exploitation via Python Spawning SUID Shell (via process_creation)
Suspicious User and Network Namespace Creation via unshare on Linux
Linux auth logs: pkexec and XAUTHORITY strings indicating PwnKit (CVE-2021-4034) attempt
Linux process activity: chown root and setuid/setgid chmod flags
Pivot detection · T1548.001 · 3 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.