Linux Webshell Indicators
Detects suspicious sub processes of web server processes
Sigma rule (View on GitHub)
1title: Linux Webshell Indicators
2id: 818f7b24-0fba-4c49-a073-8b755573b9c7
3status: test
4description: Detects suspicious sub processes of web server processes
5references:
6 - https://www.acunetix.com/blog/articles/web-shells-101-using-php-introduction-web-shells-part-2/
7 - https://media.defense.gov/2020/Jun/09/2002313081/-1/-1/0/CSI-DETECT-AND-PREVENT-WEB-SHELL-MALWARE-20200422.PDF
8author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
9date: 2021-10-15
10modified: 2026-08-19
11tags:
12 - attack.persistence
13 - attack.t1505.003
14logsource:
15 product: linux
16 category: process_creation
17detection:
18 selection_parent_general:
19 ParentImage|endswith:
20 - '/httpd'
21 - '/lighttpd'
22 - '/nginx'
23 - '/apache2'
24 - '/node'
25 - '/caddy'
26 selection_parent_tomcat:
27 ParentCommandLine|contains|all:
28 - '/bin/java'
29 - 'tomcat'
30 selection_parent_websphere: # ? just guessing
31 ParentCommandLine|contains|all:
32 - '/bin/java'
33 - 'websphere'
34 selection_child_processes:
35 Image|endswith:
36 - '/whoami'
37 - '/ifconfig'
38 - '/ip'
39 - '/bin/uname'
40 - '/bin/cat'
41 - '/bin/crontab'
42 - '/hostname'
43 - '/iptables'
44 - '/netstat'
45 - '/pwd'
46 - '/route'
47 filter_optional_ip_neigh:
48 ParentImage|endswith: '/node'
49 CommandLine|contains: 'ip neigh show'
50 condition: 1 of selection_parent_* and selection_child_processes and not 1 of filter_optional_*
51falsepositives:
52 - Web applications that invoke Linux command line tools
53level: high
References
Related rules
- WordPress Wp2shell Webshell Plugin Access
- Webshell Detection With Command Line Keywords
- Antivirus - Web Shell Detection Signature
- Webshell Remote Command Execution
- CVE-2021-40539 Zoho ManageEngine ADSelfService Plus Exploit