Malicious PDF Detection Model against Adversarial Attack Built from Benign PDF Containing JavaScript
Source abstract
Abstract
Intelligent attacks using document-based malware that exploit vulnerabilities in document viewing software programs or document file structure are increasing rapidly. There are many cases of using PDF (portable document format) in proportion to its usage. We provide in-depth analysis on PDF structure and JavaScript content embedded in PDFs. Then, we develop the diverse feature set encompassing the structure and metadata such as file size, version, encoding method and keywords, and the content features such as object names, keywords, and readable strings in JavaScript. When features are diverse, it is hard to develop adversarial examples because small changes are robust for machine-learning algorithms. We develop a detection model using black-box type models with the structure and content features to minimize the risk of adversarial attacks. To validate the proposed model, we design the adversarial attack. We collect benign documents containing multiple JavaScript codes for the base of adversarial samples. We build the adversarial samples by injecting the malware codes into base samples. The proposed model is evaluated against a large collection of malicious and benign PDFs. We found that random forest, an ensemble algorithm of a decision tree, exhibits a good performance on malware detection and is robust for adversarial samples.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Malware Detection Techniques · Adversarial Robustness in Machine Learning · Security and Verification in Computing
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
SCH Media Labs, Soonchunhyang University, Asan 31538, Korea
Korea Internet Security Center, Korea Internet & Security Agency (KISA), Seoul 05717, Korea
Funding
Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) · Soonchunhyang University Research Fund
References (21)
Show source-provided references
1. Smutz, C., and Stavrou, A. (2012, January 3–7). Malicious PDF detection using metadata and structural features. Proceedings of the 28th Annual Computer Security Applications Conference, Orlando, FL, USA.10.1145/2420950.2420987 ↗
2. Šrndic, N., and Laskov, P. (2013, January 24–27). Detection of malicious pdf files based on hierarchical document structure. Proceedings of the 20th Annual Network & Distributed System Security Symposium, San Diego, CA, USA.
3. Corona, I., Maiorca, D., Ariu, D., and Giacinto, G. (2014, January 7). Lux0r: Detection of malicious pdf-embedded javascript code through discriminant analysis of api references. Proceedings of the 2014 Workshop on Artificial Intelligent and Security Workshop, Scottsdale, AZ, USA.10.1145/2666652.2666657 ↗
4. Laskov, P., and Šrndić, N. (2011, January 5–9). Static detection of malicious JavaScript-bearing PDF documents. Proceedings of the 27th Annual Computer Security Applications Conference, Orlando, FL, USA.10.1145/2076732.2076785 ↗
5. Li, M., Liu, Y., Yu, M., Li, G., Wang, Y., and Liu, C. (2017, January 1–4). FEPDF: A Robust Feature Extractor for Malicious PDF Detection. Proceedings of the 2017 IEEE Trustcom/BigDataSE/ICESS, Sydney, Australia.10.1109/Trustcom/BigDataSE/ICESS.2017.240 ↗
6. Papernot, N., McDaniel, P., and Goodfellow, I. (2016). Transferability in machine learning: from phenomena to black-box attacks using adversarial samples. arXiv.
7. Shumailov, I., Zhao, Y., Mullins, R., and Anderson, R. (2018). The Taboo Trap: Behavioural Detection of Adversarial Samples. arXiv.
8. Lu, J., Issaranon, T., and Forsyth, D. (2017, January 22–29). Safetynet: Detecting and rejecting adversarial examples robustly. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.56 ↗
9. Grosse, K., Manoharan, P., Papernot, N., Backes, M., and McDaniel, P. (2017). On the (statistical) detection of adversarial examples. arXiv.
10. Maiorca, D., Corona, I., and Giacinto, G. (2013, January 7–10). Looking at the bag is not enough to find the bomb: an evasion of structural methods for malicious pdf files detection. Proceedings of the 8th ACM SIGSAC Symposium on Information, Computer and Communications Security (ACM), Hangzhou, China.10.1145/2484313.2484327 ↗
11. Huang, L., Joseph, A.D., Nelson, B., Rubinstein, B.I., and Tygar, J.D. (2011, January 21). Adversarial machine learning. Proceedings of the 4th ACM workshop on Security and Artificial Intelligence, Chicago, IL, USA.10.1145/2046684.2046692 ↗
12. Mila, P. (2019, June 05). Contagio Malware Dump. Available online: http://contagiodump.blogspot.com.
13. Hu, W., and Tan, Y. (2017). Generating adversarial malware examples for black-box attacks based on GAN. arXiv.
14. Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. (2014, January 8–13). Generative adversarial nets. Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada.
15. A taxonomy and survey of attacks against machine learning10.1016/j.cosrev.2019.100199 ↗
16. Reddy, R.R., Kavya, B., and Ramadevi, Y. (2014). A survey on svm classifiers for intrusion detection. Int. J. Comput. Appl., 98.10.5120/17294-7779 ↗
17. Atoum, PDF Forensic Analysis system using YARA
18. Bienz, T., Cohn, R., and Adobe Systems (Mountain View, Calif.) (1993). Portable Document Format Reference Manual, Addison-Wesley. Citeseer.
19. Kittilsen, J. (2011). Detecting Malicious PDF Documents. [Master’s Thesis, Gjøvik University College].
20. Blonce, A., Filiol, E., and Frayssignes, L. (2008, January 28). Frayssignes. Portable document format (pdf) security analysis and malware threats. Proceedings of the Presentations of Europe BlackHat 2008 Conference, Amsterdam, The Netherlands.
21. (2019, October 28). JavaScript Official Website. Available online: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types.