arrow
Return

JStrong: Malicious JavaScript detection based on code semantic representation and graph neural network

delete2022-07-01
delete12
PRE
AI
方
方勇 (Yong Fang)
C
Chaoyi Huang
M
Minchuan Zeng
Z
Zhiying Zhao
C
Cheng Huang *
DOI:10.1016/j.cose.2022.102715delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Web development technology has experienced significant progress. The creation of JavaScript has highly enriched the interactive ability of the client. However, the attacker uses the dynamic characteristics of the JavaScript language to embed malicious code into web pages to achieve the purpose of smuggling, redirection, and so on. Traditional methods based on static feature detection are therefore difficult to detect malicious code after confusion, and the method based on dynamic analysis is inefficient. To meet these challenges, this paper proposes a static detection model JStrong based on graph neural network. The model first generates an abstract syntax tree from the JavaScript source code, and then adds data flow and control flow information into the program dependency graph. In addition, we embed the nodes and edges of the graph into the feature vector and fully learn the features of the whole graph through the graph neural network. We take advantage of a real-world dataset collected from the top website and GitHub to evaluate JStrong and compare it to the state-of-the-art method. Experimental results show that JStrong achieves near-perfect classification performance and is superior to the state-of-the-art method.(c) 2022 Elsevier Ltd. All rights reserved.
Keywords:
Malicious JavaScript
Code representation
Graph neural network
Program dependency graph
Scripts detection

Journal

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

Organization

S
sichuan university
Scholars:
12.1W
Papers: 7.8W
Citations: 100
Cited Papers

Cited Papers

Late Bronze Age climate change and the destruction of the Mycenaean Palace of Nestor at Pylos
err2017-12-27
err0
errOAAI
errMartin Finné; Karin Holmgren; Chuan-Chou Shen; Hsun-Ming Hu; Meighan Boyd; Sharon Stocker
errShare
errSave
JSContana: Malicious JavaScript detection using adaptable context analysis and key feature extraction
err2021-05-01
err21
PREAI
errHuang, Yunhua; Li, Tao; Zhang, Lijia; Li, Beibei; Liu, Xiaojie
errShare
errSave
errShare
errSave
Detecting malicious JavaScript code based on semantic analysis
err2020-06-01
err22
PREAI
errFang, Yong; Huang, Cheng; Su, Yu; Qiu, Yaoyao
errShare
errSave
Combining Graph-Based Learning With Automated Data Collection for Code Vulnerability Detection
err2021-01-01
err166
errOAAI
errWang, Huanting; Ye, Guixin; Tang, Zhanyong; Tan, Shin Hwei; Huang, Songfang; Fang, Dingyi; Feng, Yansong; Bian, Lizhong; Wang, Zheng
errShare
errSave
no more