JOURNAL ARTICLE

Detection Approach of Malicious JavaScript Code Based on deep learning

Abstract

Traditional machine learning methods for detecting JavaScript malicious code have the problems of complex feature extraction process, extensive computation, and difficult detection due to malicious code confusion, which are not conducive to the current requirements of JavaScript malicious code detection accuracy and real-time. This paper proposes a bi-directional long and short-time neural network (BiLSTM) based on an attention mechanism for JavaScript malicious code detection. Firstly, the obtained sample data will be deconfused, disambiguated, and vectorized to obtain the normalized data adapted to the neural network input. Second, the proposed algorithm is used to train the vectorized data and learn the abstract features of the JavaScript malicious code. Finally, the learned features are used to classify the code. The method is compared with deep learning methods and mainstream machine learning methods, and the results show that the method has a high accuracy and low false alarm rate.

Keywords:
Computer science JavaScript Code (set theory) Artificial intelligence Artificial neural network Machine learning Deep learning Convolutional neural network Feature extraction Programming language

Metrics

3
Cited By
0.81
FWCI (Field Weighted Citation Impact)
22
Refs
0.66
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Advanced Malware Detection Techniques
Physical Sciences →  Computer Science →  Signal Processing
Spam and Phishing Detection
Physical Sciences →  Computer Science →  Information Systems
Network Security and Intrusion Detection
Physical Sciences →  Computer Science →  Computer Networks and Communications

Related Documents

JOURNAL ARTICLE

A deep learning approach for detecting malicious JavaScript code

Yao WangWandong CaiPengcheng Wei

Journal:   Security and Communication Networks Year: 2016 Vol: 9 (11)Pages: 1520-1534
JOURNAL ARTICLE

Detection of Obfuscated Malicious JavaScript Code

Ammar AlazabAnsam KhraisatMoutaz AlazabSarabjot Singh

Journal:   Future Internet Year: 2022 Vol: 14 (8)Pages: 217-217
BOOK-CHAPTER

A Graph Learning Approach for Malicious Javascript Detection

Ngoc C. LêD. QuachTien-Manh NguyenChau NguyenSon Hong Nguyen

Lecture notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering Year: 2025 Pages: 233-245
© 2026 ScienceGate Book Chapters — All rights reserved.