Can LLMs Obfuscate Code? A Systematic Analysis of Large Language Models into Assembly Code Obfuscation
Not on the map. Why?
Abstract (arXiv)
Malware authors often employ code obfuscations to make their malware harder to detect. Existing tools for generating obfuscated code often require access to the original source code (e.g., C++ or Java), and adding new obfuscations is a non-trivial, labor-intensive process. In this study, we ask the following question: Can Large Language Models (LLMs) potentially generate a new obfuscated assembly code? If so, this poses a risk to anti-virus engines and potentially increases the flexibility of attackers to create new obfuscation patterns. We answer this in the affirmative by developing the MetamorphASM benchmark comprising MetamorphASM Dataset (MAD) along with three code obfuscation techniques: dead code, register substitution, and control flow change. The MetamorphASM systematically evaluates the ability of LLMs to generate and analyze obfuscated code using MAD, which contains 328,200 obfuscated assembly code samples. We release this dataset and analyze the success rate of various LLMs (e.g., GPT-3.5/4, GPT-4o-mini, Starcoder, CodeGemma, CodeLlama, CodeT5, and LLaMA 3.1) in generating obfuscated assembly code. The evaluation was performed using established information-theoretic metrics and manual human review to ensure correctness and provide the foundation for researchers to study and develop remediations to this risk.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 20 Dec 2024.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025Large Language Model (LLM) for Software Security: Code Analysis, Malware Analysis, Reverse Engineeringcited by 15
- 2026What Breaks When LLMs Code? Characterizing Operational Safety Failures of Agentic Code Assistantscited by 4
- 2026Cybersecurity is the True Frontier for Generative AI Success or Failurecited by 2
- 2025ObfusQAte: A Proposed Framework to Evaluate LLM Robustness on Obfuscated Factual Question Answeringcited by 1
- 2026Don't Judge a Book by its Cover: Testing LLMs' Robustness Under Logical Obfuscationcited by 0
- 2026SoK: AI-Augmented Binary Reversingcited by 0
- 2026Cybersecurity is the True Frontier for Generative AI Success or Failure27 Jun 2026
- 2026SoK: AI-Augmented Binary Reversing16 Jun 2026
- 2026What Breaks When LLMs Code? Characterizing Operational Safety Failures of Agentic Code Assistants29 May 2026
- 2026Don't Judge a Book by its Cover: Testing LLMs' Robustness Under Logical Obfuscation1 Feb 2026
- 2025ObfusQAte: A Proposed Framework to Evaluate LLM Robustness on Obfuscated Factual Question Answering10 Aug 2025
- 2025Large Language Model (LLM) for Software Security: Code Analysis, Malware Analysis, Reverse Engineering7 Apr 2025