Proceedings

GRASP: Hard-Label Black-Box Malware Evasion with Higher Success, Fewer Queries, and Smaller Perturbations

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 4590-4598.

https://doi.org/10.24963/ijcai.2026/511

Abstract

Machine learning (ML)-based malware detectors are widely deployed but remain vulnerable to adversarial attacks. However, under hard-label black-box access, existing adversarial attacks on Windows Portable Executable (PE) malware are often query-inefficient and incur large file-size inflation. A common paradigm is to predefine a set of semantics-preserving atomic perturbations and search for evasive combinations under only binary feedback. Among these atomic perturbations, (i) those with highly combinatorial search spaces are difficult to explore effectively under hard-label feedback, leaving their potential untapped, and (ii) those relying on transplanting benign fragments are often laden with evasion-irrelevant bytes and exhibit highly variable adversarial utility. We propose Gradient-seeded Reinforcement Learning And Stealthy Pruning (GRASP), a three-stage framework that tackles these challenges. First, we decouple perturbations with highly combinatorial search spaces from the query-based search and instead apply a gradient-seeded warm-up that uses Gumbel-Softmax relaxation to enable gradient-based updates over the discrete space. This yields a strong warm start that improves evasion and reduces queries in later stages. Second, Reinforcement Learning (RL)-based refinement is accelerated by a perturbation library that filters, caches, and reuses compact high-utility patterns, reducing wasted queries on low-utility benign fragments. Third, a perturbation minimization stage removes redundant bytes while preserving evasion, reducing size inflation and feeding compact patterns back to the library. Experiments show that GRASP outperforms baselines, achieving higher attack success with fewer queries and smaller file-size inflation. We additionally demonstrate its practical effectiveness against commercial Antivirus engines.

  1. [Anderson and Roth, 2018] Hyrum S. Anderson and Phil Roth. EMBER: an open dataset for training static PE mal- ware machine learning models. CoRR, abs/1804.04637, 2018.
  2. [Aonzo et al., 2023] Simone Aonzo, Yufei Han, Alessandro Mantovani, and Davide Balzarotti. Humans vs. machines in malware classification. In Joseph A. Calandrino and Carmela Troncoso, editors, 32nd USENIX Security Sym- posium, USENIX Security 2023, Anaheim, CA, USA, Au- gust 9-11, 2023, pages 1145-1162. USENIX Association, 2023.
  3. [Cheng et al., 2021] Binlin Cheng, Jiang Ming, Erika A. Leal, Haotian Zhang, Jianming Fu, Guojun Peng, and Jean-Yves Marion. Obfuscation-resilient executable pay- load extraction from packed malware. In Michael D. Bai- ley and Rachel Greenstadt, editors, 30th USENIX Security Symposium, USENIX Security 2021, August 11-13, 2021, pages 3451-3468. USENIX Association, 2021.
  4. [Demetrio et al., 2019] Luca Demetrio, Battista Biggio, Gio- vanni Lagorio, Fabio Roli, and Alessandro Armando. Explaining vulnerabilities of deep learning to adversar- ial malware binaries. In Pierpaolo Degano and Roberto Zunino, editors, Proceedings of the Third Italian Confer- ence on Cyber Security, Pisa, Italy, February 13-15, 2019, volume 2315 of CEUR Workshop Proceedings. CEUR- WS.org, 2019.
  5. [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 Trans. Inf. Forensics Se- cur., 16:3469-3478, 2021.
  6. [Endgame, Inc., 2019] Endgame, Inc. Machine learn- ing security evasion competition source code. https: //github.com/endgameinc/malware evasion competition, 2019. Accessed: 2026-01-10. Link
  7. [Eykholt et al., 2018] Kevin Eykholt, Ivan Evtimov, Ear- lence Fernandes, Bo Li, Amir Rahmati, Chaowei Xiao, Atul Prakash, Tadayoshi Kohno, and Dawn Song. Ro- bust physical-world attacks on deep learning visual clas- sification. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pages 1625-1634. Computer Vi- sion Foundation / IEEE Computer Society, 2018.
  8. [Gibert et al., 2020] Daniel Gibert, Carles Mateu, and Jordi Planes. The rise of machine learning for detection and classification of malware: Research developments, trends and challenges. J. Netw. Comput. Appl., 153:102526, 2020.
  9. [Goodfellow et al., 2015] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Yoshua Bengio and Yann LeCun, editors, 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015.
  10. [Harang and Rudd, 2020] Richard E. Harang and Ethan M. Rudd. SOREL-20M: A large scale benchmark dataset for malicious PE detection. CoRR, abs/2012.07634, 2020.
  11. [He et al., 2023] Ping He, Yifan Xia, Xuhong Zhang, and Shouling Ji. Efficient query-based attack against ml-based android malware detection under zero knowledge setting. In Weizhi Meng, Christian Damsgaard Jensen, Cas Cre- mers, and Engin Kirda, editors, Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communica- tions Security, CCS 2023, Copenhagen, Denmark, Novem- ber 26-30, 2023, pages 90-104. ACM, 2023.
  12. [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 46th IEEE/ACM International Conference on Software Engineering, ICSE 2024, Lisbon, Portugal, April 14-20, 2024, pages 172:1- 172:12. ACM, 2024.
  13. [Huang et al., 2025] Yujin Huang, Zhi Zhang, Qingchuan Zhao, Xingliang Yuan, and Chunyang Chen. Themis: To- wards practical intellectual property protection for post- deployment on-device deep learning models. In 34th USENIX security symposium (USENIX Security 25), pages 7311-7330, 2025.
  14. [Iosif, 2021] George-Andrei Iosif. Dikedataset: Dataset with labeled benign and malicious files. https://github.com/ iosifache/DikeDataset, 2021. Accessed: 2026-01-10. Link
  15. [Jang et al., 2017] Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In 5th International Conference on Learning Representa- tions, ICLR 2017, Toulon, France, April 24-26, 2017, Con- ference Track Proceedings. OpenReview.net, 2017.
  16. [Kolosnjaji et al., 2018] Bojan Kolosnjaji, Ambra Demontis, Battista Biggio, Davide Maiorca, Giorgio Giacinto, Clau- dia Eckert, and Fabio Roli. Adversarial malware binaries: Evading deep learning for malware detection in executa- bles. In 26th European Signal Processing Conference, EUSIPCO 2018, Roma, Italy, September 3-7, 2018, pages 533-537. IEEE, 2018.
  17. [Krcál et al., 2018] Marek Krcál, Ondrej Svec, Martin Bálek, and Otakar Jasek. Deep convolutional malware classifiers can learn from raw executables and labels only. In 6th International Conference on Learning Representa- tions, ICLR 2018, Vancouver, BC, Canada, April 30 -May 3, 2018, Workshop Track Proceedings. OpenReview.net, 2018.
  18. [Kreuk et al., 2018] Felix Kreuk, Assi Barak, Shir Aviv- Reuven, Moran Baruch, Benny Pinkas, and Joseph Keshet. Adversarial examples on discrete sequences for beating whole-binary malware detection. CoRR, abs/1802.04528, 2018.
  19. [Li et al., 2025] Chengyi Li, Zhiyuan Jiang, Yongjun Wang, Tian Xia, Yayuan Zhang, and Yuhang Mao. Minimal: Hard-label adversarial attack against static malware de- tection with minimal perturbation. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI 2025, Montreal, Canada, August 16- 22, 2025, pages 5589-5597. ijcai.org, 2025. IJCAI
  20. [Liu et al., 2017] Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial exam- ples and black-box attacks. In 5th International Confer- ence on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017.
  21. [Pierazzi et al., 2020] Fabio Pierazzi, Feargus Pendlebury, Jacopo Cortellazzi, and Lorenzo Cavallaro. Intriguing properties of adversarial ML attacks in the problem space. In 2020 IEEE Symposium on Security and Privacy, SP 2020, San Francisco, CA, USA, May 18-21, 2020, pages 1332-1349. IEEE, 2020.
  22. [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 The Workshops of the The Thirty-Second AAAI Conference on Artificial Intelligence, New Orleans, Louisiana, USA, February 2-7, 2018, volume WS-18 of AAAI Technical Re- port, pages 268-276. AAAI Press, 2018.
  23. [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 Yuji Suga, Kouichi Sakurai, Xuhua Ding, and Kazue Sako, editors, ASIA CCS '22: ACM Asia Conference on Computer and Communications Security, Nagasaki, Japan, 30 May 2022 -3 June 2022, pages 990-1003. ACM, 2022.
  24. [Szegedy et al., 2014] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Yoshua Bengio and Yann LeCun, editors, 2nd International Conference on Learning Repre- sentations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014.
  25. [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 Trans. Inf. Forensics Secur., 19:8500-8514, 2024. [VirusTotal, 2026] VirusTotal. VirusTotal. https://www. virustotal.com/, 2026. Accessed: 2026-01-10. Link

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

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