← Lab /AI/ML

Two decompiler views raise LLM malware classification recall

Providing both Ghidra and RetDec decompiled pseudo-C inputs improves malicious-class F1 for LLM classifiers

AI/ML arXiv 18 Jun 2026 Measurement Prototype evidence

Published as “Multi-View Decompilation for LLM-Based Malware Classification”

Why it matters

Multi-decompiler prompting can boost recall in automated malware triage without any model retraining, making LLM-based analysis more reliable in practice.

Summary

Providing both Ghidra and RetDec decompiled pseudo-C views to off-the-shelf LLMs improves malicious-class F1 in most settings, mainly by raising recall. Across five instruction-tuned models on a 100-sample benchmark, multi-view prompting yields the highest F1 for four models, with gains up to +13.9 points, while the remaining model (Qwen) sees a slight drop. The evidence comes from repeated runs (five seeds) reporting mean and standard deviation, so the claim is supported but limited to clean object-file binaries and two decompilers.

What they found 2

  1. Multi-view prompting gives the best malicious-class F1 for four of five models, with improvements up to +13.9 points.

    “The multi-view setting is the strongest overall. It gives the best F1 for four of the five models, improving over the better single decompiler by +13.9 for gemini-2.5-flash-lite, +7.9 for Llama-3.3-70B, +7.7 for GPT-5.4-mini, and +3.6 for Claude Haiku 4.5.”

  2. When one decompiler obscures malicious behavior, the other can expose enough evidence for correct classification.

    “When one view obscures the relevant behaviour, the other may expose enough evidence to recover the malicious label.”

Caveats 4

  • The exception is Qwen, where multi-view classification is slightly below the best single view (78.0 vs. 79.5).
  • Object files, not whole programs.
  • No obfuscation or anti-decompilation.
  • Number of decompilers.

What’s new here 4

  • Evaluates a multi-decompiler (Ghidra + RetDec) prompting approach for LLM-based malware classification.
  • Shows that decompiler choice materially affects LLM performance and that combining views improves recall and F1.
  • Provides a curated benchmark of 100 benign and malicious object files with matched decompiler outputs.
  • Demonstrates that a simple training-free multi-view prompt outperforms single-view and consensus baselines across multiple model families.