cs.LGAug 28, 2026

REPLICANT: Learning Policies for Evading and Hardening Malware Detectors

Authors: Shae McFadden, Ilias Tsingenopoulos, Mario D'Onghia, Alexander Herzog, Myles Foley, Chris Hicks, Lorenzo Cavallaro, Fabio Pierazzi

Organizations: King’s College London · The Alan Turing Institute · University College London · KU Leuven · 

Abstract

To determine the real-world effectiveness of machine learning based malware detection, it is vital to evaluate its robustness against highly capable adversaries. However, state-of-the-art attacks do not effectively model realistic adversaries, as they often assume access to privileged information such as the training data, feature space, or confidence scores of the target. In this work, we present Replicant, a deep reinforcement learning framework that learns the realistic task of evasion under a strict label-only black-box threat model. Replicant learns a reusable policy on how to modify a malware sample and when to query the target, which transfers across samples, detectors, and feature spaces. Across seven Android malware detectors and three feature spaces, Replicant is the strongest and most query-efficient approach achieving a mean attack success rate of 78.8%, a relative improvement of 20.9%-39.2% over the state-of-the-art. Furthermore, when used for adversarial training, Replicant also outperforms the state-of-the art by producing detectors with more generalizable robustness. With Replicant we demonstrate that learning the task of evasion not only results in stronger attack performance but, crucially, provides a better signal for hardening malware detectors.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Adversarial Co-Evolution of Malware and Detection Models: A Bilevel Optimization Perspective

    Apr 24, 2026Olha Jurečková, Martin Jureček, Matouš Kozák +1Adversarial AttacksAdversarial Robustness

  2. Towards Certified Malware Detection: Provable Guarantees Against Evasion Attacks

    Apr 22, 2026Nandakrishna Giri, Asmitha K. A., Serena Nicolazzo +2Randomized SmoothingAdversarial Attacks

  3. Learning to Look Benign: Targeted Evasion of Malware Detectors via API Import Injection

    May 18, 2026Juozas Dautartas, Olga Kurasova, Juozapas Rokas Čypas +1Adversarial AttacksMalware Classification