WebshellHunter: A New Webshell Detection Method Based on Abstract Syntax Tree and CNN-BiLSTM

With the rapid advancement of network technologies, the interactivity of web applications has significantly improved. However, this progress has also expanded the attack surface, exposing sensitive information of individuals, enterprises, and even nations to potential security threats. In the cyberattack chain, Webshell function as malicious scripts capable of executing file operations and remote commands, enabling attackers to maintain persistent and covert control over compromised web servers. To maximize the exploitation of 0-day and N-day vulnerabilities, attackers often deploy Webshell post-intrusion as persistent access tools, further amplifying their attack impact. To evade security detection, attackers employ various obfuscation techniques such as encryption, encoding, and code obfuscation, significantly increasing detection difficulty and reducing code readability. However, existing Webshell detection methods still face challenges in feature extraction, and detection accuracy requires further improvement. To address these challenges, this study focuses on optimizing feature extraction and enhancing Webshell detection performance by proposing a CNN-BiLSTM-based Webshell detection system. This approach not only incorporates conventional feature extraction techniques but also leverages BERT to perform text vectorization on the Abstract Syntax Tree (AST) of the code, enabling deeper extraction of Webshell code patterns. Experimental results demonstrate that the proposed method effectively enhances Webshell detection capabilities and improves detection accuracy, providing a more robust defense mechanism for web security.

Authors

Institutions

Publication Details

Published
2025-02-21
DOI
https://doi.org/10.1145/3732365.3732429
Primary Topic
Web Data Mining and Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

WebshellHunter: A New Webshell Detection Method Based on Abstract Syntax Tree and CNN-BiLSTM

Yiqun Zhu, Lu Bai
Web Data Mining and Analysis
article

WebshellHunter: A New Webshell Detection Method Based on Abstract Syntax Tree and CNN-BiLSTM

Yiqun Zhu, Lu Bai
article en

Abstract

With the rapid advancement of network technologies, the interactivity of web applications has significantly improved. However, this progress has also expanded the attack surface, exposing sensitive information of individuals, enterprises, and even nations to potential security threats. In the cyberattack chain, Webshell function as malicious scripts capable of executing file operations and remote commands, enabling attackers to maintain persistent and covert control over compromised web servers. To maximize the exploitation of 0-day and N-day vulnerabilities, attackers often deploy Webshell post-intrusion as persistent access tools, further amplifying their attack impact. To evade security detection, attackers employ various obfuscation techniques such as encryption, encoding, and code obfuscation, significantly increasing detection difficulty and reducing code readability. However, existing Webshell detection methods still face challenges in feature extraction, and detection accuracy requires further improvement. To address these challenges, this study focuses on optimizing feature extraction and enhancing Webshell detection performance by proposing a CNN-BiLSTM-based Webshell detection system. This approach not only incorporates conventional feature extraction techniques but also leverages BERT to perform text vectorization on the Abstract Syntax Tree (AST) of the code, enabling deeper extraction of Webshell code patterns. Experimental results demonstrate that the proposed method effectively enhances Webshell detection capabilities and improves detection accuracy, providing a more robust defense mechanism for web security.

Shanghai Dianji University (CN)
Openalex Percentile: Top 78%
Web Data Mining and Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.