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

Olha Jurečková, Martin Jureček, Matouš Kozák, Róbert Lórencz
4/24/2026
cs.CRcs.LG

No confident code implementation found for this paper.

Abstract

Machine learning-based malware detectors are increasingly vulnerable to adversarial examples. Traditional defenses, such as one-shot adversarial training, often fail against adaptive attackers who use reinforcement learning to bypass detection.

Show full abstract

This paper proposes a robust defense framework based on bilevel optimization, explicitly modeling the strategic interaction between a defender and an attacker as an adversarial co-evolutionary process. We evaluate our approach using the MAB-malware framework against three distinct malware families: Mokes, Strab, and DCRat. Our experimental results demonstrate that while standard classifiers and basic adversarial retraining often remain vulnerable, showing evasion rates as high as 90 %, the proposed bilevel optimization approach consistently achieves near-total immunity, reducing evasion rates to 0 - 1.89 %. Furthermore, the iterative framework significantly increases the attacker's query complexity, raising the average cost of successful evasion by up to two orders of magnitude. These findings suggest that modeling the iterative cycle of attack and defense through bilevel optimization is essential for developing resilient malware detection systems capable of withstanding evolving adversarial threats.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jurekov2026adversarial,
  title  = {Adversarial Co-Evolution of Malware and Detection Models: A Bilevel Optimization Perspective},
  author = {Olha Jurečková and Martin Jureček and Matouš Kozák and Róbert Lórencz},
  year   = {2026},
  eprint = {2604.22569},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.22569v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.22569.svg)](https://codeofpaper.com/paper/2604.22569)

Discussion