Detectionhightest

Linux Webshell Indicators

Detects suspicious sub processes of web server processes

Convert In Phoenix Studio

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

Launch
Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)Created Fri Oct 15Updated Wed Dec 28818f7b24-0fba-4c49-a073-8b755573b9c7linux
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 Logic4 selectors
detection:
    selection_general:
        ParentImage|endswith:
            - '/httpd'
            - '/lighttpd'
            - '/nginx'
            - '/apache2'
            - '/node'
            - '/caddy'
    selection_tomcat:
        ParentCommandLine|contains|all:
            - '/bin/java'
            - 'tomcat'
    selection_websphere:  # ? just guessing
        ParentCommandLine|contains|all:
            - '/bin/java'
            - 'websphere'
    sub_processes:
        Image|endswith:
            - '/whoami'
            - '/ifconfig'
            - '/ip'
            - '/bin/uname'
            - '/bin/cat'
            - '/bin/crontab'
            - '/hostname'
            - '/iptables'
            - '/netstat'
            - '/pwd'
            - '/route'
    condition: 1 of selection_* and sub_processes
False Positives

Web applications that invoke Linux command line tools

MITRE ATT&CK
Rule Metadata
Rule ID
818f7b24-0fba-4c49-a073-8b755573b9c7
Status
test
Level
high
Type
Detection
Created
Fri Oct 15
Modified
Wed Dec 28
Path
rules/linux/process_creation/proc_creation_lnx_webshell_detection.yml
Raw Tags
attack.persistenceattack.t1505.003
View on GitHub