Linux: Shell Execution from /tmp by Parent Process

Alert when a /tmp parent process spawns a shell (bash/sh/zsh/etc.), indicating likely staging and command execution.

FreeReviewedSigma · High · v2
Product
linux
Category
process_creation
Author
Joseliyo Sanchez, @Joseliyo_Jstnk (SigmaHQ), DRL 1.1
Published
2023-06-02
Updated
2026-07-31

What it detects

This rule flags process creation on Linux where the parent process path is located under /tmp and the child process image name ends with a shell binary (/bash, /csh, /dash, /fish, /ksh, /sh, /zsh). Attackers commonly stage or execute payloads from temporary directories to evade standard expectations for system binaries. It relies on process_creation telemetry that includes full parent and child process image paths.

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.