Bilevel optimization reduces malware evasion rates to as low as 0-1.9%
Bilevel optimization yields near-total immunity for ML malware detectors, cutting evasion to 0-1.89%.
AI/ML arXiv 24 Apr 2026 Defense Simulation evidence
Published as “Adversarial Co-Evolution of Malware and Detection Models: A Bilevel Optimization Perspective”
Why it matters
Iterative bilevel optimization can harden malware detectors against adaptive adversaries while dramatically increasing the cost of successful evasion.
Summary
The bilevel optimization framework reduces evasion rates of adaptive malware attacks to between 0% and 1.89%, compared with up to 95.83% for standard classifiers and up to 90% after one-shot adversarial training, and raises the attacker’s average query count by up to two orders of magnitude. Evidence comes from experiments on three malware families (Mokes, Strab, DCRat) using a balanced 500-sample subset per family and a Random Forest model on EMBER 2018 features.
What they found 3
- Bilevel optimization eliminates evasion for Mokes (0% evasion rate).
“the bilevel model maintained perfect precision, recall, and a 0% evasion rate, effectively neutralizing the attack.”
- For Strab, evasion is reduced to 1.89% after bilevel optimization.
“the model’s performance under actual attack (Table 2) remained exceptionally high, with an accuracy of 0.97 and an ER reduced to a marginal 1.89%.”
- For DCRat, bilevel optimization achieves 0% evasion after generating 465 adversarial samples.
“bilevel optimization successfully neutralized the threat. By generating a diverse set of 465 adversarial samples across iterations, the process achieved a model with a 0% evasion rate and perfect detection scores under attack.”
Caveats 3
- For the Strab family the defense still leaves a non-zero evasion rate of 1.89% and requires a very high query count (3118) for the few remaining successful attacks.
- Future work will expand this framework to include diverse machine learning architectures, such as Deep Neural Networks and Gradient Boosted Trees.
- We also plan to evaluate the scalability of bilevel optimization across a larger variety of malware families.
What’s new here 4
- Models the defender-attacker interaction as a bilevel optimization co-evolutionary game rather than a static adversarial training problem.
- Demonstrates convergence to an ε-Nash equilibrium with near-zero evasion rates after a few iterative rounds.
- Shows that the iterative process can increase the attacker’s query cost by up to 100×.
- Evaluates the approach across three distinct malware families, highlighting family-specific convergence dynamics.