arrow
Return

WebShell detection based on deep residual network

delete2025-10-29
delete0
PRE
AI
F
Fucai Yu
X
Xusheng Li
Z
Ziqiang Chang
G
Gaolei Fei
Y
Yong Ding
T
Tianqing Zhu
DOI:10.1007/s10664-025-10723-0delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Software security is a cornerstone of modern digital infrastructure, with static code analysis playing a pivotal role in identifying vulnerabilities and detecting malicious code. Among the many threats to software security, WebShell, a command execution environment written in scripting languages, stand out as one of the most commonly used attack tools by cyber attackers. Once a WebShell is deployed on a compromised web server, attackers can gain unauthorized control, execute malicious actions, and escalate their operations, posing severe risks to software systems. Detecting WebShells effectively remains a critical challenge in the field of software security. Traditional feature matching-based methods fail to identify new and obfuscated WebShell variants, while machine learning approaches are often hindered by complex feature engineering and limited adaptability to unknown threats. This paper introduces a novel WebShell detection method that transforms WebShell code files into grayscale images, reframing the detection task as an image classification problem. Leveraging a deep residual network enhanced with a hybrid attention mechanism and spatial pyramid pooling, the proposed method achieves high detection accuracy. Experimental results show its efficacy in identifying PHP, JSP and ASP WebShells, with a maximum accuracy of 98.53% and a recall of 98.73%.
Keywords:
WebShell
Multilayer perceptron
Residual networks
Attention mechanism
Grayscale image

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
5.3K

Organization

S
School of Computer Science and Information Security
Scholars:
40
Papers: 17
Citations: 0
I
intelligent optoelectronic department
Scholars:
1
Papers: 1
Citations: 0
F
Faculty of Data Science
Scholars:
43
Papers: 38
Citations: 0
S
School of Information and Communication Engineering
Scholars:
176
Papers: 74
Citations: 0
researcher View more organizations