mlsanityData to 14 Oct 2026

A Systematic Study of Code Obfuscation Against LLM-based Vulnerability Detection

arXiv 2512.16538 ↗First posted 18 Dec 2025cs.CR cs.LGcited by 5

Not on the map. Why?

Abstract (arXiv)

As large language models (LLMs) are increasingly adopted for code vulnerability detection, their reliability and robustness across diverse vulnerability types have become a pressing concern. In traditional adversarial settings, code obfuscation has long been used as a general strategy to bypass auditing tools, preserving exploitability without tampering with the tools themselves. Numerous efforts have explored obfuscation methods and tools, yet their capabilities differ in terms of supported techniques, granularity, and programming languages, making it difficult to systematically assess their impact on LLM-based vulnerability detection. To address this gap, we provide a structured systematization of obfuscation techniques and evaluate them under a unified framework. Specifically, we categorize existing obfuscation methods into three major classes (layout, data flow, and control flow) covering 11 subcategories and 19 concrete techniques. We implement these techniques across four programming languages (Solidity, C, C++, and Python) using a consistent LLM-driven approach, and evaluate their effects on 15 LLMs spanning four model families (DeepSeek, OpenAI, Qwen, and LLaMA), as well as on two coding agents (GitHub Copilot and Codex). Our findings reveal both positive and negative impacts of code obfuscation on LLM-based vulnerability detection, highlighting conditions under which obfuscation leads to performance improvements or degradations. We further analyze these outcomes with respect to vulnerability characteristics, code properties, and model attributes. Finally, we outline several open problems and propose future directions to enhance the robustness of LLMs for real-world vulnerability detection.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 38 of its 80 references that are in the map. First posted on arXiv 18 Dec 2025.

Builds on

38 of 80 references.

References · 38

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  6. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  7. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  8. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
  9. 2024Vulnerability Detection with Code Language Models: How Far Are We?cited by 139
  10. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 102
  11. 2022Natural Attack for Pre-trained Models of Codecited by 75
  12. 2024Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGcited by 68
26 more
  1. 2019Adversarial Examples for Models of Codecited by 63
  2. 2023Understanding the Effectiveness of Large Language Models in Detecting Security Vulnerabilitiescited by 59
  3. 2022CodeAttack: Code-Based Adversarial Attacks for Pre-trained Programming Language Modelscited by 53
  4. 2022VulBERTa: Simplified Source Code Pre-Training for Vulnerability Detectioncited by 51
  5. 2023Data Quality for Software Vulnerability Datasetscited by 51
  6. 2023Prompt-Enhanced Software Vulnerability Detection Using ChatGPTcited by 51
  7. 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 46
  8. 2024Large Language Model for Vulnerability Detection: Emerging Results and Future Directionscited by 45
  9. 2023ChatGPT for Vulnerability Detection, Classification, and Repair: How Far Are We?cited by 44
  10. 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 40
  11. 2022Transformer-Based Language Models for Software Vulnerability Detectioncited by 39
  12. 2019Empirical Review of Automated Analysis Tools on 47,587 Ethereum Smart Contractscited by 36
  13. 2023Uncovering the Limits of Machine Learning for Automatic Vulnerability Detectioncited by 30
  14. 2024VulEval: Towards Repository-Level Evaluation of Software Vulnerability Detectioncited by 19
  15. 2024Comparison of Static Application Security Testing Tools and Large Language Models for Repo-level Vulnerability Detectioncited by 18
  16. 2023AIBugHunter: A Practical Tool for Predicting, Classifying and Repairing Software Vulnerabilitiescited by 17
  17. 2024Pre-training by Predicting Program Dependencies for Vulnerability Analysis Taskscited by 17
  18. 2023Distinguishing Look-Alike Innocent and Vulnerable Code by Subtle Semantic Representation Learning and Explanationcited by 11
  19. 2024On the Effectiveness of Function-Level Vulnerability Detectors for Inter-Procedural Vulnerabilitiescited by 10
  20. 2023Code Difference Guided Adversarial Example Generation for Deep Code Modelscited by 9
  21. 2024Are Latent Vulnerabilities Hidden Gems for Software Vulnerability Prediction? An Empirical Studycited by 9
  22. 2023When Less is Enough: Positive and Unlabeled Learning Model for Vulnerability Detectioncited by 8
  23. 2023An Extensive Study on Adversarial Attack against Pre-trained Models of Codecited by 8
  24. 2023Do Language Models Learn Semantics of Code? A Case Study in Vulnerability Detectioncited by 4
  25. 2023A Black-Box Attack on Code Models via Representation Nearest Neighbor Searchcited by 3
  26. 2024Pros and Cons! Evaluating ChatGPT on Software Vulnerabilitycited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025"Digital Camouflage": The LLVM Challenge in LLM-Based Malware Detection
  2. 2026An Empirical Evaluation of LLM-Based Approaches for Code Vulnerability Detection: RAG, SFT, and Dual-Agent Systems
  3. 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Security
  4. 2025Trust Me, I Know This Function: Hijacking LLM Static Analysis using Bias
  5. 2026OpenAnt: LLM-Powered Vulnerability Discovery Through Code Decomposition, Adversarial Verification, and Dynamic Testing
  6. 2024Towards Explainable Vulnerability Detection with Large Language Models
  7. 2024Software Vulnerability and Functionality Assessment using LLMs
  8. 2026Exploring Automated Vulnerability Identification in JavaScript Code Using Large Language Models