Detectionhightest

Shell Invocation via Env Command - Linux

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.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.)Created Mon Sep 02bed978f8-7f3a-432b-82c5-9286a9b3031alinux
Log Source
LinuxProcess Creation
ProductLinux← raw: linux
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic1 selector
detection:
    selection:
        Image|endswith: '/env'
        CommandLine|endswith:
            - '/bin/bash'
            - '/bin/dash'
            - '/bin/fish'
            - '/bin/sh'
            - '/bin/zsh'
    condition: selection
False Positives

Github operations such as ghe-backup

Rule Metadata
Rule ID
bed978f8-7f3a-432b-82c5-9286a9b3031a
Status
test
Level
high
Type
Detection
Created
Mon Sep 02
Path
rules/linux/process_creation/proc_creation_lnx_env_shell_invocation.yml
Raw Tags
attack.executionattack.t1059
View on GitHub