Linux Process Creation: GCC/C89/C99 Wrapper Executing Shell via -wrapper

Flags gcc/c89/c99 executions that use -wrapper to invoke common shells with -s.

FreeReviewedSigma · High · v3
Product
linux
Category
process_creation
Author
Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.) (SigmaHQ), DRL 1.1
Published
2024-09-02
Updated
2026-07-31

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies Linux process creation where the executed image path ends with /gcc, /c89, or /c99 and the command line includes the -wrapper option. It further matches command lines that invoke common shells using patterns like /bin/<shell>,-s (bash, dash, fish, sh, or zsh). This behavior is commonly used to run arbitrary commands or escape restricted environments, so correlating it with process creation telemetry helps surface suspicious shell-spawning activity.

Related detections9 linkedT1083 — drag to rearrange
Possible Local File Inclusion Path Traversal Targeting CentreStack Web.config
PUA: TruffleHog Execution on Windows via trufflehog.exe Process Launch
Linux Process Execution of TruffleHog with Secret-Scanning Platforms
Windows: Notepad Password File Discovery via Process Creation
Linux process execution of shell via nice utility
Linux: Shell Command Execution Using flock -u with Common Shell Paths
Linux Find Command Used to Execute a Shell via -exec
Linux Process Execution via Vim/Vi/Rvim/Vimdiff Shell and Script Escapes
Linux find Command Used to Discover SUID/SGID and World-Writable Files
Linux Process Creation: GCC/C89/C99 Wrapper Executing Shell via -wrapper
Pivot detection · T1083 · 9 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.