Defending FCG-Based Malware Detectors Against Metamorphic Android Variants via LLM-Powered Code Refactoring
Ngoc N. Tran, Noah Dahle, Bo Ni, Anwar Said, Waseem Abbas, Xenofon D. Koutsoukos, Tyler Derr
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.
Create a lesson
Metadata
- Categories
- cs.CR, cs.LG
- Comments
- Accepted at EACL 2027
Related papers
Where Call Graphs Fall Short: How Reliably Do Static Analysis Tools Capture Security-Sensitive Behavior in Android Applications?
Shared title terminologycs.CRIslam Md Shafiqul, Guan Yong
Full Structure Recovery of Linearized Reed-Solomon Codes
Shared title terminologycs.CRValentina Astore, Martino Borello, Alain Couvreur
PRECEPT: Security Self-Improvement of Coding Agents via Evolving Principles
Shared title terminologycs.CRKeyan Guo, Rupam Patir, Haipeng Cai et al.
Beyond the Efficiency-Efficacy Dilemma: A Critical Analysis of Transferability in Adversarial Malware Detection
Shared title terminologycs.CRVeysel Alevcan, Mohammad Furqan Ali, Teresa Sousa et al.
Real Package, Wrong Controller: Static Auditing of Vendor--Protocol Mismatches in LLM-Generated PLC Code
Shared title terminologycs.CRS M Zia Ur Rashid, Sazidul Islam Hira, Suman Rath
Power Side-Channel Evaluation using Multi-FPGA Systems
Shared title terminologycs.CRYaswanth Tavva, Geng Luo, Trevor E. Carlson et al.