Suspicious Making a File Executable in a Temp Directory (via process_creation)

PremiumReviewedSigma · Medium · v1
Product
linux
Category
process_creation
Author
HuntRule
Published
2026-09-05
Updated
2026-09-05

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 detects chmod granting execute permission to a file staged in /tmp, /dev/shm or /var/tmp, a common step between dropping a payload and running it on Linux. Setting execute bits on temp-directory files is a defense-evasion and execution-preparation technique tracked in the Red Canary Threat Detection Report. Detecting it surfaces a payload being armed for execution.

Related detections7 linkedT1222.002 — drag to rearrange
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 chmod Process Commandlines Targeting Sensitive Directory Paths
Linux auditd: chmod/chown process execution indicating file or folder permission changes
Linux auditd: Detect chattr -i removing immutable file attribute
Suspicious Making a File Executable in a Temp Directory (via process_creation)
Pivot detection · T1222.002 · 7 related

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