Sigma rule: Shell Invocation via Env Command - Linux
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-d0c91328809e, updated 2026-01-08T00:00:00.000Z.
Rule
- Title
- Shell Invocation via Env Command - Linux
- Status
- test
- Level
- high
- Author
- Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.)
- Date
- 2024-09-02
- Modified
- 2026-01-08
- File
- rules/linux/process_creation/proc_creation_lnx_env_shell_invocation.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the use of the env command to invoke a shell. This may indicate an attempt to bypass restricted environments, escalate privileges, or execute arbitrary commands.
Log source
- product
- linux
- category
- process_creation
Detection
selection:
Image|endswith: '/env'
CommandLine|contains:
- '/bin/bash'
- '/bin/dash'
- '/bin/fish'
- '/bin/sh'
- '/bin/zsh'
condition: selectionFalse positives (as the rule lists them)
- Github operations such as ghe-backup
Tags
- attack.execution
- attack.t1059.004
MITRE ATT&CK ids this rule names
References
- https://gtfobins.github.io/gtfobins/env/#shell
- https://www.elastic.co/guide/en/security/current/linux-restricted-shell-breakout-via-linux-binary-s.html
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_env_shell_invocation.yml
Sources and licences
SigmaHQ
"Shell Invocation via Env Command - Linux" by Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_env_shell_invocation.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Shell Invocation via Env Command - Linux",
entity page, dataset version ref-d0c91328809e, updated 2026-01-08T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/bed978f8-7f3a-432b-82c5-9286a9b3031a (accessed 2026-11-03).
Underlying source: SigmaHQ rule bed978f8-7f3a-432b-82c5-9286a9b3031a, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.