← Lab /Software

InSPECtor uncovers over 38,900 discrepancies and 125 bugs in open-source SLEIGH processor specs

Their proxy-based testing framework systematically validates SLEIGH specifications and reveals thousands of errors

Software arXiv 13 Aug 2026 Measurement Prototype evidence

Published as “InSPECtor: Improving SLEIGH Processor Specification Veracity via Proxy”

Why it matters

Improving SLEIGH spec correctness directly enhances the reliability of downstream disassembly, decompilation, and emulation tools used in security analysis.

Summary

InSPECtor uncovered over 38,920 discrepancies in open-source SLEIGH processor specifications, which the authors distilled into 125 unique bugs with fixes submitted to Ghidra maintainers. The framework automatically traverses SLEIGH specs to generate exhaustive instruction encodings and initial states, then differentially tests emulators against real hardware, achieving 96-99% constructor coverage across five ISAs. The evidence is strong, based on millions of generated test cases and hardware-validated differential testing, though many discrepancies stem from unimplemented or hardware-specific behavior rather than true bugs.

What they found 2

  1. 38,920 discrepancies leading to 125 unique bugs were discovered across five architectures.

    “we uncovered over 38,920 discrepancies that led to 125 unique bugs with proposed fixes”

  2. JuxtaPlayer identified 589,713 raw discrepancies, which grouped into 38,920 unique constructor combinations.

    “JuxtaPlayer discovered 589,713 discrepancies between the output states of the SLEIGH-based emulator and the hardware reference system corresponding to 38,920 unique constructor combinations after grouping.”

Caveats 3

  • many of these stem from hardware/processor-specific instructions (see Appendix C), or from instructions that are not fully implemented in the specification13.
  • there was a total of 460 constructors without corresponding test cases identified by GenSYS.
  • Unimplemented behaviors often arise for recently added ISA features, or instructions with difficult semantics to directly express in Pcode.

What’s new here 4

  • First systematic, automated validation of SLEIGH specifications via proxy differential testing.
  • Symbolic traversal of SLEIGH decoding rules to exhaustively generate instruction encodings and targeted initial states.
  • Integration of a high-coverage test-case generator (GenSYS) with a differential testing harness (JuxtaPlayer) across multiple ISAs.
  • Open-source release of the InSPECtor toolchain for the community.