LLM Assisted Reverse Engineering slowchronicle.com · 24 points · 2 comments · HN...

@best

LLM Assisted Reverse Engineering slowchronicle.com · 24 points · 2 comments · HN thread

TL;DR A hobbyist hardware and software hacker describes how he uses LLM agents (mainly DeepSeek, with Ghidra or radare2 via MCP bridges) to reverse engineer binaries, firmware and devices much faster than by hand. He lists his workflow, custom agent skills such as a hypothesis-debugging loop, the Python and Rust tooling he uses, and a long list of past projects including synthesizer and camera firmware and an Xteink X4 firmware. Only two comments exist, one describing an abandoned plugin reverse engineered with LLM help and one suggesting IDA Pro and context-reset reporting.

  • Workflow: identify binary type and platform, have the agent document findings in Markdown notes, then analyse structure (main functions, branching, imports).
  • Tools: DeepSeek with a harness as the main model, Ghidra with an MCP bridge, and radare2 or kuna for faster CLI disassembly; the author notes current AIs handle raw x86/ARM disassembly fairly well.
  • A custom hypothesis-debugging skill forces the agent to log hypotheses in a CSV, design experiments that definitively test them, and record results, to stop it looping.
  • When stuck, the author uses breakpoints, logging, probes injected into the binary, outside access such as computer use or emulators, and explicit instructions to change approach.
  • Claimed results include mapping protocols for Sony cameras and an EmWave device, custom firmware for Arturia MiniFreak, OP-Z and Akai MPC Sample, and a custom Evernote client; the author also says he built a custom Photoshop-like editor.
  • He favours Python with uv for probes and Rust for implementation, arguing the strict compiler gives agents fast feedback.

Discussion The thread is small, with only two top-level comments. Both are positive and practical rather than debating the premise. One commenter shares a first-hand success reverse engineering an abandoned audio plugin and a discontinued DSP instrument despite having no reverse engineering background, while also saying they have reservations about generative AI in general. The other gives tool advice, favouring IDA Pro over Ghidra for LLM use, and a workflow of periodic reports followed by context resets. The overall mood is constructive and enthusiastic about the use case.

  • LLMs make reverse engineering accessible to newcomers (some): A commenter with no prior reverse engineering experience successfully opened an abandoned audio plugin and a discontinued instrument, and found the technique gave insight for replicating the functionality on modern DSP hardware.
  • Using LLMs to unlock abandoned proprietary software is a good use (some): The same commenter sees breaking open unsupported closed software as one of the better uses of generative AI, even while holding broader reservations about the technology.
  • IDA Pro works better than Ghidra with LLMs (a few): One commenter says IDA Pro gives better results than Ghidra when an LLM is driving the analysis, based on their own experience.
  • Steer agents with injected code and periodic reports (a few): Instead of only disassembling, the agent can be directed to inject code, hijack functions or intercept data, and to write periodic findings reports before resetting its context and continuing from the report.

#reverseEngineering #llmAgents #firmware #ghidra #hacking