Session-Based Webshell Detection Using Machine Learning in Web Logs

Author:

Wu Yixin1,Sun Yuqiang1,Huang Cheng1ORCID,Jia Peng2,Liu Luping2

Affiliation:

1. College of Cybersecurity, Sichuan University, Chengdu, China

2. College of Electronics and Information Engineering, Sichuan University, Chengdu, China

Abstract

Attackers upload webshell into a web server to achieve the purpose of stealing data, launching a DDoS attack, modifying files with malicious intentions, etc. Once these objects are accomplished, it will bring huge losses to website managers. With the gradual development of encryption and confusion technology, the most common detection approach using taint analysis and feature matching might become less useful. Instead of applying source file codes, POST contents, or all received traffic, this paper demonstrated an intelligent and efficient framework that employs precise sessions derived from the web logs to detect webshell communication. Features were extracted from the raw sequence data in web logs while a statistical method based on time interval was proposed to identify sessions specifically. Besides, the paper leveraged long short-term memory and hidden Markov model to constitute the framework, respectively. Finally, the framework was evaluated with real data. The experiment shows that the LSTM-based model can achieve a higher accuracy rate of 95.97% with a recall rate of 96.15%, which has a much better performance than the HMM-based model. Moreover, the experiment demonstrated the high efficiency of the proposed approach in terms of the quick detection without source code, especially when it only considers detecting for a period of time, as it takes 98.5% less time than the cited related approach to get the result. As long as the webshell behavior is detected, we can pinpoint the anomaly session and utilize the statistical method to find the webshell file accurately.

Funder

Fundamental Research Funds for the Central Universities

Publisher

Hindawi Limited

Subject

Computer Networks and Communications,Information Systems

Cited by 22 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Exploiting web content semantic features to detect web robots from weblogs;Journal of Network and Computer Applications;2024-10

2. XShellGNN: Cross-file Web Shell Detection Based on Graph Neural Network;2024 27th International Conference on Computer Supported Cooperative Work in Design (CSCWD);2024-05-08

3. GlareShell: Graph learning-based PHP webshell detection for web server of industrial internet;Computer Networks;2024-05

4. Obfuscated PHP Webshell Detection Using the Webshell Tailored TextRank Algorithm;Proceedings of the 39th ACM/SIGAPP Symposium on Applied Computing;2024-04-08

5. Robots still outnumber humans in web archives in 2019, but less than in 2015 and 2012;International Journal on Digital Libraries;2024-03-07

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3