Malicious Java']JavaScript Code Detection Based on Hybrid Analysis

被引:15
|
作者
He, Xincheng [1 ,2 ]
Xu, Lei [1 ,2 ]
Cha, Chunliu [1 ,2 ]
机构
[1] Nanjing Univ, Dept Comp Sci & Technol, Nanjing, Jiangsu, Peoples R China
[2] Nanjing Univ, State Key Lab Novel Software Technol, Nanjing, Jiangsu, Peoples R China
基金
中国国家自然科学基金;
关键词
Malicious Code Detection; Hybrid Analysis; Machine Learning; De-obfuscation; OBFUSCATION;
D O I
10.1109/APSEC.2018.00051
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
JavaScript plays an important role in web applications and services, which is used by millions of web pages in optimizing interface design, embedding dynamic texts, reading and writing HTML elements, validating form data, responding to browser events, controlling cookies and much more. However, since JavaScript is cross-platform and can be executed dynamically, it has been a major vehicle for web-based attacks. Existing solutions work by performing static analysis or monitoring program execution dynamically. However, since the heavy use of obfuscation techniques, many methods no longer apply to malicious JavaScript code detection, and it has been a huge challenge to de-obfuscate obfuscated malicious JavaScript code accurately. In this paper, we propose a hybrid analysis method combining static and dynamic analysis for detecting malicious JavaScript code that works by first conducting syntax analysis and dynamic instrumentation to extract internal features that are related to malicious code and then performing classification-based detection to distinguish attacks. In addition, based on code instrumentation, we propose a new method which can de-obfuscate part of obfuscated malicious JavaScript code accurately. Ultimately, we implement a browser plug-in called MJDetector and perform evaluation on 450 real web pages. Evaluation results show that our method can detect malicious JavaScript code and de-obfuscate obfucation effectively and efficiently. Specifically, MJDetector can detect JavaScipt attacks in current web pages with high accuracy 94.76% and de-obfuscate obfuscate code of specific types with accuracy 100% whereas the base line method can only detect with accuracy 81.16% and has no capacity of de-obfuscation.
引用
收藏
页码:365 / 374
页数:10
相关论文
共 50 条
  • [21] Malicious PDF Files Detection Using Structural and Java']Javascript Based Features
    Dabral, Sonal
    Agarwal, Amit
    Mahajan, Manish
    Kumar, Sachin
    [J]. INFORMATION, COMMUNICATION AND COMPUTING TECHNOLOGY, 2017, 750 : 137 - 147
  • [22] Obfuscated Malicious Java']Javascript Detection using Classification Techniques
    Likarish, Peter
    Jung, Eunjin E. J.
    Jo, Insoon
    [J]. 2009 4TH INTERNATIONAL CONFERENCE ON MALICIOUS AND UNWANTED SOFTWARE (MALWARE 2009), 2009, : 47 - +
  • [23] Improving Detection Accuracy for Malicious Java']JavaScript Using GAN
    Guo, Junxia
    Cao, Qiyun
    Zhao, Rilian
    Li, Zheng
    [J]. WEB ENGINEERING, ICWE 2020, 2020, 12128 : 163 - 170
  • [24] JAST: Fully Syntactic Detection of Malicious (Obfuscated) Java']JavaScript
    Fass, Aurore
    Krawczyk, Robert P.
    Backes, Michael
    Stock, Ben
    [J]. DETECTION OF INTRUSIONS AND MALWARE, AND VULNERABILITY ASSESSMENT, DIMVA 2018, 2018, 10885 : 303 - 325
  • [25] TransAST: A Machine Translation-Based Approach for Obfuscated Malicious Java']JavaScript Detection
    Qin, Yan
    Wang, Weiping
    Chen, Zixian
    Song, Hong
    Zhang, Shigeng
    [J]. 2023 53RD ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS, DSN, 2023, : 327 - 338
  • [26] Obfuscated Malicious Java']JavaScript Detection Scheme Using the Feature Based on Divided URL
    Morishige, Shoya
    Haruta, Shuichiro
    Asahina, Hiromu
    Sasase, Iwao
    [J]. 2017 23RD ASIA-PACIFIC CONFERENCE ON COMMUNICATIONS (APCC): BRIDGING THE METROPOLITAN AND THE REMOTE, 2017, : 518 - 523
  • [27] Static Code Analysis and Detection of Multiple Malicious Java']Java Applets using SVM
    Salunkhe, Sapana Y.
    Pattewar, Tareek M.
    [J]. 2015 International Conference on Green Computing and Internet of Things (ICGCIoT), 2015, : 1538 - 1542
  • [28] On improvements of robustness of obfuscated Java']JavaScript code detection
    Ponomarenko, G. S.
    Klyucharev, P. G.
    [J]. JOURNAL OF COMPUTER VIROLOGY AND HACKING TECHNIQUES, 2023, 19 (03) : 387 - 398
  • [29] Static Detection of Malicious Java']JavaScript-Bearing PDF Documents
    Laskov, Pavel
    Srndic, Nedim
    [J]. 27TH ANNUAL COMPUTER SECURITY APPLICATIONS CONFERENCE (ACSAC 2011), 2011, : 373 - 382
  • [30] Detection and Mitigation Of Malicious Java']JavaScript Using Information Flow Control
    Sayed, Bassam
    Traore, Issa
    Abdelhalim, Amany
    [J]. 2014 TWELFTH ANNUAL INTERNATIONAL CONFERENCE ON PRIVACY, SECURITY AND TRUST (PST), 2014, : 264 - 273