Linux process-created writes to sensitive or critical files via shell redirection or editors

Alerts on Linux process command lines that redirect output or run editors while targeting sensitive/critical file paths.

FreeReviewedSigma · Medium · v2
Product
linux
Category
process_creation
Author
@d4ns4n_ (Wuerth-Phoenix) (SigmaHQ), DRL 1.1
Published
2023-05-30
Updated
2026-07-31

ATT&CK techniques

Impact
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

What it detects

This rule flags Linux process executions whose command lines indicate writing or inspecting output with redirection operators (e.g., using cat/echo/grep/head/more/tail with '>') and related editor usage (emacs/nano/sed/vi/vim), combined with targeting sensitive or critical paths such as login/passwd, cron configuration, sudoers, hosts, init scripts, and system/application directories. Such activity can indicate an attacker modifying high-value files to maintain persistence, escalate privileges, or disrupt system operation. It relies on process creation telemetry including the executing image name and full command line content, plus file-path substrings, and it excludes a specific mdadm.conf sed modification pattern.

Related detections5 linkedT1565.001 — drag to rearrange
Linux Shell History File Deletion via rm/unlink/shred
Linux Commands Clearing or Removing /var/log/syslog
Azure Activity Logs: Device or Device Configuration Modified or Deleted
Azure Activity Logs: DNS Zone Write or Delete Operations
Cisco AAA commands: shutdown or config-register changes to boot into alternate modes
Linux process-created writes to sensitive or critical files via shell redirection or editors
Pivot detection · T1565.001 · 5 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.