No Spec, No Problem: Automated ISA reverse engineering with Multi-Agent AI
summary
A pipeline combines deterministic bit-level scripts with LLM reasoning to auto-recover ISAs from an object dump and produces a SLEIGH processor spec for Ghidra; it targets the JieLi JL7012F6 / P32V2 case and also validates on MIPS. The system uses clustering, a bit interpreter, a knowledge manager and a supervisor, calls Anthropic models for hard semantic decisions, generates a Ghidra plugin, and yields usable results (MIPS: 1.6M tokens, $7, ~98% coverage; P32V2: ~90% coverage and a working decompiler output).
AI-written summary · about
chapters (19)
- 0:00Introduction to project
- 2:39Hardware teardown and components
- 5:34Firmware extraction challenges
- 7:21ISA and reverse engineering basics
- 9:10Toolchain and object dump analysis
- 10:55Multi-agent AI pipeline concept
- 14:28Bootstrap and deterministic grouping
- 16:59Text interpreter step explained
- 23:03Bit interpreter and field identification
- 31:37Knowledge manager and consistency
- 32:40Supervisor agent role
- 34:07SLEIGH specification generation
- 36:57Demo and terminal UI walkthrough
- 42:24Testing on MIPS architecture
- 45:15Testing on P32V2 architecture
- 47:01Lessons learned and limitations
- 51:36AI reasoning vs arithmetic tasks
- 53:03Project conclusions and future work
- 54:52Open source and Q&A
