RedJsod: A Readable JavaScript Obfuscation Detector Using Semantic-based Analysis
Ismail Adel AL-Taharwa, Hahn-Ming Lee, Albert B. Jeng et al. · IEEE International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom) · 2012
JavaScript allows Web-developers to hide intention behind their code inside different looking scripts known as Obfuscated code. Automatic detection of obfuscated code is generally tackled from readability perspective. However, recently obfuscation exhibits patterns that modify both syntax and semantic characteristics while preserving readability characteristic. There are two problems in dealing with readable obfuscation: 1. Difficulty in locating it since it does not manipulate suspicious strings. 2. It is a common and essential practice adopted in both benign codes and malicious codes. In this work, we first investigate why and how readable obfuscation can hinder detection of maliciousness and prevent the static analysis of suspicious scripts. Next, we propose a readable JavaScript obfuscation detector (RedJsod) system to deal with this type of threat. RedJsod is a well defined detector based on variable length context-based feature extraction (VCLFE) scheme that takes advantages of abstract syntax tree (AST) representation of a given JavaScript code to infer run-time behaviors statically. We applied RedJsod to three datasets collected from real world Web-pages to evaluate its effectiveness. Also, we tested RedJsod on well-known readable obfuscation samples cited in related works as a proof of concept illustration. Our experimental results indicated that RedJsod achieved very high detection rates (greater than 97%) in terms of accuracy, eliminated false negatives completely, while at the same time yielded very few false positives.
Cited by 7 works. doi:10.1109/trustcom.2012.235
Authors
References
- Outside the Closed World: On Using Machine Learning for Network Intrusion Detection
- Detection and analysis of drive-by-download attacks and malicious JavaScript code
- Prophiler
- Large-scale malware indexing using function-call graphs
- Obfuscated malicious javascript detection using classification techniques
- Rozzle: De-cloaking Internet Malware
- Data mining and machine learning—Towards reducing false positives in intrusion detection
- A taxonomy of JavaScript redirection spam
- Zozzle: Low-overhead Mostly Static JavaScript Malware Detection
- "NOFUS: Automatically Detecting" + String.fromCharCode(32) + "ObFuSCateD ".toLowerCase() + "JavaScript Code"