Is "Knowing It's Malicious Enough?" Evaluating LLMs for Fine-Grained Malware Behavior Auditing
Not on the map. Why?
Abstract (arXiv)
Automated malware classifiers achieve strong detection performance, but auditing requires more than flagging a sample: analysts must explain malicious behaviors and justify them with code evidence. Traditional signature-based methods and learning-based XAI often fail to provide such support in a human-interpretable form. Large Language Models (LLMs) appear promising, yet their reliability for malware auditing remains unclear. Evaluation faces three challenges: (1) the lack of human-written behavioral ground truth; (2) real-world codebases that exceed current context limits; and (3) the lack of reliable mechanisms to verify whether generated claims are grounded in code evidence. These obstacles make benchmarking difficult and leave model capabilities and failure modes opaque. We introduce MalEval, a diagnostic framework for measuring the capability boundaries of LLMs in malware auditing. MalEval pairs real-world application codebases with expert-written audit reports to provide fine-grained behavior-level ground truth. It compresses large codebases into behavior-relevant program contexts through a context-driven intermediate representation that preserves call relations. Expert reports and model outputs are mapped, via constrained reasoning, into structured evidence chains linking code-level facts to high-level behaviors in a shared space. MalEval decomposes auditing into four stage-wise tasks, enabling each intermediate judgment to be verified under limited context windows. We evaluate seven LLMs and find that they rely on surface cues rather than verifiable evidence, struggle to compose dispersed facts into coherent attack chains, and are highly sensitive to context formulation. These findings shift attention from isolated outputs to reliable LLM and agentic workflows for malware auditing. MalEval is publicly available at https://github.com/ZhengXR930/MalEval.git
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 25 of its 56 references that are in the map. First posted on arXiv 17 Sep 2025.
Builds on
25 of 56 references.
References · 25
- 2025Qwen3 Technical Reportcited by 8,820
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 155
- 2020Transcending Transcend: Revisiting Malware Classification in the Presence of Concept Driftcited by 53
- 2024Reasoning Runtime Behavior of a Program with LLM: How Far Are We?cited by 45
- 2025CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Taskscited by 24
13 more
- 2024LLMDFA: Analyzing Dataflow in Code with Large Language Modelscited by 22
- 2025LAMD: Context-driven Android Malware Detection and Classification with LLMscited by 18
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Codecited by 14
- 2025On Benchmarking Code LLMs for Android Malware Analysiscited by 13
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoningcited by 13
- 2023FINER: Enhancing State-of-the-art Classifiers with Feature Attribution to Facilitate Security Analysiscited by 12
- 2017Automated Behavioral Analysis of Malware A Case Study of WannaCry Ransomwarecited by 10
- 2024Combating Concept Drift with Explanatory Detection and Adaptation for Android Malware Classificationcited by 7
- 2025Exploring Large Language Models for Semantic Analysis and Categorization of Android Malwarecited by 6
- 2025The Code Barrier: What LLMs Actually Understand?cited by 5
- 2024Enhancing Android Malware Detection: The Influence of ChatGPT on Decision-centric Taskcited by 4
- 2025TraceRAG: A LLM-Based Framework for Explainable Android Malware Detection and Behavior Analysiscited by 3
- 2025MalLoc: Toward Fine-grained Android Malicious Payload Localization via LLMscited by 2
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Identifying Adversary Tactics and Techniques in Malware Binaries with an LLM Agentcited by 2
- 2026Malaika: Understanding Malware through Tri-Grounded Agentic Reasoningcited by 0
- 2026SCRIPTIOC-BENCH: A Benchmark for Recognizing Actionable Threat Intelligence from Script-Based Malware using LLMscited by 0
- 2026SCRIPTIOC-BENCH: A Benchmark for Recognizing Actionable Threat Intelligence from Script-Based Malware using LLMs5 Sep 2026
- 2026Malaika: Understanding Malware through Tri-Grounded Agentic Reasoning10 Jul 2026
- 2026Identifying Adversary Tactics and Techniques in Malware Binaries with an LLM Agent6 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attribution
- 2025"Digital Camouflage": The LLVM Challenge in LLM-Based Malware Detection
- 2026Trident: Improving Malware Detection with LLMs and Behavioral Features
- 2026Correct Verdicts, Flawed Reasoning: Structured Auditing of LLM-based Vulnerability Reasoning
- 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
- 2026Evaluating Retrieval-Augmented Generation for Explainable Malware Analysis
- 2026Breaking Bad: Interpretability-Based Safety Audits of State-of-the-Art LLMs