arXiv:2509.14335cs.CRcs.AI2025-09中稿 · ISSTA 2026被引 2

用真实代码+专家报告评估大模型对恶意行为的审计能力

Is "Knowing It's Malicious Enough?" Evaluating LLMs for Fine-Grained Malware Behavior Auditing

  • 构建了带细粒度行为标注的代码-报告配对数据集
  • 通过上下文压缩与结构化证据链验证,突破长代码限制
  • 发现大模型依赖表面特征,难构建连贯攻击链条

自动化恶意软件分类器检测性能优异,但审计需解释恶意行为并提供代码证据。传统签名方法和学习型XAI难以以人类可理解形式提供支持。大型语言模型(LLMs)前景广阔,但其在恶意软件审计中的可靠性尚不明确。评估面临三大挑战:(1)缺乏人工编写的细粒度行为基准;(2)真实代码库超过当前上下文长度限制;(3)缺乏验证生成结论是否基于代码证据的可靠机制。为此,我们提出MalEval,一个诊断框架,用于衡量LLMs在恶意软件审计中的能力边界。MalEval将真实应用代码库与专家撰写的审计报告配对,提供细粒度行为级基准。通过上下文驱动的中间表示压缩大代码库,保留调用关系。专家报告与模型输出经受限推理映射至共享空间的结构化证据链,连接代码事实与高层行为。MalEval将审计分解为四个阶段任务,使每一步判断可在有限上下文窗口下验证。我们评估了七个LLMs,发现它们依赖表面线索而非可验证证据,难以将分散事实整合为连贯攻击链,且对上下文表述高度敏感。研究转向关注可靠的大模型与智能体工作流,而非孤立输出。MalEval已公开于https://github.com/ZhengXR930/MalEval.git

原文摘要 · Abstract (English)

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

恶意软件审计大模型评测代码分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。