"Digital Camouflage": The LLVM Challenge in LLM-Based Malware Detection
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have emerged as promising tools for malware detection by analyzing code semantics, identifying vulnerabilities, and adapting to evolving threats. However, their reliability under adversarial compiler-level obfuscation is yet to be discovered. In this study, we empirically evaluate the robustness of three state-of-the-art LLMs: ChatGPT-4o, Gemini Flash 2.5, and Claude Sonnet 4 against compiler-level obfuscation techniques implemented via the LLVM infrastructure. These include control flow flattening, bogus control flow injection, instruction substitution, and split basic blocks, which are widely used to evade detection while preserving malicious behavior. We perform a structured evaluation on 40~C functions (20 vulnerable, 20 secure) sourced from the Devign dataset and obfuscated using LLVM passes. Our results show that these models often fail to correctly classify obfuscated code, with precision, recall, and F1-score dropping significantly after transformation. This reveals a critical limitation: LLMs, despite their language understanding capabilities, can be easily misled by compiler-based obfuscation strategies. To promote reproducibility, we release all evaluation scripts, prompts, and obfuscated code samples in a public repository. We also discuss the implications of these findings for adversarial threat modeling, and outline future directions such as software watermarking, compiler-aware defenses, and obfuscation-resilient model design.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 20 Sep 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2025Securing Multi-Agent Systems Against Corruptions via Node Contribution Backpropagationcited by 4
- 2026Small, Free, and Effective: Orchestrating Open-Weight Small Language Models to Outperform Single LLM for Malware Analysiscited by 1
- 2026Poisoned Identifiers Survive LLM Deobfuscation: A Case Study on Claude Opus 4.6cited by 0
- 2026LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attributioncited by 0
- 2026An Empirical Evaluation of Prompt Injection Vulnerabilities in Large Language Models Across Multilingual and Obfuscated Attack Scenarioscited by 0
- 2026Small, Free, and Effective: Orchestrating Open-Weight Small Language Models to Outperform Single LLM for Malware Analysis22 Jul 2026
- 2026An Empirical Evaluation of Prompt Injection Vulnerabilities in Large Language Models Across Multilingual and Obfuscated Attack Scenarios28 Jun 2026
- 2026LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attribution7 May 2026
- 2026Poisoned Identifiers Survive LLM Deobfuscation: A Case Study on Claude Opus 4.65 Apr 2026
- 2025Securing Multi-Agent Systems Against Corruptions via Node Contribution Backpropagation22 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025A Systematic Study of Code Obfuscation Against LLM-based Vulnerability Detection
- 2025LLMs Caught in the Crossfire: Malware Requests and Jailbreak Challenges
- 2025XGen-Q: An Explainable Domain-Adaptive LLM Framework with Retrieval-Augmented Generation for Software Security
- 2026AsmRAG: LLM-Driven Malware Detection by Retrieving Functionally Similar Assembly Code
- 2025Running in CIRCLE? A Simple Benchmark for LLM Code Interpreter Security
- 2024Securing Large Language Models: Addressing Bias, Misinformation, and Prompt Attacks
- 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Security
- 2024Double Backdoored: Converting Code Large Language Model Backdoors to Traditional Malware via Adversarial Instruction Tuning Attacks