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 条
  • [41] Malicious Java']JavaScript Insertion through ARP Poisoning Attacks
    Zdrnja, Bojan
    [J]. IEEE SECURITY & PRIVACY, 2009, 7 (03) : 72 - 74
  • [42] Detecting Malicious Java']Javascript in PDF through Document Instrumentation
    Liu, Daiping
    Wang, Haining
    Stavrou, Angelos
    [J]. 2014 44TH ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS (DSN), 2014, : 100 - 111
  • [43] Detecting Malicious Java']JavaScript Using Structure-Based Analysis of Graph Representation
    Rozi, Muhammad Fakhrur
    Ban, Tao
    Ozawa, Seiichi
    Yamada, Akira
    Takahashi, Takeshi
    Kim, Sangwook
    Inoue, Daisuke
    [J]. IEEE ACCESS, 2023, 11 : 102727 - 102745
  • [44] AB-LSTM: Attention-based Bidirectional LSTM Model for Scene Text Detection
    Liu, Zhandong
    Zhou, Wengang
    Li, Houqiang
    [J]. ACM TRANSACTIONS ON MULTIMEDIA COMPUTING COMMUNICATIONS AND APPLICATIONS, 2019, 15 (04)
  • [45] Bidirectional LSTM Malicious webpages detection algorithm based on convolutional neural network and independent recurrent neural network
    Huan-huan Wang
    Long Yu
    Sheng-wei Tian
    Yong-fang Peng
    Xin-jun Pei
    [J]. Applied Intelligence, 2019, 49 : 3016 - 3026
  • [46] Bidirectional LSTM Malicious webpages detection algorithm based on convolutional neural network and independent recurrent neural network
    Wang, Huan-huan
    Yu, Long
    Tian, Sheng-wei
    Peng, Yong-fang
    Pei, Xin-jun
    [J]. APPLIED INTELLIGENCE, 2019, 49 (08) : 3016 - 3026
  • [47] MalGA-LSTM: a malicious code detection model based on genetic algorithm optimising LSTM trainable parameters
    Zhang, Yudi
    Feng, Yongxin
    Zhao, Yuntao
    [J]. International Journal of Security and Networks, 2023, 18 (03) : 133 - 142
  • [48] JS']JSContana: Malicious Java']JavaScript detection using adaptable context analysis and key feature extraction
    Huang, Yunhua
    Li, Tao
    Zhang, Lijia
    Li, Beibei
    Liu, Xiaojie
    [J]. COMPUTERS & SECURITY, 2021, 104
  • [49] JS']JSRevealer: A Robust Malicious Java']JavaScript Detector against Obfuscation
    Ren, Kunlun
    Qiang, Weizhong
    Wu, Yueming
    Zhou, Yi
    Zou, Deqing
    Jin, Hai
    [J]. 2023 53RD ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS, DSN, 2023, : 339 - 351
  • [50] Deobfuscation, unpacking, and decoding of obfuscated malicious Java']JavaScript for machine learning models detection performance improvement
    Ndichu, Samuel
    Kim, Sangwook
    Ozawa, Seiichi
    [J]. CAAI TRANSACTIONS ON INTELLIGENCE TECHNOLOGY, 2020, 5 (03) : 184 - 192