AST-DF: A New Webshell Detection Method Based on Abstract Syntax Tree and Deep Forest

Author:

Dong Chengfeng12,Li Daofeng12

Affiliation:

1. School of Computer and Electronic Information, Guangxi University, Nanning 530004, China

2. Guangxi Colleges and Universities Key Laboratory of Multimedia Communications and Information Processing, Guangxi University, Nanning 530004, China

Abstract

Webshell is a kind of web-language-based website backdoor, which is usually used by attackers to control web servers. Due to its dangerous nature, how to detect Webshell effectively has become a hot research topic in current Web security research. With the rapid development of Webshell evasion technology, the existing Webshell detection methods have the problem of insufficient ability to detect unknown Webshells. In order to solve the above problems and achieve effective Webshell detection, this study proposes a Webshell detection method based on the abstract syntax tree (AST) and deep forest (DF) model called AST-DF. AST-DF first extracts the abstract syntax tree from the PHP code; then, the abstract syntax tree sequence is feature extracted and vectorized using N-gram and TF-IDF. Finally, the vectors are imported into the deep forest model for classification to determine whether the PHP code to be detected is a Webshell or not. The experimental results show that AST-DF achieves remarkable effects in the task of detecting PHP-type Webshells, with a 99.61% accuracy rate, and the values of precision, recall, and F1 score are more than 99%.

Funder

National Natural Science Foundation of China

Publisher

MDPI AG

Reference37 articles.

1. Developing web applications;Int. J. Softw. Eng. Appl.,2011

2. WebSHArk 1.0: A benchmark collection for malicious web shell detection;Kim;J. Inf. Process. Syst.,2015

3. Qian, L., Zhu, Z., Hu, J., and Liu, S. (2015, January 10–11). Research of SQL injection attack and prevention technology. Proceedings of the 2015 International Conference on Estimation, Detection and Information Fusion (ICEDIF), Harbin, China.

4. Dahse, J., and Holz, T. (2014, January 20–22). Static Detection of {Second-Order} Vulnerabilities in Web Applications. Proceedings of the 23rd USENIX Security Symposium (USENIX Security 14), San Diego, CA, USA.

5. Zheng, Y., and Zhang, X. (2013, January 18–26). Path sensitive static analysis of web applications for remote code execution vulnerability detection. Proceedings of the 2013 35th International Conference on Software Engineering (ICSE), San Francisco, CA, USA.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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