← Lab /Software

Decompilation quality metrics strongly predict recompilation success for IoT firmware

Higher structural, behavioral, and semantic similarity scores correlate with successful recompilation of decompiled IoT code

Software arXiv 7 Aug 2026 Measurement Simulation evidence

Published as “Statistical Analysis of Executability and Program Equivalence in Decompilation for IoT Vulnerability Detection”

Why it matters

The structural similarity component can guide the development of decompilation tools that more reliably reproduce vulnerable code, improving IoT firmware vulnerability analysis.

Summary

Behavioral and structural similarity scores strongly predict whether decompiled code can be recompiled, with effect sizes of d = 0.96 and d = 0.69 respectively, and the overall score difference has d = 0.92. LLM-based decompilers achieve higher quality than the rule-based Ghidra, but overall recompilation success is low (13.9%). The evidence is based on statistical analysis of 19,625 decompilation results from 318 OpenWrt programs, showing large effect sizes for the proposed nine-dimensional metric.

Caveats 5

  • Logic operations sub-metric had a negative effect size (d = -0.49), meaning the success group scored lower on this metric.
  • Overall recompilation success rate was only 13.9% (2,736 out of 19,625), indicating limited practical success despite high similarity scores.
  • First, although the weights of the three major categories and the sub-metrics were determined based on prior work and preliminary experiments, the optimal weights remain unclear.
  • Second, the fact that the logic operation metric showed a negative correlation suggests that there is room for improvement in the metric design.
  • Third, this study targeted 318 programs, but validation on larger datasets is desirable.

What’s new here 4

  • Introduces a nine-dimensional evaluation metric that adds structural similarity to behavioral and semantic similarity.
  • Provides a large-scale statistical analysis (19,625 samples) linking metric scores to recompilation success.
  • Demonstrates a complementary relationship where high behavioral similarity alone does not guarantee recompilation if structural similarity is low.
  • Applies the metric to evaluate both general-purpose and decompilation-specific LLMs, showing general LLMs perform better.