DefinePK

DefinePK hosts the largest index of Pakistani journals, research articles, news headlines, and videos. It also offers chapter-level book search.

A Malicious JavaScript Code Detection using Deep Learning Approach on Imbalanced Dataset


Article Information

View Article

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

HEC Recognition History
Category From To
Y 2023-07-01 2024-09-30
Y 2021-07-01 2022-06-30
Y 2020-07-01 2021-06-30

Publisher: Karachi Institute of Economics & Technology Karachi

Country: Pakistan

Year: 2025

Volume: 8

Issue: 1

Language: en

DOI: 10.51153/kjcis.v8i1.245

Keywords: Deep learningClass ImbalanceGPT-2

Categories

Abstract

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


Paper summary is not available for this article yet.

Loading PDF...

Loading Statistics...