LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attribution

arXiv:2605.05807 · cs.CR, cs.AI · Submitted 2026-05-07 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: I'm Nadia.

Elias: And I'm Elias, here with Priya.

Nadia: We're looking at the paper: "LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attribution".

Title and authors: Nadia: So we’ve established that LCC-LLM is focused on using code-centric data and grounding the analysis in actual artifacts rather than just text. Now let's look at what the paper actually proposes as a solution for this gap.

Elias: The paper introduces this whole system, LCC-LLM, which it describes as a code-centric benchmark dataset and an evidencegrounded intelligent framework for malware attribution and multi-task static malware analysis. It’s not just one thing; it’s a whole pipeline.

Nadia: It integrates LangGraph orchestrated static analysis with multiple sources of cybersecurity knowledge to support this evidencegrounded reasoning, which is where things get interesting because it brings in real context.

Elias: They also use a seven-layer retrieval augmented generation pipeline, and they specifically mention Chain-of-Verification for Indicator of Compromise validation, which is their way of checking if the indicators they find actually hold up.

Priya: From my side, I’m interested in how this framework handles the quality control. They apply a multi-dimensional quality gate to improve factual reliability and give analysts better decision support when you’re looking at complex malware samples.

Nadia: That sounds like they are trying to tackle the hallucination problem head-on, which is huge when you’re talking about threat intelligence where one wrong mapping can lead to a bad incident response.

Elias: They show that using these code-centric representations, combined with retrieval grounding and this verification-guided reasoning, actually improves the reliability and operational usefulness of LLM-assisted malware attribution.

The paper's summary: Nadia: So they summarize by showing how their curriculum-ordered instruction data gets used to fine-tune code-oriented LLMs using a technique called Quantized Low-Rank Adaptation, or QLoRA. It’s not just feeding it raw data; it’s structuring the training signal very carefully.

Elias: They built the LCCD dataset first, which has about thirty-four thousand PE samples processed through a large-scale reverseengineering pipeline. This pipeline handles everything from decompiled C code to control flow graphs and function call graphs, making it structurally rich data.

Nadia: And then they take that dataset and build the framework on top of it. They integrate LangGraph orchestration with static analysis and pull in multisource cybersecurity knowledge to generate these evidencegrounded outputs for various tasks.

Priya: What’s important is that they didn't just focus on one task. They show this dataset supports a lot of things: malicious code analysis, vulnerability analysis, API behavior reasoning, mapping to MITRE ATT andCK, detection guidance, and even analyst-ready report generation.

Elias: That’s what sets it apart from other datasets; they show you can do multiple deep analyses on one sample because the data is structured to support that multi-task approach.

Nadia: But then they have to be careful with how the model learns. They use Chain-of-Thought and Chain-of-Verification alongside CoT in their generation process, which means the model has to show its work before it gives an answer.

The paper's improvements: Elias: The major improvement they highlight is unifying the data itself. Existing datasets often just give you binaries or labels, but this one provides a unified structure that links reverseengineering artifacts directly with explicit support for analyzing malicious and vulnerable code segments.

Nadia: That means instead of the LLM just guessing based on a filename, it can actually reason over the assembly code or even the control flow graph of the malware. It moves it far beyond simple label prediction.

Priya: They also showed how they handle data quality during construction, noting that their feature extraction rate is highly successful due to their automated backfill and quality assurance mechanisms. They intentionally kept the class imbalance in LCCD to make sure it looks like a real malware ecosystem.

Elias: And for the model adaptation part, they used this curriculum-ordered instruction data over one thousand five hundred fifty steps, and that resulted in a rapid instruction alignment, showing an eighty-seven percent reduction in loss. That’s strong performance on the fine-tuning front.

Nadia: The real operational improvement is what happens after generation. They have Algorithm four which shows the verification-guided validation stage applied after the response is generated, specifically designed to reduce hallucinated Indicators of Compromise and incorrect mappings.

Conclusion: Elias: So to wrap up, LCC-LLM provides a comprehensive framework that connects reverseengineering artifacts with verified threat intelligence and LLM reasoning in a unified way for malware attribution. It’s about making the model traceable.

Nadia: It moves the conversation away from just generating text responses toward creating outputs that are grounded in specific code evidence or verified threat intelligence, which makes it much more useful for real analyst workflows.

Priya: I think the multi-task capability across those forty-three malware-analysis task types shows that this isn't just a niche tool; it’s designed to be broadly applicable across different security analysis needs.

Elias: Indeed, by combining the code-centric data with the verification steps, they establish a more reliable way for LLMs to handle these complex tasks, and the goal is clearly analyst-assisted security investigation.

Nadia: And that’s where we are today. We’ve looked at LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attribution. It’s a big step toward making AI tools in cybersecurity actually trustworthy because they can prove their reasoning comes from the code, and not just a guess.

Christopher G. Pedraza Pohlenza, Hassan Jalil Hadia, Ali Hassana, Ali Shokera

CyberSaR, King Abdullah University of Science and Technology

cs.CR, cs.AI

Submitted: 2026-05-07

Updated: 2026-12-03

Code: https://github.com/radareorg/radare2

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

The gist: Large Language Models (LLMs) are increasingly being explored for malware analysis; however, current LLM-based malware attribution remains limited by unsupported indicators and insufficient code-level…

Key concepts

LCC-LLM
LCC-LLM is a new system that uses a code-centric benchmark dataset (LCCD) and an intelligent framework. It combines LangGraph for static analysis with multi-source cybersecurity knowledge, allowing the LLM to perform detailed reasoning over malware code rather than just predicting labels.
Evidencegrounded Reasoning
This means the LLM's conclusions are strictly based on concrete evidence found in reverse engineering artifacts and verified threat intelligence. Instead of making unsupported claims, the system ensures every output is traceable back to specific code segments or trusted security data.
Retrieval-Augmented Generation (RAG)
This pipeline enhances the LLM's ability to answer complex questions by retrieving relevant external information before generating a response. LCC-LLM uses a seven-layer RAG pipeline, including Chain-of-Verification, to validate findings against verified IoCs and threat intelligence.
Multi-dimensional Quality Gate
This mechanism is used to improve the factual reliability of the LLM's outputs. It acts as a final check, ensuring that the analysis is not only grounded in evidence but also suitable for analyst workflows by providing decision support based on multiple quality dimensions.

Terminology

Summary

Large Language Models (LLMs) are increasingly being explored for malware analysis; however, current LLM-based malware attribution remains limited by unsupported indicators and insufficient code-level grounding for identifying malicious and vulnerable code segments. p. 0<ref:2605.05807#pg1, To address these limitations, this research introduces LCC-LLM, a code-centric benchmark dataset and evidencegrounded intelligent framework for malware attribution and multi-task static malware analysis >

Pruning redundant reasoning tokens

The proposed LCC-LLM integrates LangGraph-orchestrated static analysis with multi-source cybersecurity knowledge to support evidencegrounded malware reasoning.<ref:2605.05807#pg1, Beyond dataset construction, LCC-LLM integrates LangGraph-orchestrated static analysis with multi-source cybersecurity knowledge >. p. 0 The framework also employs a seven-layer retrieval-augmented generation pipeline. p. 0<ref:2605.05807#pg1, It uses Chain-ofVerification for IoC validation >. p. 0 In addition, a multi-dimensional quality gate is applied to improve factual reliability and analyst-oriented decision support. p. 0<ref:2605.05807#pg1, These results show that code-centric representations, retrieval grounding, and verification-guided reasoning improve the reliability and operational usefulness of LLM-assisted malware attribution >

How the training signal is built

The LCCD dataset contains approximately 34K PE samples processed through a large-scale reverseengineering pipeline.<ref:2605.05807#pg1, Building on this dataset, LCC-LLM integrates LangGraph-orchestrated static analysis, multisource cybersecurity knowledge, retrieval-augmented generation, Chain-ofVerification (CoVe), Chain-of-Thought (CoT), and a multi-dimensional quality gate to generate evidencegrounded malware analysis outputs >. p. 1 The resulting curriculum-ordered instruction data is used to fine-tune codeoriented LLMs using Quantized Low-Rank Adaptation (QLoRA). p. 1<ref:2605.05807#pg2, This design connects reverseengineering artifacts, verified threat intelligence, and LLM-based reasoning into a unified framework for reliable malware attribution and analyst-assisted security investigation >

Where the gains come from

The main contributions of this study are summarized as follows.<ref:2605.05807#pg2, • Existing malware datasets often provide binaries, labels, API traces, or limited metadata, but they rarely unify reverseengineering artifacts with explicit support for malicious and vulnerable code segment analysis > • Current LLM-based malware analysis is limited by the lack of structured training data that connects lowlevel malware artifacts with analyst-oriented tasks. p. 1<ref:2605.05807#pg2, • General-purpose LLMs can generate unsupported malware claims because their outputs are often not grounded in reverseengineering evidence or verified threat intelligence > • In recent studies, LLM malware-analysis systems are evaluated only as offline text-generation models, without demonstrating usability in real analyst workflows. p. 1<ref:2605.05807#pg2, LCCD is the first dataset that jointly provides code-centric malware artifacts and structured instruction-tuning data for multitask malware attribution, including malicious code analysis, vulnerability analysis, API behavior reasoning, MITRE ATT&CK mapping, detection guidance, and analyst-ready report generation >

Dataset Construction and Evaluation

The LCCD generation pipeline relies on a multistage pipeline that integrates data collection, multimodal feature extraction, vector embedding, semantic analysis, and prompt engineering augmented by Cyber Threat Intelligence (CTI).<ref:2605.05807#pg3>. The dataset exhibits a highly successful feature extraction rate reflecting the robustness of our automated backfill and quality assurance mechanisms. p. 4<ref:2605.05807#pg9>. Table 2 LCCD Extraction Yield and Composition. p. 3<ref:2605.05807#pg11, We intentionally preserved the inherent class imbalance to ensure an authentic representation of the malware ecosystem >. Table 4 Intra-Class Diversity and Pielou’s Evenness Across LCCD Malware Categories. p. 9 p. 9<ref:2605.05807#pg13>. Table 4 Intra-Class Diversity and Pielou’s Evenness Across LCCD Malware Categories.<ref:2605.05807#pg13>. Table 3 Distribution of the Samples in LCCD. p. 9<ref:2605.05807#pg13>

Model Adaptation and Performance

The CPT phase successfully adapted the base model to the specialized domain of malware analysis, as illustrated by the training dynamics in Fig. 9.<ref:2605.05807#pg16, The SFT phase aligned the model to execute specific analytical workflows, with progression detailed in Fig. 10 >. Utilizing a difficulty-sorted curriculum over 1,550 steps, the model demonstrated rapid instruction alignment, marked by an 87% reduction in loss (from 1. p. 7178 down to 0.147).<ref:2605.05807#pg16>

Verification and Validation

Algorithm 4 presents the verification-guided validation stage applied after response generation.<ref:2605.05807#pg14, This mechanism is designed to reduce hallucinated IoCs, incorrect mappings, and unsupported attribution claims >. p. 1 The final response is then enriched with verified IoCs, MITRE mappings, suspicious APIs, and code-level evidence before being returned to the analyst. p. 1<ref:2605.05807#pg14, This validation process strengthens the reliability of LCC-LLM by ensuring that the final output is traceable, evidencealigned, and suitable for analyst-facing malware attribution workflows >. p. 1 The model was evaluated across 43 malware-analysis task types achieves an average semantic similarity of 0. p. 0634.<ref:2605.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Improved data representation can unify reverse-engineering artifacts by representing PE samples through decompiled C code, assembly code, CFG/FCG artifacts, hexadecimal data, PE metadata, suspicious API evidence, which enables LLMs to move beyond label prediction and reason over the code.

  2. Enhanced reasoning can be achieved by integrating LangGraph-orchestrated static analysis with multi-source cybersecurity knowledge and employing a seven-layer retrieval-augmented generation pipeline using Chain-of-Verification for IoC validation.

  3. The system gains improved factual reliability through a multi-dimensional quality gate applied to improve factual reliability and analyst-oriented decision support, which ensures that outputs are grounded in reverse-engineering evidence or verified threat intelligence.

  4. A real-time chatbot prototype can be developed, allowing analysts to interactively query malware samples and request explanations related to "malware attribution, malicious code segments, suspicious APIs, IoCs, MITRE ATT&CK mappings and containment guidance."

  5. The model is adapted for efficiency using Quantized Low-Rank Adaptation (QLoRA) on a large backbone model like DeepSeek-R1-Distill-Qwen-14B to enable efficient adaptation while preserving the reasoning and code understanding capabilities of the base model.

Sources

Related papers