JSMBox—A Runtime Monitoring Framework for Analyzing and Classifying Malicious JavaScript


연구 분야: Strategies



학회: International Conference on Software Engineering and Data Engineering


초록

In recent years, there has been a notable increase in the prevalence of malicious websites, leading to a majority of cyber-attacks and data breaches. Malicious websites often incorporate JavaScript code to execute attacks on web browsers. Despite existing methodologies documented in the literature, the analysis and detection of malicious JavaScript pose significant challenges due to the dynamic nature of JavaScript and the use of advanced evasion techniques. These challenges motivate the need for an innovative and efficient approach to comprehensively analyze the code to identify its malicious intent. In this paper, we introduce a monitoring approach for analyzing JavaScript code, which can capture all of the code’s features at runtime. Our method leverages the security reference monitor technique to mediate JavaScript security-sensitive executions, including function calls and property accesses. Therefore, the proposed method can capture behaviors at runtime regardless of how the code is written, even with recent advanced evasion techniques like WebAssembly diversification. We have implemented our approach as a JavaScript dynamic analysis framework called JSMBox in a Chromium-based browser extension. Our experiments demonstrated that JSMBox is capable of effectively countering sophisticated evasion techniques found in modern malicious JavaScript code, including WebAssembly diversification. We have also evaluated the framework’s ability to classify malicious behaviors based on a large-scale raw dataset comprising about 20,000 malicious and benign webpages. Our developed tool automatically launches the browser to execute these webpages, records JavaScript code execution events, and captures their execution frequency as extracted features. We have tested the extracted dataset with various machine-learning models, yielding promising experimental results that confirm the effectiveness of our approach and achieve a high accuracy rate.


Author Profile
Phu H. Phung

Intelligent Systems Security Lab Department of Computer Science University of Dayton 300 College Park Ave Dayton OH 45469 USA

United States
Author Profile
Allen Varghese

Intelligent Systems Security Lab Department of Computer Science University of Dayton 300 College Park Ave Dayton OH 45469 USA

United States
Author Profile
Bojue Wang

Department of Computer Science University of Cincinnati 2901 Woodside Drive Cincinnati OH 45221 USA

United States

📄 논문 정보

발행 연도 2024년
인용수 0
출판 국가 United States
사이트 Springer
좋아요 수 0

연관 논문 목록 (150건)