Linux Webshell Indicators


Description

Detects suspicious sub processes of web server processes

Query · sigma

selection_parent_general:
  ParentImage|endswith:
  - /httpd
  - /lighttpd
  - /nginx
  - /apache2
  - /node
  - /caddy
selection_parent_tomcat:
  ParentCommandLine|contains|all:
  - /bin/java
  - tomcat
selection_parent_websphere:
  ParentCommandLine|contains|all:
  - /bin/java
  - websphere
selection_child_processes:
  Image|endswith:
  - /whoami
  - /ifconfig
  - /ip
  - /bin/uname
  - /bin/cat
  - /bin/crontab
  - /hostname
  - /iptables
  - /netstat
  - /pwd
  - /route
filter_optional_ip_neigh:
  ParentImage|endswith: /node
  CommandLine|contains: ip neigh show
condition: 1 of selection_parent_* and selection_child_processes and not 1 of filter_optional_*

Known false positives

  • Web applications that invoke Linux command line tools
Raw source Linux Webshell Indicators · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
title: Linux Webshell Indicators
id: 818f7b24-0fba-4c49-a073-8b755573b9c7
status: test
description: Detects suspicious sub processes of web server processes
references:
    - https://www.acunetix.com/blog/articles/web-shells-101-using-php-introduction-web-shells-part-2/
    - https://media.defense.gov/2020/Jun/09/2002313081/-1/-1/0/CSI-DETECT-AND-PREVENT-WEB-SHELL-MALWARE-20200422.PDF
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2021-10-15
modified: 2026-08-19
tags:
    - attack.persistence
    - attack.t1505.003
logsource:
    product: linux
    category: process_creation
detection:
    selection_parent_general:
        ParentImage|endswith:
            - '/httpd'
            - '/lighttpd'
            - '/nginx'
            - '/apache2'
            - '/node'
            - '/caddy'
    selection_parent_tomcat:
        ParentCommandLine|contains|all:
            - '/bin/java'
            - 'tomcat'
    selection_parent_websphere:  # ? just guessing
        ParentCommandLine|contains|all:
            - '/bin/java'
            - 'websphere'
    selection_child_processes:
        Image|endswith:
            - '/whoami'
            - '/ifconfig'
            - '/ip'
            - '/bin/uname'
            - '/bin/cat'
            - '/bin/crontab'
            - '/hostname'
            - '/iptables'
            - '/netstat'
            - '/pwd'
            - '/route'
    filter_optional_ip_neigh:
        ParentImage|endswith: '/node'
        CommandLine|contains: 'ip neigh show'
    condition: 1 of selection_parent_* and selection_child_processes and not 1 of filter_optional_*
falsepositives:
    - Web applications that invoke Linux command line tools
level: high

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.