← Latest papers
🤖 AI

Multi-View Decompilation for LLM-Based Malware Classification

This paper demonstrates that leveraging complementary pseudo-C views from multiple decompilers (Ghidra and RetDec) as input for large language models significantly improves malware classification recall and F1 scores compared to single-view approaches, offering a simple, training-free strategy for enhanced malware triage.

Original authors: Bercan Turkmen, Vyas Raina

Published 2026-06-19
📖 4 min read☕ Coffee break read

Original authors: Bercan Turkmen, Vyas Raina

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a detective trying to figure out if a mysterious, locked box contains a harmless gift or a dangerous trap. The problem is, the box has been smashed open, and all you have left are two different, slightly messy piles of the broken pieces.

This paper is about a new way for Artificial Intelligence (AI) to act as that detective.

The Problem: One Broken Mirror

Usually, when security experts analyze a computer program (a "binary"), they can't see the original, clean source code. Instead, they use a tool called a decompiler to try to rebuild the program from its smashed pieces into something that looks like readable text (pseudo-C code).

Think of a decompiler like a broken mirror. If you look at your reflection in a cracked mirror, you see your face, but it's distorted.

  • Mirror A (Ghidra) might stretch your nose a little.
  • Mirror B (RetDec) might squint your eyes differently.

Both mirrors show the same person, but they show different "glitches" or distortions.

In the past, researchers asked AI to look at only one mirror (one decompiler's output) to decide if the code was "good" (benign) or "bad" (malicious). The authors of this paper argued that this is risky. If Mirror A hides a dangerous feature by stretching it out too much, the AI might miss it. If Mirror B hides it by squinting, the AI misses it again.

The Solution: The "Two-Mirror" Strategy

The researchers asked a simple question: What if we show the AI both mirrors at the same time?

They built a test set of 100 programs: 50 were harmless utilities (like a calculator or a file organizer) and 50 were real malware (like viruses, spyware, and bots). They ran every single program through two different decompilers (Ghidra and RetDec), creating two different "views" of the same code for every sample.

Then, they asked various AI models to look at:

  1. Just the view from Mirror A.
  2. Just the view from Mirror B.
  3. Both views together.

What They Found

The results were like watching a detective solve a case by comparing two witness statements.

  • The "Single Mirror" Flaw: When the AI looked at just one view, it often got confused. Sometimes Mirror A made a virus look innocent, and sometimes Mirror B did. The AI would miss the bad guys because the "glitch" in that specific mirror hid the evidence.
  • The "Two-Mirror" Win: When the AI saw both views together, it got much better at catching the bad guys.
    • If Mirror A hid a dangerous feature, Mirror B often showed it clearly.
    • If Mirror B was noisy and confusing, Mirror A was often clear.
    • By combining them, the AI could "fill in the blanks" and see the whole picture.

The paper found that this "Two-Mirror" approach didn't require teaching the AI anything new or training it on new data. It was a simple, free upgrade: just give the AI more information from different angles.

The Analogy of the "Consensus"

The researchers also tried a clever shortcut. They said, "If Mirror A and Mirror B both agree the code is safe, let's trust them. But if they disagree, let's look at both views together to figure out who is right."

This worked well, but the best results came from simply showing the AI both views every time. It turned out that even when the mirrors agreed, having both views helped the AI be more confident and accurate.

The Bottom Line

The paper concludes that relying on a single decompiler is like trying to solve a puzzle with half the pieces missing. By using multiple decompilers to give the AI different perspectives on the same code, we can catch more malware without needing to build a smarter AI or train it longer. It's a simple, practical trick that makes the current AI tools much more reliable for spotting digital threats.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →