← Thu, Nov 19 digest

LLM assisted reverse engineering

read article ↗ hn thread ↗

A developer outlines a practical workflow using LLMs and Ghidra MCP bridges to rapidly reverse-engineer binaries, firmware, and hardware protocols.

read it Provides a firsthand workflow and toolchain for using LLMs to dramatically accelerate reverse engineering projects.

summary

An experienced hacker details how combining LLMs like DeepSeek with decompilers like Ghidra via MCP bridges accelerates reverse-engineering tasks from years down to hours. The workflow relies on strict documentation loops, hypothesis-driven debugging, and strict-compiler languages like Rust for implementation. Commenters enthusiastically validate this approach, sharing similar rapid wins with Claude and Gemini across hardware and software.

key points

  1. Use continuous Markdown documentation files to prevent the LLM agent from losing track across context compaction or handoffs.
  2. Implement a hypothesis-testing loop where the agent writes formal hypotheses and designs explicit probes instead of endlessly guessing.
  3. Leverage Rust for implementing hacks because strict compiler feedback helps the LLM catch memory and syntax errors quickly.

who should read it

Security researchers, hackers, and software engineers interested in using generative AI to automate reverse engineering tasks.

discussion warm

consensus

Commenters overwhelmingly share enthusiastic success stories of using frontier LLMs to quickly reverse engineer abandoned software, hardware plugins, and device protocols.

pushback

A few commenters note frustration with LLMs getting stuck in endless guessing loops and emphasize the need for careful oversight or strict hypothesis-testing methods.

best comment by Retr0id ↗

> This is variation of scientific method and it significantly helps agents when they are getting stuck on some problem. Stops it going in circles. By forcing it to do definitive experiments. No endless guessing and trying random things.

These "guessing loops" are my main annoyance when REing with Claude (mostly Opus 4.8, due to the restrictions on newer models). On harder/larger targets, I have to constantly babysit it and tell it to "stop guessing".

For truly black-box reverse engineering, yes, hypothesis-testing is the way to go (it's all you can do). But in most cases all the information …

It details the common annoyance of LLM guessing loops in black-box reverse engineering and contrasts it with deterministic tracing.

Generated by an LLM from the article and thread. Check the sources before relying on it.