Malicious Java']JavaScript Detection Based on Bidirectional LSTM Model

被引:19
|
作者
Song, Xuyan [1 ,2 ]
Chen, Chen [2 ,3 ]
Cui, Baojiang [1 ,2 ]
Fu, Junsong [1 ,2 ]
机构
[1] Beijing Univ Posts & Telecommun, Sch Cyberspace Secur, Beijing 100876, Peoples R China
[2] Natl Engn Lab Mobile Network Secur, Beijing 100876, Peoples R China
[3] Beijing Univ Posts & Telecommun, Sch Comp Sci, Beijing 100876, Peoples R China
来源
APPLIED SCIENCES-BASEL | 2020年 / 10卷 / 10期
基金
中国博士后科学基金; 北京市自然科学基金;
关键词
cyber security; malware detection; program slice; deep learning; malicious [!text type='Java']Java[!/text]Script; Bidirectional LSTM;
D O I
10.3390/app10103440
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
JavaScript has been widely used on the Internet because of its powerful features, and almost all the websites use it to provide dynamic functions. However, these dynamic natures also carry potential risks. The authors of the malicious scripts started using JavaScript to launch various attacks, such as Cross-Site Scripting (XSS), Cross-site Request Forgery (CSRF), and drive-by download attack. Traditional malicious script detection relies on expert knowledge, but even for experts, this is an error-prone task. To solve this problem, many learning-based methods for malicious JavaScript detection are being explored. In this paper, we propose a novel deep learning-based method for malicious JavaScript detection. In order to extract semantic information from JavaScript programs, we construct the Program Dependency Graph (PDG) and generate semantic slices, which preserve rich semantic information and are easy to transform into vectors. Then, a malicious JavaScript detection model based on the Bidirectional Long Short-Term Memory (BLSTM) neural network is proposed. Experimental results show that, in comparison with the other five methods, our model achieved the best performance, with an accuracy of 97.71% and an F1-score of 98.29%.
引用
收藏
页数:21
相关论文
共 50 条
  • [1] Research on Malicious Java']JavaScript Detection Technology Based on LSTM
    Fang, Yong
    Huang, Cheng
    Liu, Liang
    Xue, Min
    [J]. IEEE ACCESS, 2018, 6 : 59118 - 59125
  • [2] Malicious Java']JavaScript Code Detection Based on Hybrid Analysis
    He, Xincheng
    Xu, Lei
    Cha, Chunliu
    [J]. 2018 25TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2018), 2018, : 365 - 374
  • [3] Malicious Java']JavaScript Detection by Features Extraction
    Canfora, Gerardo
    Mercaldo, Francesco
    Visaggio, Corrado Aaron
    [J]. E-INFORMATICA SOFTWARE ENGINEERING JOURNAL, 2014, 8 (01) : 65 - 78
  • [4] Detection of malicious java']javascript on an imbalanced dataset
    Phung, Ngoc Minh
    Mimura, Mamoru
    [J]. INTERNET OF THINGS, 2021, 13
  • [5] Detection of Obfuscated Malicious Java']JavaScript Code
    Alazab, Ammar
    Khraisat, Ansam
    Alazab, Moutaz
    Singh, Sarabjot
    [J]. FUTURE INTERNET, 2022, 14 (08):
  • [6] Obfuscated Malicious Java']JavaScript Detection by Machine Learning
    Pan, Jinkun
    Mao, Xiaoguang
    [J]. PROCEEDINGS OF THE 2ND INTERNATIONAL CONFERENCE ON ADVANCES IN MECHANICAL ENGINEERING AND INDUSTRIAL INFORMATICS (AMEII 2016), 2016, 73 : 805 - 810
  • [7] Malicious PDF Files Detection Using Structural and Java']Javascript Based Features
    Dabral, Sonal
    Agarwal, Amit
    Mahajan, Manish
    Kumar, Sachin
    [J]. INFORMATION, COMMUNICATION AND COMPUTING TECHNOLOGY, 2017, 750 : 137 - 147
  • [8] Obfuscated Malicious Java']Javascript Detection using Classification Techniques
    Likarish, Peter
    Jung, Eunjin E. J.
    Jo, Insoon
    [J]. 2009 4TH INTERNATIONAL CONFERENCE ON MALICIOUS AND UNWANTED SOFTWARE (MALWARE 2009), 2009, : 47 - +
  • [9] Improving Detection Accuracy for Malicious Java']JavaScript Using GAN
    Guo, Junxia
    Cao, Qiyun
    Zhao, Rilian
    Li, Zheng
    [J]. WEB ENGINEERING, ICWE 2020, 2020, 12128 : 163 - 170
  • [10] JAST: Fully Syntactic Detection of Malicious (Obfuscated) Java']JavaScript
    Fass, Aurore
    Krawczyk, Robert P.
    Backes, Michael
    Stock, Ben
    [J]. DETECTION OF INTRUSIONS AND MALWARE, AND VULNERABILITY ASSESSMENT, DIMVA 2018, 2018, 10885 : 303 - 325