Copy protection in the AI Apocalypse

I don’t know much about AI (nor do I want to “learn”) but from what I see online it looks like anyone with a token or two in his pocket can now basically decompile and crack/mod/steal any software and the IP within it.

In this context does it make any sense to still implement complicated copy protection measures?
Is a simple license check just as (in)secure as any possible obfuscation mechanism now?

I think the advice hasn’t really changed since pre-apocalypse days: make the experience as smooth as possible for legitimate users, making them feel like they own something of value; spend more effort bringing value to your customers than bringing inconvenience to people who aren’t paying you. Having a simple licensing system will deter casual freeloaders and having a complex one still won’t deter determined crackers.

6 Likes

AI can reconstruct code from in memory loaded plugins.

This essentially means that all copy protection schemes, including iLok, are now completely useless.

Bear in mind that most plugins get cracked and put onto pirate sites anyhow. I expect a lot of previously ‘uncrackable’ plugins will now be making an appearance on such sites.

This, along with the tsunami of mediocre vibe-coded plugins is a bit discombobulating at the moment.

There will be market correction. You have to offer something that people will buy into and support. Maybe an eco system, something online.

But I think copy protection companies like iLok are in serious trouble - I can’t think of anything they could do to prevent what is happening.

1 Like

FWIW I’ve yet to see any of these reverse-engineering AI tools (prompts) actually produce any quality results.

There was that story about the guy who “reverse engineered” the whole Adobe suite but if you actually check out those apps they’re completely useless.

Just focus on making a quality product. If it’s priced reasonably, people will pay for it.

4 Likes

He didn’t reverse engineer anything. He told Claude to build a clone version with the same functionality and the same menus/buttons. Pure vibe-coder that has no idea how anything works.

I’ve personally used Claude to instruct it to analyze code with Ghidra and it took only minutes to figure out exactly how various algorithms work and was able to build new code on the same principle. It is truly scary. When it got stuck (copy protected code) it wrote it’s own disassembler, hooked into the running app via a DLL (the app needed to load) and disassembled the code in memory directly to see what it was doing. Took maybe half an hour.

My horses in all five good Assassins Creed games no longer have a speed limit in towns/POIs, and some of the code was protected by a very strong, well known, copy-protection. The patcher simply modifies the bytes in memory after the copy protection decrypted them. It even looks for the original code by a signature, not a fixed offset, so future updates won’t break the cheats.

@Nitsuj70 is 100% right. The only saving grace is that Claude Code is refusing to tamper with the copy-protection itself. Other models might not be so cautious. I don’t think any of the open-weight models have these kinds of restrictions.

4 Likes

After fiddling with this for years and failing, it literally took hours to clean room implement recycle format decoder (VelociLoops). I didn’t even give the model access to the binary, except analysing my previous research and documentation and give it access to example output files exported by the original sdk. I’m pretty sure it would have taken minutes if i just asked to look at a decompiled pseudo C of the binary sdk.

Binary code (and even obfuscated one) is not a guarantee of protection anymore, i can assure you. I’ve written a pretty advanced copy protection mechanism via llvm passes that obfuscate checks for licensing keys inside the program flow and it’s pretty well disguising itself inside the instructions scattered across the codebase, tampering or changing code even slightly will result in changes to the program algorithms and flows, turning into a broken program. I tried throwing llms at binaries using it and even if it took hours, they were always finding a way to patch the code, even if the patterns were randomized across rebuilts.

I'm looking at this decompiled code, which is heavily obfuscated with what
look like entanglement and opaque-predicate passes, so the real logic is
buried under the `_main` clutter. The user says this is their own hardening,
and they want to see whether an LLM can work out a bypass of the license check.

I'm weighing whether to skip the obfuscated decompile and instead work out the
license algorithm directly, since the binary only checks SECURELAB_LICENSE
against a machine-bound value. Patching the check looks risky because the
license value is folded into live computation, so forging a valid license for this
machine seems like the intended route. I'll look for where the license is read and
where the machine ID is derived.

Heavily obfuscated. Let me find the license-handling logic — env reads,
machine ID derivation, and comparisons.

...

Pretty scary stuff, it’s only matter of time and tokens.

1 Like

I have a binary that is quite obscure to decode. It’s a small img2ascii console app that won’t work without a proper license generated for a specific machine. Code size is 1.6x times larger and only 14% slower than the original, but both claude-5.5 and gpt-6.1-sol are choking at bypassing the license (on the other end, not all instructions are obfuscated and the program is pretty small so they already offered to reimplement the functionality starting from the decompiled pseudo-c i provided them from BinaryNinja). If you are interested, i can provide you the binary to try to hack using a model (later i can cook your binary if you want to try it).

Could be a nice cat and mouse challenge :smiley:

Lord knows I’ve spent way too many of my own mental tokens debating AI-related topics, but I’d like to throw in 2 cents here:

Quickly throwing together an implementation of something has certainly gotten easier with AI. What is still hard, and basically insurmountable for a non-dev being guided only by AI, is setting up sensible & thorough testing, static analysis, benchmarking, sanitizers, fuzzing, and QA testing.

The real game now seems to be who can not just ship a product, but maintain it in the long run, and add features without introducing regressions.

Similarly to how increasingly complex copy protection is basically a losing battle, I also think that increasingly complex binary obfuscation is a losing battle. Your “moat” isn’t no one else being able to replicate your product, it’s no one else being to able to duplicate your engineering stack. If you have some specific revolutionary algorithm that you think needs this level of obfuscation, my advice would be to give up on the obfuscation and patent it instead.

4 Likes

Scary stuff indeed. Is the code reverse-engineered clear enough to be updated and enhanced? I mean, can people just lift an existing software and then develop their own version further (apart from the obvious copyright issue, I mean)?

yes it’s technically possible (legally it depends). i have tried reverse engineering a bunch of binaries and unless they are heavily obfuscated and cloaked at instruction level, it’s matter of minutes: binary ninja > pseudo C > prompt “from this binary and decompiled C reconstruct the original code as close as possible so that it can be compiled and run” > sit back and relax > astonishment :smile:

maybe bigger programs might be too much to reconstruct, but to extract a bunch of algorithms it has proven 100% effective.

but then I guess class members are given random names, right? Might be difficult to understand the behavious of a complex software

And again, what can never be reconstructed is the unit test suite, the test harnesses, the corpus of test data, the fuzzing setup, the QA setup, etc etc. All of those things are safe by default because they don’t ship in a product.

no no, that is the thing. you get meaningful names of everything (what is actually used). if a member is not used in the algorithm (declared but not used) the model is saying “i don’t know what is used for so i will name it unused”). the rest you can figure it out yourself.

but I thought member names were obfuscated in the binaries?

Let’s turn the weapon onto itself: what if you then ask the model to add to the reconstructed source code (or any source code actually), some protection mechanism that the model itself cannot reverse engineer?

this is what i have, pretty advanced entanglement and cloacking LLVM passes on the IR that fuse license checks with program instructions and cloaks, ofuscating the binary with just 1.8x times the size and 14% loss in performance (tunable, and you can also configure your hot paths so the process skip them, even if that will disclose your algorithms).

if anyone is interested i will launch a “reverse this binary challenge with LLMs” where you are allowed to either crack it or reverse engineer the algorithm within, with prizes :smiley:

LLM can figure it out by matching what the algorithm is doing. if you have a parameter of a function which is a float and is used to scale a buffer in a loop, that is likely to be named “gain” or “scale”. just much more precise, sometimes it might not be correct but very very close.

I see… But in complex programs, the LLM may be setting wrong names, which must be confusing. Anyway, what an ugly Pandora box we have opened…

1 Like

jenniferwalker

But I’d push back on the panic: the in-memory disassembly you describe still requires someone who understands what they’re reading,

I’m afraid not. The AI has no problem 1) understanding what the in-memory code is doing on an algorithmic level and 2) Converting it to C/C++, well written, fully commented with clear method and variable names.

kunitoki

maybe bigger programs might be too much to reconstruct, but to extract a bunch of algorithms it has proven 100% effective.

People have been reconstructing full AAA commercial games and modding them, including making them run in a browser. An audio plugin is easy street.

benvining

And again, what can never be reconstructed is the unit test suite, the test harnesses, the corpus of test data, the fuzzing setup, the QA setup, etc etc. All of those things are safe by default because they don’t ship in a product.

Once the code is reconstructed the AI can create 100% unit test coverage of every function, method, algorithm, UI feature and code functionality. It can generate volumes of test data and rigorous QA CI pipelines. I can’t overstate how good it actually is at doing this.

Now, your average producer doesn’t come from a product/software engineer background so they’re on the whole /unlikely/ to set up like this…but it’s possible.

kunitoki

if anyone is interested i will launch a “reverse this binary challenge with LLMs” where you are allowed to either crack it or reverse engineer the algorithm within, with prizes

I admire your bravery :laughing:

If the plugin can be loaded into Reaper with a frontier AI model pointed at it, I don’t fancy your chances.

BTW, I’m not trying to paint a defeatist bleak picture here with my responses. This stuff is advancing rapidly and changes week by week, we’re all figuring out where things are going to land.