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

summary

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…

In short

This research addresses limitations in using Large Language Models (LLMs) for malware attribution by introducing LCC-LLM. It creates a code-centric dataset and an intelligent framework that combines static code analysis with cybersecurity knowledge. This allows the LLM to move beyond simple label prediction to reason over actual malicious and vulnerable code segments, providing evidencegrounded and reliable security insights.

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 used across episodes

This episode discusses

The paper

LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attribution · Read on arXiv

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

CyberSaR, King Abdullah University of Science and Technology

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.

More episodes

← Home