On Saturday, 21 November 2026 at 04:20:39 UTC, Brother Bill wrote:
AI can create D apps, and then reverse engineer the executable code, and rebuild it without violating copyright.

Are there any production grade obfuscators, including payware ones, that block AI reverse engineering?

Just my 2ยข as i have no reverse engineering background.

My first thought would be to look at tools based on LLVM.
A quick search turned up [ensia](https://github.com/Apich-Organization/ensia) and [obfuscator-llvm](https://github.com/eshard/obfuscator-llvm) which are both llvm plugins and in theory could be loaded using ldc2's `--plugin=<dynamic_library.so,lib2.so>` switch. Don't know about the quality tho.

You could also try adding Link Time Optimization (LTO) as well.
Idea being that the inliner may inline some phobos/druntime functions which the optimizer would then run over helping obscure things, also not using dynamic linking means you can strip the phobos/druntime symbols, you could do the same thing with static linking but then the obfuscator pass definitely wouldn't
work on phobos/druntime.
The correct flags for ldc2 should be `-flto=thin` or `-flto=full` with `-defaultlib=phobos2-ldc-lto,druntime-ldc-lto`

Whether or not this would confuse an AI at all I don't know. monkyyy's right tho,
any obfuscation pass would make your program slower.

Worst case scenario. AI can still reverse it and everyone's antivirus thinks your program is malware.

Reply via email to