DefinePK hosts the largest index of Pakistani journals, research articles, news headlines, and videos. It also offers chapter-level book search.
Title: A Malicious JavaScript Code Detection using Deep Learning Approach on Imbalanced Dataset
Authors: Amna Aftab, Gohar Rehman, Asif Kabir, Jawad ur Rehman, Syed Mushhad Gilani
Journal: KIET Journal of Computing & Information Sciences
Publisher: Karachi Institute of Economics & Technology Karachi
Country: Pakistan
Year: 2025
Volume: 8
Issue: 1
Language: en
Keywords: Deep learningClass ImbalanceGPT-2
A web application refers to a software or computer program that makes use of a web browser. In the present day, the categorization of JavaScript-based attacks has significant importance, primarily driven by the substantial increase in the number of Internet users. JavaScript is a crucial component in the field of web development, serving as a major instrument for hackers to initiate attacks. When the presence of malicious JavaScript is identified within Web sites, the rate of detection is seen to rise while the rates of false-negative and false-positive outcomes are observed to decrease. Most of the existing work validates their approaches using balanced datasets which can not be generalized to real-world scenarios. In this paper,  we employed GPT-2 as data augmentation technique to address the class imbalance problem. The resultant balanced dataset is then utilized as input for the DOC2Vec algorithm, which facilitates the process of vectorization. The resulting features are then fed into an attention-based Bi-LSTM model. The results demonstrate that the proposed model achieves superior performance in terms of recall and f1-score, with values of 0.74% and 0.50% respectively
Loading PDF...
Loading Statistics...