arXiv · 2611.36820
Defending FCG-Based Malware Detectors Against Metamorphic Android Variants via LLM-Powered Code Refactoring
Abstract
LLM-generated malwares pose a mounting threat to automated detection systems, as rewritten malicious code shifts beyond what classifiers learned from static corpora. While graph-based Android malware classifiers operating on function call graphs, especially when enriched with LLM features, have established strong detection accuracy; they remain brittle against this emerging attack surface, dropping up to over 60% in accuracy. Standard graph augmentation strategies fail to address this gap: they are context-agnostic, producing graphs that are incoherent as programs and bear no resemblance to these LLM-rewrite attacks. To counter this threat, we propose leveraging LLMs to synthesize code augmentations for diverse, realistic training variants. We introduce FCGA, a framework operating at two complementary levels: rewriting individual functions into equivalent yet distinct implementations, and jointly refactoring clusters of functions via summarization-guided prompting, concentrating on the most important graph components. Across a controlled real-world OOD benchmark and a supporting direct LLM-rewrite stress test, FCGA enhances robustness by up to 10% over augmentation baselines. Our analysis further reveals a fidelity-diversity tradeoff that determines which augmentation strategies are most effective during pretraining and adaptation. The source code is available at https://github.com/ngoctnq/fcga.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Ngoc N. Tran, Noah Dahle, Bo Ni, Anwar Said, Waseem Abbas, Xenofon D. Koutsoukos, Tyler Derr. 2026-11-27. Defending FCG-Based Malware Detectors Against Metamorphic Android Variants via LLM-Powered Code Refactoring. https://arxiv.science/abs/2611.36820
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.