Proceedings

MiniMal: Hard-Label Adversarial Attack Against Static Malware Detection with Minimal Perturbation

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 5589-5597.

https://doi.org/10.24963/ijcai.2025/622

Abstract

Static malware detectors based on machine learning are integral to contemporary antivirus systems, but they are vulnerable to adversarial attacks. While existing research has demonstrated success with adversarial attacks in black-box hard-label scenarios, challenges such as high perturbation rates and incomplete retention of functional integrity remain. To address these issues, we propose a novel black-box hard-label attack method, MiniMal. MiniMal begins with initialized adversarial examples and utilizes binary search and particle swarm optimization algorithms to streamline the perturbation content, significantly reducing the perturbation rate of the adversarial examples. Furthermore, we propose a functionality verification method grounded in file format parsing and control flow graph comparisons to ensure the functional integrity of the adversarial examples. Experimental results indicate that MiniMal achieves an attack success rate of over 98% against three leading machine learning detectors, improving performance by approximately 4.8% to 7.1% compared to state-of-the-art methods. MiniMal reduces perturbation rates to below 40%, making them 9 to 11 times lower than those of previous methods. Additionally, functional verification via Cuckoo Sandbox revealed that the adversarial examples generated by MiniMal retained 100% functional integrity, even with various modifications applied.

  1. [Anderson and Roth, 2018] Hyrum S Anderson and Phil Roth. Ember: an open dataset for training static pe malware machine learning models. arXiv preprint arXiv:1804.04637, 2018.
  2. [Anderson et al., 2018] Hyrum S Anderson, Anant Kharkar, Bobby Filar, David Evans, and Phil Roth. Learning to evade static pe machine learning malware models via re- inforcement learning. arXiv preprint arXiv:1801.08917, 2018.
  3. [Anderson, 2019] Hyrum Anderson. Machine learning static evasion competition., 2019.
  4. [AV-TEST, 2024a] AV-TEST. The best windows antivirus software for home users, 2024.
  5. [AV-TEST, 2024b] AV-TEST. Distribution of malware and pua by operating system, 2024.
  6. [Chen et al., 2023a] Xiaohui Chen, Lei Cui, Hui Wen, Zhi Li, Hongsong Zhu, Zhiyu Hao, and Limin Sun. Malader: Decision-based black-box attack against api sequence based malware detectors. In 2023 53rd Annual IEEE/IFIP International Conference on Dependable Systems and Net- works (DSN), pages 165-178. IEEE, 2023.
  7. [Chen et al., 2023b] Zihan Chen, Ziyue Wang, Jun-Jie Huang, Wentao Zhao, Xiao Liu, and Dejian Guan. Imper- ceptible adversarial attack via invertible neural networks. In Proceedings of the AAAI Conference on Artificial Intel- ligence, volume 37, pages 414-424, 2023.
  8. [Cheng et al., 2018] Minhao Cheng, Thong Le, Pin-Yu Chen, Jinfeng Yi, Huan Zhang, and Cho-Jui Hsieh. Query- efficient hard-label black-box attack: An optimization- based approach. arXiv preprint arXiv:1807.04457, 2018.
  9. [ClamAV, 2024] ClamAV. Clamav is an open-source an- tivirus engine for detecting trojans, viruses, malware other malicious threats., aug 2024. [Cuckoo, 2024] Cuckoo. Cuckoo sandbox., 2024.
  10. [Demetrio et al., 2021] Luca Demetrio, Battista Biggio, Gio- vanni Lagorio, Fabio Roli, and Alessandro Armando. Functionality-preserving black-box optimization of adver- sarial windows malware. IEEE Transactions on Informa- tion Forensics and Security, 16:3469-3478, 2021.
  11. [Etter et al., 2023] Brian Etter, James Lee Hu, Moham- madreza Ebrahimi, Weifeng Li, Xin Li, and Hsinchun Chen. Evading deep learning-based malware detectors via obfuscation: A deep reinforcement learning approach. In 2023 IEEE International Conference on Data Mining (ICDM), pages 101-109. IEEE, 2023.
  12. [Gibert et al., 2023] Daniel Gibert, Jordi Planes, Quan Le, and Giulio Zizzo. A wolf in sheep's clothing: Query- free evasion attacks against machine learning-based mal- ware detectors with generative adversarial networks. In 2023 IEEE European Symposium on Security and Privacy Workshops (EuroS&PW), pages 415-426. IEEE, 2023.
  13. [Goodfellow et al., 2014] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
  14. [Group, 2024] The PHP Group. Php: Description of core php.ini directives., 2024.
  15. [He et al., 2024] Shuai He, Cai Fu, Hong Hu, Jiahe Chen, Jianqiang Lv, and Shuai Jiang. Malwaretotal: Multi- faceted and sequence-aware bypass tactics against static malware detection. In Proceedings of the IEEE/ACM 46th International Conference on Software Engineering, pages 1-12, 2024.
  16. [Hu and Tan, 2022] Weiwei Hu and Ying Tan. Generating adversarial malware examples for black-box attacks based on gan. In International Conference on Data Mining and Big Data, pages 409-423. Springer, 2022.
  17. [Kennedy and Eberhart, 1995] James Kennedy and Russell Eberhart. Particle swarm optimization. In Proceedings of ICNN'95-international conference on neural networks, volume 4, pages 1942-1948. ieee, 1995.
  18. [Ling et al., 2023] Xiang Ling, Lingfei Wu, Jiangyu Zhang, Zhenqing Qu, Wei Deng, Xiang Chen, Yaguan Qian, Chunming Wu, Shouling Ji, Tianyue Luo, et al. Ad- versarial attacks against windows pe malware detection: A survey of the state-of-the-art. Computers & Security, 128:103134, 2023.
  19. [Ling et al., 2024] Xiang Ling, Zhiyu Wu, Bin Wang, Wei Deng, Jingzheng Wu, Shouling Ji, Tianyue Luo, and Yan- jun Wu. A wolf in sheep's clothing: practical black-box adversarial attacks for evading learning-based windows malware detection in the wild. In 33rd USENIX Secu- rity Symposium (USENIX Security 24), pages 7393-7410, 2024.
  20. [Lipowski and Lipowska, 2012] Adam Lipowski and Dorota Lipowska. Roulette-wheel selection via stochastic accep- tance. Physica A: Statistical Mechanics and its Applica- tions, 391(6):2193-2196, 2012.
  21. [MalwareBazaar, 2024] MalwareBazaar. Malwarebazaar is a project from abuse.ch with the goal of sharing malware samples with the infosec community, av vendors and threat intelligence providers., 2024.
  22. [Peng et al., 2023] Hao Peng, Shixin Guo, Dandan Zhao, Xuhong Zhang, Jianmin Han, Shouling Ji, Xing Yang, and Ming Zhong. Textcheater: A query-efficient textual adver- sarial attack in the hard-label setting. IEEE Transactions on Dependable and Secure Computing, 2023.
  23. [Raff et al., 2018] Edward Raff, Jon Barker, Jared Sylvester, Robert Brandon, Bryan Catanzaro, and Charles K Nicholas. Malware detection by eating a whole exe. In Workshops at the thirty-second AAAI conference on artifi- cial intelligence, 2018.
  24. [Raff et al., 2021a] Edward Raff, William Fleshman, Richard Zak, Hyrum Anderson, Bobby Filar, and Mark Mclean. Classifying Sequences of Extreme Length with Constant Memory Applied to Malware Detection. In The Thirty-Fifth AAAI Conference on Artificial Intelligence, 2021.
  25. [Raff et al., 2021b] Edward Raff, William Fleshman, Richard Zak, Hyrum S Anderson, Bobby Filar, and Mark McLean. Classifying sequences of extreme length with constant memory applied to malware detection. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 9386-9394, 2021.
  26. [Song et al., 2022] Wei Song, Xuezixiang Li, Sadia Afroz, Deepali Garg, Dmitry Kuznetsov, and Heng Yin. Mab- malware: A reinforcement learning framework for black- box generation of adversarial malware. In Proceedings of the 2022 ACM on Asia conference on computer and com- munications security, pages 990-1003, 2022.
  27. [Suciu et al., 2019] Octavian Suciu, Scott E Coull, and Jef- frey Johns. Exploring adversarial examples in malware detection. In 2019 IEEE Security and Privacy Workshops (SPW), pages 8-14. IEEE, 2019.
  28. [Tian et al., 2024] Buwei Tian, Junyong Jiang, Zichen He, Xin Yuan, Lu Dong, and Changyin Sun. Functionality- verification attack framework based on reinforcement learning against static malware detectors. IEEE Transac- tions on Information Forensics and Security, 2024.
  29. [Tuan et al., 2018] Anh Pham Tuan, An Tran Hung Phuong, Nguyen Vu Thanh, and Toan Nguyen Van. Malware De- tection PE-Based Analysis Using Deep Learning Algo- rithm Dataset. 6 2018. [UPX, 2024] UPX. Upx is a free, secure, portable, extend- able, high-performance executable packer for several exe- cutable formats., 2024.
  30. [Wang et al., 2022] Fangwei Wang, Yuanyuan Lu, Qin- gru Li, Changguang Wang, and Yonglei Bai. A co- evolutionary algorithm-based malware adversarial sample generation method. In 2022 IEEE Conference on De- pendable and Secure Computing (DSC), pages 1-8. IEEE, 2022.
  31. [Yuan et al., 2020] Junkun Yuan, Shaofang Zhou, Lanfen Lin, Feng Wang, and Jia Cui. Black-box adversarial at- tacks against deep learning based malware binaries detec- tion with gan. In ECAI 2020, pages 2536-2542. IOS Press, 2020.
  32. [Yuan et al., 2024] He Yuan, Xue Bo, Zhang Lina, and Lu Chengyang. A control flow graph optimization method for enhancing fuzz testing. IEEE Access, 2024.
  33. [Yuste et al., 2022] Javier Yuste, Eduardo G Pardo, and Juan Tapiador. Optimization of code caves in malware binaries to evade machine learning detectors. Computers & Secu- rity, 116:102643, 2022.
  34. [Zhan et al., 2023a] Dazhi Zhan, Wei Bai, Xin Liu, Yue Hu, Lei Zhang, Shize Guo, and Zhisong Pan. Psp-mal: Evad- ing malware detection via prioritized experience-based re- inforcement learning with shapley prior. In Proceedings of the 39th Annual Computer Security Applications Confer- ence, pages 580-593, 2023.
  35. [Zhan et al., 2023b] Dazhi Zhan, Yexin Duan, Yue Hu, Weili Li, Shize Guo, and Zhisong Pan. Malpatch: Evading dnn-based malware detection with adversarial patches. IEEE Transactions on Information Forensics and Security, 19:1183-1198, 2023.
  36. [Zhan et al., 2023c] Dazhi Zhan, Yexin Duan, Yue Hu, Lu- jia Yin, Zhisong Pan, and Shize Guo. Amgmal: Adap- tive mask-guided adversarial attack against malware de- tection with minimal perturbation. Computers & Security, 127:103103, 2023.
  37. [Zhu et al., 2024] Hai Zhu, Qingyang Zhao, Weiwei Shang, Yuren Wu, and Kai Liu. Limeattack: Local explainable method for textual hard-label adversarial attack. In Pro- ceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 19759-19767, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards