A two-decade reverse engineer now points an LLM at binaries and finishes in days what took years
LLM Assisted Reverse Engineering
A veteran hardware and software hacker describes how LLM agents have transformed his reverse engineering workflow. Using DeepSeek, Ghidra via an MCP bridge, and radare2, he directs agents at binaries, firmware, and websites, has them document findings to Markdown, and forces a hypothesis-driven debugging loop with logged experiments. In six months he reverse engineered an Alphasmart NEO, mapped camera and biofeedback protocols, and built custom firmware for synthesizers and an ebook reader.
With AI-assisted reverse engineering I achieved, in the last six months, reverse engineering successes so wild that each one would have taken me years by hand.
- saidinesh5
Yesterday night, i reverse engineered the cloud connection plugin to my cctv camera in about 2 hours with Gemini.
Started off with me searching for what Chinese OEM made the product. Then tried out existing GitHub projects to see if it works but they were failing.
Spent 15 minutes to write a script that started their desktop software on a different network namespace and ran tcpdump in it. Captured exactly only the things i needed without any noise. Turned out it was using a different server url and credentials than the GitHub projects. Opened Ghidra to inspect the dlls that matched the strings i was looking for.
After that, I got lazy and handed over the task to Gemini to find the username and key they use to authenticate with the servers. It took about 30 minutes or an hour. A lot of it was me changing models because the llm servers were busy. It simply wrote a little script that ran through various strings it fetched from the binary to see if it can generate the authentication credentials.
Now my Home Assistant will be detecting if my car is parked in the parking lot or not. Life is good.
- hexapus
I have zero experience reverse engineering and very little with software development. Most of my work has been in DevOps/SRE space with an emphasis on infrastructure. I am surrounded by code, but other than terraform, and the occasional python script, I don't really write much of it.
Not too long ago, I successfully reverse engineered an abandoned audio effects plugin, as well as a discontinued instrument with an onboard DSP for virtual instrument modeling. I had no idea what I was doing, but it was still amazing to get to open the black box and see what's inside and how it worked.
The plugin is nearly 1:1 as far as sound, and while I'm not going to use the code or the techniques of the instrument, peeking into them gave me the insight I needed to start trying to replicate the functionality on a modern DSP.
I have my issues with generative AI as a technology, but busting open propietary software - particularly when it's abandoned and unsupported, is one of the cooler use cases I've seen for it.
- therepanic
For me, the process is what matters, because it’s through the process that you gain skills, and achieving the final result brings a great deal of satisfaction. When I use AI for reverse engineering, I get neither the former nor the latter.
- 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 is available to arrive at an answer deterministically, it just needs to be worked through meticulously. As an experienced human I have strong intuitions and I can work much faster under a "guess and check" model, but I prefer to use Claude as an "unstoppable RE juggernaut" with superhuman patience and determination, tracing method invocations all the way from A to distant subsystem B (for example).
Another big win for hardware RE is from tasking the LLM with writing unicorn emulation harnesses, e.g. for bootroms and firmwares. It's pretty good at the classic "figure out which MMIO needs to be stubbed/simulated next to progress the boot" loop, although sometimes it tries to take egregious purpose-defeating shortcuts.
- questionedon
I guess Android apps are just easy to reverse engineer or something.
I've had Codex take a few apps with subscriptions and unlock their premium functionality and it's worked fine with no extra skills or anything. Took most of the 5 hour window but with all the resets it's not a big deal.
I also had it implement their functionality fully offline, so now they're perfectly private apps, even though they're closed source.