Back to Devoured - November 20, 2026
DEVOURED
LLM-assisted reverse engineering

LLM-assisted reverse engineering

Tech Slow Chronicle
Modern reverse engineering is being transformed by agents that can iteratively hypothesize, test, and document binary structures in record time.
What: Developer 'ioma8' details a workflow using DeepSeek v4.1 Flash, Ghidra, and custom agent skills to automate hardware and software hacking. The process relies on forcing agents to document findings into Markdown, maintain a CSV-based hypothesis log, and iterate through scientific-style debugging experiments.
Why it matters: This illustrates a shift from slow, manual assembly analysis to an 'agent-steered' exploration model, significantly lowering the barrier for complex tasks like firmware modification and protocol mapping.
Takeaway: Try the 'hypothesis debugging' workflow: force your agent to log every failed attempt into a CSV file to prevent it from cycling through redundant, incorrect paths.
Deep dive
  • Use Ghidra for disassembly and MCP (Model Context Protocol) bridges for agent integration.
  • Maintain a persistent state by forcing agents to document all findings in Markdown files.
  • Use a hypothesis-driven debugging loop: formulate a theory, design a specific experiment to prove it, log the result, and repeat.
  • Prefer Rust for implementing hacks due to strict compiler feedback that prevents agents from generating memory-unsafe code.
  • Use UV for Python dependency management to create portable, single-file scripts for prototyping.
Decoder
  • Reverse Engineering: The process of deconstructing software or hardware to understand its function and design, often without source code.
  • MCP (Model Context Protocol): An open standard that allows AI agents to interact directly with local or remote development tools like disassemblers.
  • Firmware: Low-level software that provides control for a specific piece of hardware.
Original article

I have been hacking both hardware and software for 2 decades. Previously manually. But in 2026 with the help of AIs the proccess is greatly sped up. Below I will describe my proccess briefly or how I do it.

Set Up

Tools which I mostly use are these:

  • DeepSeek Harness + Deepseek v4.1 Flash: Thats the AI I am using. Occasionaly I use Codex with Luna or Terra but Deepseek is super performant, fast and cheap.
  • Ghidra + MCP bridge: The best in the market, free, disassembler and decompiler. With the MCP bridge agents can use it very well.
  • radare2 and kuna: CLI disassemblers and decompilers. Not as good as Ghidra but much faster and possibly better usable for AIs.

Process

What I basically do nowadays is just point the agent at the binary to be analysed and use my set of dedicated agent skills. Rest usually takes care of itself. But putting the skills besides, the flow is basically this.

  1. Find binary type, platform, build etc - based on this using appropriate decompiler (note - current AIs do fairly well with just disassembly . ie pure x86 or ARM instructions).
  2. Command agent to document all findings along the way to MD files. This serves several purposes. They become notes for your own understanding. They help the agent not lose the track after compaction / handoff to different agent. And last but not least, it helps the agent work more effectively, not get lost in circles etc. More about this later.
  3. Ask the agent to analyse basic structure. Main functions, main branching, imported functions etc of given binary. By binary I mean whatever. Desktop executable, website or firmware image.

Once I have this basic overview I can usually proceed any way I need to do modifications to the original binary or build mods or just help me understand it better.

On some occasions some things are not easily resolvable by simple disassembly or decompilation. In those cases you can do:

  • Let the agent debug given binary and set breakpoints on specific parts to help it figure out given inner workings.
  • Use logging. Either by somehow enabling it in the original binary or by making a probe (and this can mean many things) that injects to the original binary and records you via logs (to file) whatever is needed to resolve given feature.
  • Give agent outside access - ie computer use for desktop apps, or api controllable emulator for running and controlling given firmware.
  • Ask agent to try different approach. But you must be specific. Ie when it gets stuck in disasembly by following xrefs, ask it to try to follow strings in the binary instead.
  • Read the entire LLM conversation and thinking. Current LLMs are smart but they still sometimes get to a narrow approach. By reading the traces you can often instinctively figure the agent it going into a blind path and give it suggestion as to how it might be approached better. That however skill of your own to have.

SKILLS

Here are some of my major skills I use frequently.

Matt Pottock - Grill me

It gives you several questions when your input might be valuable. I usually use it with this prompt:

Use skill /grill-me to ask me up to 5 questions
whose answers are crucial for your further progress.
Ask only one question at a time.

Ghidra / other RE tooling skill

It helps a ton to have a skill where your specific reverse engineering tooling is described. Ie to use radare2 or kuna. Or description of how to use the MCP Ghidra bridge and for what. Without such a skill, agents often give up too quickly getting lost, not knowing how to do the actual disassembly / decompilation.

Hypothesis debugging

That is also my own skill. Its related to how I wrote earlier how important it is to make the agent document everything into MD files. This skill forces agent who is getting stuck to follow this loop:

  1. Make a hypothesis of why / how something works. Write it down into CSV table of hypotheses, saved on disc.
  2. Design experiment (probe, logging, ...) which will definitively prove or disprove this hypothesis.
  3. Record the result.
  4. Repeat.

Implementation of hacks and probes

For implementing anything I basically go for 2 toolings.

  1. Python but with UV tooling. UV tooling allows to make custom envs super quickly and portably. Also allows to make single-file, inline dependencies scripts. Python is great for prototyping or quickly making probes or even decompilation helpers.
  2. Rust for actual implementation of given hack. Whenever it is possible I am using rust for this. It has many reasons but he two main are:
  • it is very elegant language for me personally to work with and
  • it provides brutally good feedback loops to the agent when it iterates - the compiler is very strict and points the agent immediately to any possible memory or syntax issues he might be heading to.

My hacking successes

With the AI assisted reverse engineering I was able to achieve such crazy reverse engineering succeses, in the last 6 months, which would take me years each on its own, if done by hands.

  • Reverse engineered and hacked Alphasmart NEO typewriting device
  • Completely mapped communication protocols of many devices like EmWave biofeedback device or both my Sony Alpha mirrorless cameras.
  • Hacked into and developed custom firmwares for musical synthesizers:
    • Arturia MiniFreak
    • Teenage Engineering OP-Z
    • Akai MPC Sample
  • Made custom firmware for Xteink X4 ebook reader
  • Fixed driver for old HP printer for MacOs
  • Cracked tons of license-locked abandonware softwares from my youth
  • Developed custom lightweight Evernote client

Final thoughts

Reverse engineering and hacking into old softwares or devices has always been a hobby for me. I understand assembly, I understand hardware. But it was long and tedious process.

With the cheap accesibility to smart LLM tools in these days, this hobby took dramatic turn for me. I do not miss manually analyzing the assembly instructions. But I love quickly getting the results. Yes my long experience helps me steer the agents the correct way. But that is also fun. And I am learning a ton of things along the way.

I wish everyone would try to do some hacks of his own. For me the hobby is driven by curiosity. And LLMs didn't take that away. They gave me turbo boost to my wonderings and explorations. Let's free our minds!

Explore all 56 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi