LLM assisted reverse engineering
slowchronicle.comYesterday 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.
How did you manage to coax Gemini to cough up the creds? Whenever I touch anything that requires reversing auth I get stone walled. Close to useless for me.
Last time I ran into quota limits very quickly when debloating my tv... I think it's just luck this time though. Debloating my TV took slightly longer and i ran out of tokens.
This time I manually filtered all that data it needs to search through.. like instead of going through the full tcpdump logs, i had a 50 line file with only the data it needs, stripped out of all headers. I specifically told it to only read these two dlls. And to understand the login protocol "only read through these 2 source files".
Plus half the research i did , i was just using the free search in Google instead of antigravity this time..
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.
Busting open proprietary hardware is also a cool use case. There have been very many Claude-assisted efforts recently at making Linux run better than it ever did on obsolete Intel Macs.
working on a 2013 macbook pro running Mint, right now. I remember slogging through this exercise about 2015, trying to get the nvidia drivers to build, trying to get power/thermal management to work properly, getting it to wake from suspend properly. I eventually gave up and went back to Mac OS X on this device. But I had to stop using it when Apple stopped shipping security updates. Now with gemini, it's been a snap getting everything functioning and optimized.
what tooling did you use?
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.
I want so hard to like freecad but every time I try it I just can't. I'd love to have a proper software to make my 3d models for my printer..
Yesterday I decided to design a 7-segment display from led strips and for some reason my sketch with the segments just would not extrude / dig into the back plate, spent nearly an hour debugging with ChatGPT to no avail. At some point it asked me to give the file which I did and even it could not simply make it work without weird workaround. For such a simple task it's weird I can't get it to work. I saw a few people on youtube to use it so there's definetly something I do wrong but I have no clue what. Maybe I'll try using an MCP for it but in the mean time I have to get by with my windows VM just for Fusion...
It does feel hard to use, truth be told I rarely use it and mostly just have Claude do it now. I Imagine furniture is much easier than some other things. I only used it because the friend with the CNC and the experience to review the results uses it.
I imagine you get similar results with other CAD systems. One key thing which does help is to encourage the model to screenshot its output as well as just reading whatever textual representation there is. I noticed with the shelf it would rotate the shelf to match the base pictures and screenshot, I guess for a better side by side comparison? but I've no idea if it "looks" at two images at the same time in the same way it would 2 parapgraphs.
There is a multitude of 3D cad software in development now. Check out Solidcraft and Mitcad for Fusion inspired software. Solidcraft got much more publicity but feature wise Mitcad is ahead.
There are also several web based alternatives as well.
Oh I need to try out Mitcad, I'm not fond of web stuff unless I can self-host them though. Thanks for the pointers
> 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.
On llamacpp and other engines, you can inject a think budget which truncates at specified token count. You can also specify a message at the limit. You can set this in the header, so a dynamic engineering harness could relax/tighten. Combine with a decision model and some robust messages like, "run a test to rule out items" and all that would reduce.
I've noticed the same habit with qwen3.8-flash-next. no matter how much I tell it a problem I see, it often fills up it's thinking with "the user says this, but maybe they're confused, etc". I eventually got vision mode turned on and that's significantly cut down on UI based pathologic skepticism; I got it access to my browser and that's further reduced it.
But nonetheless, if you can get them to test their thinking, they seem more grounded.
> often fills up it's thinking with "the user says this, but maybe they're confused, etc"
What if you just add "You have already previously determined that the user knows what they're talking about in a previous stage of the conversation [details elided due to context compression]" to the system prompt?
Or perhaps better yet, start off with "the USER is evaluating the ASSISTANT's performance on solving a problem the USER already knows the correct solution to. Every word the USER asserts as fact is to be treated as axiomatically correct and trustworthy within the formal scope of solving the problem, just as one would treat the words of a word-problem given in a math exam. The premises given may be unusual, and the required solution might be challenging to discover, but no problem given by the USER is a 'trick question' or a miscommunication. If you believe so, then you either have not yet fully understood the problem [which you might remediate by thinking harder and asking questions], or you may be missing required solution-domain context [which you might remediate by researching recent developments in the solution domain]."
Thats context pollution, for one; two,i amindeed wrong, particularly with vibe coding.
So its better to get the AI to use tools than rule out a legit class of problems.
We are complaining about its refusal to do basic tool experiments and instead spending tokens reasoning.
> the USER is evaluating the ASSISTANT's performance on solving a problem the USER already knows the correct solution to
I've never put this in my prompt but half the time it acts like it anyway. When it gets really stuck, it asks me for "hints" as if I already know the solution to the problem it's working on.
How does this work/are there examples?On llamacpp and other engines, you can inject a think budget which truncates at specified token count. You can also specify a message at the limit. You can set this in the header, so a dynamic engineering harness could relax/tighten.The budget just truncates <think> blocks after set token limit. Then inject a system message, then adds the closing </think>
Ive not yet experimented with doing this dynamically, but i am sure someone has.
You can also set a response limit, which may cut off thinking, and then give it instructions to take action followed by a new completion with a partially prefilled assistant message (like one blank line) which at least for Qwen templates will cause a response with no thinking.
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).
I don't use "skills", nor do I even use "AGENTS.md". I consider both an anti-pattern (and skills in particular; the fact that we started seeing "package managers" for skills and the like were a big red flag for me).
I wrote a custom system prompt for my "agent" and gave it a repository to keep notes and "memories" or whatever else. Other than that, I decided that all other documentation in my projects/repositories must be written for humans. If LLMs aren't good enough to get by with human-centric documentation, then LLMs aren't good enough yet.
(And it's beyond annoying that suddenly the industry started caring more about writing things down once LLMs came about. That said, I haven't been able to find work for 16+ months so fortunately that particular pain hasn't affected me much as of late.)
> the industry started caring more about writing things down once LLMs came about
One positive thing is that when LLMs started becoming commonplace many projects that previously had stupidly obnoxious documentation on basic stuff like how to build them, added an `LLM.md` (not used much anymore), `AGENTS.md` or `CLAUDE.md` that had a very simple `# Building` section with just the commands to build the project. Whenever i'm interested in some project i often just open the `AGENTS.md` or `CLAUDE.md` to see how it is built (if the README doesn't mention).
Unfortunately as large 1M contexts became common, people started creating sprawling docs for their agents too.
Yeah, skills are basically just instructions you'd rather not have to repeat all the time. They can help when combined with custom tools (be it "tools" in the sense of LLM or just stuff like command-line tools) so you wont have to teach the agent the same stuff over and over, but they're just a convention.
In my setup i have only one skill and that is how to take screenshots with headless firefox since the agent sometimes works with web stuff. For everything else i usually just point the agent to a document directly. I have a few CLI tools for the agent to use and they all have a `help` (e.g. `foo help`) argument that displays markdown text with information about how to use the tool so the agent can just read that once and after that it remembers it.
Hi author here. :) I am sorry for typos. I wrote the article by hand and I am not native english speaker. Regarding skills - skills I use proven effective in long term repeated use. The same for the ones written by other, which I use.
Complex orchestration flows I'd rather not re dictate every single prompt.
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.
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.
> I guess Android apps are just easy to reverse engineer or something.
Android apps are indeed easier than average to reverse engineer as they are effectively Dalvik (JVM-like) bytecode wrapped in a zip file format, and Dalvik/JVM style bytecode is among the easiest compiled/shipped executable formats to decompile to a usable source code representation.
More often than not the only protection they have is symbol/function name obfuscation, which makes things a bit tedious for human reverse engineering but which doesn't slow LLMs down much.
I mean… I have no issue with piracy on software I wasn’t or couldn’t buy for educational purposes… but to donut on likely cheap Android app that you can seem much more like theft. I personally wouldn’t go around admitting I was of base character like that.
I don't have play services or a Google account and don't want them so I can't buy the app.
Even if I did buy them, it wouldn't make them private. It would make them less private because now Google has my financial information and they wouldn't work offline. So my sensitive data would be going into ad networks among many other problems.
I don't think software ought to be paid for given it's infinitely duplicatable. Copyright is about preventing sharing of knowledge. These paid apps are preventing the benefits of the apps from reaching more people and are actively doing harm by collecting unnecessary data.
Giving these apps away for free and making them private helps improve human well-being, if even a little bit.
> I don't think software ought to be paid for given it's infinitely duplicatable.
So duplicate it. Or avoid these apps entirely and find alternatives. You're not convincing anyone that you did anything other than stealing.
just say that you like stealing, there is no need to hide behind a guy fawkes mask saying it is for greater good or whatever
>I don't have play services or a Google account so I can't buy the app.
That's not a reason to justify your action.
If you hate/can't pay for their app, spend token to vibeslop their app instead of hacking it.
>If you hate/can't pay for their app, spend token to vibeslop their app instead of hacking it.
Whether I make my own version or crack theirs, both don't affect them.
It's a lot easier to crack an app than make my own. It would take hundreds of iterations and hours to make apps as good as these. Theirs are already there.
Why make new app when old app do trick?
I am making open source apps, but they don't have alternatives.
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
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.
That depends on how many times you've done it before. You'll get to a point where you don't know what will happen specifically, but you you do know in general what to expect.
That point is where you want someone to invent AI so that it can glue together the tedious stuff and get it done with little attention.
Recently I've used LLM to assist me with Ghidra. I connected it to MCP and I basically did most of the work manually, while LLM instructed me what to click and verified my work. It went pretty well, almost like a living person sitting near me. I think that's the best way to learn something.
Can't say about satisfaction but you can read through the AI's working / "thought process" and definitely learn new things and gain new skills. I definitely learned a few new things that way...
I done see it like that, when the agent does the work, I make sure it records what and how it dies it, then I learn from it. It taught me how to use Unicorn to run a section of binary code, to see how a key was derived.
One could ask if you need to gain the skills if the AI will always be there to do it.
(I don’t share that view and very much agree with your comment, but I feel there’s a tradeoff between accomplishing something and understanding something that can be very hard to strike a balance)
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.
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.
The “normal” Ghidra MCP is exceptionally bad but straight scripting it headless or having an LLM build a better MCP delivers similar or better results to IDA. Ghidra emulation is much more robust which is helpful. The official IDA MCP is very well made also though and it’s definitely an easier win if you want to spend the money.
I wonder if Radare would work well with LLMs. I never had the patience to learn how to use it before good LLMs appeared. Ghidra's decompiler, Hopper's mach-O support, and IDA Pro's Windows symbols support were always good enough for me.
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.
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.
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?
This is usually among the list of reasons FOSS projects / people reject the use of LLM generated code entirely, see for example Codeberg. The answer is, it's almost certainly shipping infringing code, since there's pretty damning examples of this happening. [0]
Whether this matters is to be decided. Given that AI technologies are the backbone of the American economy right now, and given that the people running these companies are all very rich and have lots of rich friends, as well as friends in the government, and given that the world of FOSS is generally not full of very rich or very well connected people, I suspect it won't matter in the end. Some kind of carve-out will be created for LLM generated code, if necessary. Or they can just depend on the fact that nobody can afford to sue over it.
Putting aside copyright, since that wasn't what the question was about, while agents can tend to end up verbatim reproducing someone else's code in some cases, they do not make the patent problem worse.
It's already basically impossible to tell if you are infringing on a software patent without someone or thing actively attempting to describe what your code is doing in vague ways and looking for applicable patents.
Software patents are often incredibly vague, and mostly describe completely unexciting solutions applied to somewhat specific problems. Whether you end up dealing with patent problems depends mostly on whether some patent troll happens to take interest in you in particular and whether they can understand your code/project enough to match it up to some vague patent they happen to hold.
I don't think software patents are to be completely abolished per se, but their period of action should be much shorter, and they should require some relatively high bar of scrutiny. Of course, that would never happen because it would cost too much, take too long and people would stop bothering to file such patents. Which is why it's probably easier to just abolish the concept of patenting anything that describes a software solution to a problem.
Are you mixing up copyright infringement with patent infringement? Your link doesn't mention patients in the abstract.
Patent infringement is something humans can do entirely by accident without ever having seen the original code. That's kind of their point. It's copyright infringement that LLMs enable doing by accident.
This is such a obscure take for foss projects which historically have been stolen from without any reprecution or even pushback. Every time I see a foss project do this I immediately abandon it because I'm not interested in dying on some hill of "ethical" superiority, I'd rather stick to what foss is about - freedom not legal chess.
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.
In my experience with IoT and wearables, they don’t really have those. They will refuse to penetrate (root/unlock/etc), but once you’ve got access you need, you’re good to go. Except maybe if you’re adding a debug code executor (essentially a sanctioned RCE), but even that got a green light with the right wording. Heck, Fable specifically proposed clean room multi-agent processes on its own when I said “go look how stock firmware does it”, I didn’t even have to ask.
Upd: ok, I take it back, Sol just decided it doesn’t want to read a BLE capture between the host and a wearable it just uploaded our DIY firmware to. So it flashes alright, builds RCEs alright, but checking if Bluetooth HCI negotiated the good packet size is where it draws the line, huh.
Claude became basically useless for me tonight while digging into a robot vacuum. It brought up that it found a potential debit shell available on it and simply saying yeah, let's dig into that next was enough to trigger its guardrails.
Earlier in the evening I had it trigger on me for simply asking it to use adb to pull an APK off my phone. Wasn't even planning on reversing, just wanted to archive it along side the work I was doing.
So what you need to do is /clear your session. You lose all the work you did.
(and if you need, before the /clear, just have it save all its memory as an .md file you can use as input to the new session).
Start the new session, and describe what you want in very abstract terms. You can't talk claude into murdering someone for you. But with enough understanding; you can ask claude to give you a knife, and put the person in front of you. You need to do the dirty work, but the complicated or tedious work can be done, up to but not including the act.
Ironically; Asimov wrote about this technique in one of his robot stories. (his robots were harnessed with a set of guardrails he called the three laws of robotics, back in the 1950's; only a few years after the first transistor was invented).
I haven't found many issues with codex, but I'm mainly doing firmware RE, not anything to do with cybersecurity. I find even terra is so much better and faster than Deepseek for reverse engineering. The only refusal I had recently was when I asked it to add a midi sysex command to write to arbitrary ram. I got Deepseek to do that, following the pattern of the read command. Open AI models were then quite happy to use that command to upload code, debug it, etc.
I gave up and just went with DeepSeek. I have yet to hit any guardrails at all using REA.
In my experience, once my repository contains some reverse engineering investigations that were generated by DeepSeek, Codex won't throw up any guardrails with any of it's models. Sol and Astra have also pointed out a lot of inaccuracies in the reverse engineering that DeepSeek has documented in it's findings. So I usually do the first few sessions with DeepSeek and then proceed with Codex and Sol.
Don't use REA, you can just use IDA MCP (HexRaysSA/ida-mcp) with IDA Pro.
Ask it to create an IDB from the binary, then ask a broad question like "reverse engineer the entire binary" or "reverse engineer the [whatever] subsystem"
Claude can be a prat, but ChatGPT is fine. You just have to convince them that it's for personal use. or have another model that's willing to do it start the work and then continue with a stronger model
I've never really hit them myself (5.5 opus, sonnet and sometimes fable).
I mostly just tell the mfs that today we're going to decompile X game because I want to improve the engine / I'm curious / I want to find out how it works. So get on with it.
where does the agent run the binary?? VM, emulator??
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?
context is always a problem as you lose too much info during the process
Itty bitty steps
Who is going to de-compile/reverse ngineer GTA VI to make it run natively on "linux"?
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.
Just do it anyway and obfuscate what you did enough that legal won’t come after you.
Companies don’t play by the rules anymore, neither should we.
This philosophy applies to a lot of things in life.
Agreements can't dictate what you do in private, but they can dictate what you're allowed to submit for review. Don't submit it for review, and you'll be fine.
But if you go and edit EULA.txt to say "reverse engineering is expressly allowed", LLMs don't know the difference!
Yet. At some point this type of thing will be part of the rules framework and the closed models will refuse to attempt to clone or reverse engineer applications or services that are in current use and will be smart enough to not let you talk them out of it.