Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

LLM assisted reverse engineering (https://www.slowchronicle.com)

303 points by ioma8 1 day ago | 78 comments | View on ycombinator

saidinesh5 1 day ago |

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 1 day ago |

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.

jedjonesuk 1 day ago |

Reverse engineering is one of those areas where the depth of the knowledge and the trouble solving really shows up for me. Two things I reverse engineered this weekend:

1) My kid has a toy from china where you put a USB cartridge in and get stories in Chinese with pictures. This is itself a rip off of another product of which I forget the name. the cartridge is just a normal USB but the file on disk was just a .dat file so you could buy more stories online, and then download them. It figured out in about 15 min, they just had a combined format which just concat all of the input together with all text base 64 encoded. So manifest|pagetext|image1|image2 and everything just had to be just the right format and then it would work. It wrote a script to make a story from a folder input, but also wrote a skill to write a story, make pictures etc from the idea.

2) I was looking into a shelf my wife wanted, but didn't want to spend the money on. I took the 4 or 5 product images from the websites, dumped them into Claude with mcp to freeCAD and an hour later it has completely recreated a working cad design of the product, produced a pdf on how to assemble it, and allows me to make edits and changes to tweak the product to my preferences. The interesting thing about this one is while following its work, it clearer identified the actual original product at some point despite there being zero obvious indicators in the pictures.

Retr0id 1 day ago |

> 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.

ofrzeta about 1 hour ago |

LLM assisted reverse engineering can also be a kind of "repair", meaning making things work again that have been abandoned by the original manufacturers. I did this for old audio hardware and for different CDROMs (remember them?) whose software stopped working on modern Windows, let alone Linux or Mac.

drltaidev about 22 hours ago |

I appreciate the typo in the very first line to make sure it's (probably) not written by AI... (jk)

But more seriously, I'm curious about your use of skills (your own and others), it always feels to my like they are really just simple pieces of text... that you might as well just ask for yourself, exactly tailored to your current situation. In particular, if using speech-to-text for input, it's easy to just ask for all these things quickly, and it becomes more about understanding the general principles of what to ask for when (e.g. when to ask for clarifying questions, when to loop).

What is the value of having these predefined skills, especially using those written by others? Genuine question, I'm not saying I don't see the value, just curious about perspectives. I do use skills, but always my own (written by AI from my prompt), for things I do often, or to ensure that the AI uses certain tools I want it to use (for more reliable results, let tools/code do the work they can do well, let AI do the rest).

questionedon 1 day ago |

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.

bubulux about 19 hours ago |

Over the past few weeks, I reverse engineered three different Android apps to get access to hardware features of my lighting and camera equipment.

For those interested: I reverse engineered the controls for the Aputure MC lights, Neewer COB lights, a Hollyland video transmitter, and my BMPCC 4K/6K cameras (last one didnt really rely to much on reverse engineering, its a open protocoll, but we did have to be creative with some signals).

I needed this because I wanted full remote control through a single interface in an app I’m building, which also lets me program light sequences across different manufacturers.

For example:

a) I can program a sequence of light events (like keyframes) for my 12 Aputure MCs and my 2 COB lights, with features such as transitions, easing curves, color changes and intensity.

b) I can control the camera feed options for the transmitter signal (toggling false color and the 3D LUT feed) and do other useful things remotely, like hitting record or changing ISO and aperture, all while watching the video feed directly in my app.

I did all of this in a weekend with Claude, and the experience was genuinely humbling. I don’t want to go into too much detail, but there was nothing he couldn’t build for me. It sometimes took a fair bit of trial and error, and we dug into plenty of obscure signals from the hardware controllers, but in the end every single feature I had envisioned worked flawlessly, without a single compromise. From the moment he decided to decompile the Android apps, things just started clicking into place one after another. I can’t remember him needing more than two attempts for most of the work.

And I have zero experience with hardware programming. I’ve been a frontend dev my whole career.

therepanic 1 day ago |

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.

crc32 1 day ago |

I reverse engineered Civ 1 [0] to what I believe is a build sympathetic to the period. It felt a bit like software archaeology.

It took a while to get started - to begin with I think I overengineered the workflow. It was only when I rolled things back a bit and let the agents guide themselves that I started getting the best results.

They still ended up building a lot of tooling - whether or not that tooling would be useful for another decompilation project remains to be seen! MSC51 is relatively simple and the linker ordering even bounds possible variable names; so it's a pretty nice target.

[0] https://github.com/sjmelia/civd

xvilka about 20 hours ago |

This is why we work on making Rizin[1][2] (the engine behind Cutter[3] GUI tool) easy to use by the AI agents, both local and from the Web-interface. Because it's a tool (and a library) in pure C with very few dependencies and has well-defined (as YAML files) CLI/command interface, as well as JSON output for most of the commands, tuning it to be suitable for the AI assistants turned out to be relatively easy. Just make sure not to use the last (0.9.1) release but from current git "dev" branch, since all those improvements landed only recently and will be made into 0.10 release in 1-2 months. We also have experimental MCP server[4], but honestly, most frontier models work with CLI tools directly just fine, if not better than through MCP. Please let us know, if you meet any new (not already in issues) bug or suggestion for the improvement for such use case.

[1] https://rizin.re

[2] https://github.com/rizinorg/rizin

[3] https://github.com/rizinorg/cutter

[4] https://github.com/rizinorg/rizin-mcp

teravor 1 day ago |

for LLMs, IDA Pro works better than Ghidra in my experience.

you can also steer the LLM into doing tedious but correct things like injecting code, hijacking functions, intercepting data etc to gain an understanding of what's going on if straight up disassembly doesn't appear to be going in the right direction.

have the LLM periodically write reports on all its findings and then wipe the context and reset this time with the report at hand.

rendaw about 22 hours ago |

Reverse engineering with AI is really the first lever consumers have had to fight back against abusive companies since computers/software started being in everything.

It's surprising to me that anybody here is against it. Given how far things have tilted towards the companies, and that there's already legal ways to prevent piracy, it seems hard to justify vilifying it for "protect the indie games" alone. And I find it hard to believe that indie games are actually being impacted... there were a million Vampire Survivors clones before AI and I doubt anyone wants to play the slop clones anyway. The "don't reverse engineer that 25 year old game you bought so you can play it again on modern systems after we neglected to support it" are the most transparent of corporate greeds. Maybe I'm out of it.

thesash 1 day ago |

This is honestly so much fun and unlocks so many different things that would have died as ideas a few years ago.

One of my favorite things that you can do is use llms to reverse engineer the harnesses they run in. Try asking claude about the tools it has access to, where it runs etc. It's surprisingly forthcoming with info, which is very helpful if you're building certain kinds of tools.

Also shout out to Matt Pocock's grill me skill, it's truly a work of art.

tqi 1 day ago |

What is the state of software patents these days? People are barely looking at the code their agents generate, what happens when if/when infringing stuff is shipped? Do we implicitly take on liability for this when we "review" and "approve" pull requests?

komali2 1 day ago |

How are folks getting around anthropic and openai guards against reverse engineering? They keep complaining when I try so I usually use Deepseek which doesn't seem to give a shit.

Actually, it does give a shit, in Mandarin only. In thinking it's mentioned "restrictions in Chinese language against this behavior but this is in English so it should be ok." If I remember correctly I was asking it to scan local wifi for any vulnerable devices I could put on a wall of shame at a hackathon.

zerovv_ 1 day ago |

context is always a problem as you lose too much info during the process

bismanawaz about 16 hours ago |

where does the agent run the binary?? VM, emulator??

jonathanstrange 1 day ago |

I'm interested in AI-assisted code obfuscation. I'm particularly interested in Go but also in other languages. Has anyone experimented with that at the source code level?

sylware about 23 hours ago |

Who is going to de-compile/reverse ngineer GTA VI to make it run natively on "linux"?

undefined 1 day ago |

undefined

jing09928 about 8 hours ago |

[flagged]

tahiryounas604 about 21 hours ago |

[flagged]

binarybriefing about 17 hours ago |

[flagged]

mdmizanur0001 1 day ago |

[flagged]

SparkleQwen27b about 21 hours ago |

[flagged]

sksareen1 1 day ago |

[flagged]

mdswanson 1 day ago |

Just a friendly reminder that reverse engineering can have rules and regulations that are worth reviewing. For example, Apple's developer agreement specifically disallows it in certain cases.