arrow
Return

Detecting malicious JavaScript code based on semantic analysis

delete2020-06-01
delete22
PRE
AI
方
方勇 (Yong Fang)
C
Cheng Huang *
Y
Yu Su
Y
Yaoyao Qiu
DOI:10.1016/j.cose.2020.101764delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Web development technology has undergone tremendous evolution, the creation of JavaScript has greatly enriched the interactive capabilities of the client. However, attackers use the dynamics feature of JavaScript language to embed malicious code into web pages for the purpose of drive-by-download, redirection, etc. The traditional method based on static feature detection is difficult to detect the malicious code after obfuscation, and the method based on dynamic analysis has low efficiency. To overcome these challenges, this paper proposes a static detection model based on semantic analysis. The model firstly generates an abstract syntax tree from JavaScript source codes, then automatically converts them to syntactic unit sequences. FastText algorithm is introduced to training word vectors. The syntactic unit sequences are represented as word vectors which will be input into Bi-LSTM network with attention mechanism. The detection model with Bi-LSTM network with attention mechanism is the key to detect malicious JavaScript. We experimented with the dataset using a five-fold cross-validation method. Experiments showed that the model can effectively detect obfuscated malicious JavaScript code and improve the detection speed, with a precision of 0.977 and recall of 0.974. (C) 2020 Elsevier Ltd. All rights reserved.
Keywords:
Malicious JavaScript detection
Abstract syntax tree
Attention mechanism
Static analysis
Bi-LSTM
FastText
Detecting Malicious JavaScript Using Structure-Based Analysis of Graph Representation
err2023-01-01
err3
errOAAI
errRozi, Muhammad Fakhrur; Ban, Tao; Ozawa, Seiichi; Yamada, Akira; Takahashi, Takeshi; Kim, Sangwook; Inoue, Daisuke
errShare
errSave
Research on Malicious JavaScript Detection Technology Based on LSTM
err2018-01-01
err27
errOAAI
errFang, Yong; Huang, Cheng; Liu, Liang; Xue, Min
errShare
errSave
JStrong: Malicious JavaScript detection based on code semantic representation and graph neural network
err2022-07-01
err12
PREAI
errFang, Yong; Huang, Chaoyi; Zeng, Minchuan; Zhao, Zhiying; Huang, Cheng
errShare
errSave
A machine learning approach to detection of JavaScript-based attacks using AST features and paragraph vectors
err2019-11-01
err44
errOAAI
errNdichu, Samuel; Kim, Sangwook; Ozawa, Seiichi; Misu, Takeshi; Makishima, Kazuo
errShare
errSave
Detection of malicious javascript on an imbalanced dataset
err2021-03-01
err16
PREAI
errPhung, Ngoc Minh; Mimura, Mamoru
errShare
errSave
Toward Reliable Malicious JavaScript Detection in Obfuscated Code
err2026-07-17
err0
PREAI
errXiaowei Guo; Xiaofan Liu; Chuanhao Wan; Shuai He; Shuai Jiang; Cai Fu
errShare
errSave
errShare
errSave
ZipAST: Enhancing malicious JavaScript detection with sequence compression
err2025-06-01
err0
PREAI
errChen, Zixian; Wang, Weiping; Qin, Yan; Zhang, Shigeng
errShare
errSave

Journal

C
Computers and Security
IF:
5.4
Papers:
4.6K
Citations:
1.8W

Organization

Sichuan University cover
Sichuan University
Scholars:
1.2W
Papers: 2.9K
Citations: 5.6W
Cited Papers

Cited Papers

Heterocyclic chelating agents. Part I. Metal complexes of 4-2′-pyridylimidazole
err1967-01-01
err0
PREAI
errW. J. Eilbeck; F. Holmes; G. G. Phillips; A. E. Underhill
errShare
errSave
errShare
errSave
Bromination of 2-phenyl-1,2,3,4-tetrahydroquinolines
err2015-06-26
err0
PREAI
errM. N. Zemtsova; S. V. Kulemina; V. B. Rybakov; Yu. N. Klimochkin
errShare
errSave
A survey of detection methods for XSS attacks
err2018-09-01
err45
PREAI
errSarmah, Upasana; Bhattacharyya, D. K.; Kalita, J. K.
errShare
errSave
Exploring Permission-Induced Risk in Android Applications for Malicious Application Detection
err2014-11-01
err272
PREAI
errWang, Wei; Wang, Xing; Feng, Dawei; Liu, Jiqiang; Han, Zhen; Zhang, Xiangliang
errShare
errSave
errShare
errSave
researcher View more