r/ReverseEngineering • • 21h ago

HimitsuObfuscator: Whitelist-driven C/C++ obfuscator with LLVM 17

https://github.com/HimitsuShell/HimitsuObfuscator
19 Upvotes

3 comments sorted by

4

u/masiroo 21h ago

Obfuscation can cause build errors or unexpected runtime behavior when transformations are applied too broadly.

I built each obfuscation pass around a whitelist, so only instructions considered safe for each transformation are selected.

It supports Linux on x86_64 and aarch64, with control flow flattening, bogus control flow, instruction substitution, string encryption, and basic block splitting.

-3

u/EszterSantos72 20h ago

Set the whitelist using the --whitelist flag when running HimitsuObfuscator, passing it a file with function names you want to exclude. If you miss this, it will obfuscate everything by default and break needed exports.

1

u/masiroo 20h ago

There is no --whitelist option. Selective obfuscation uses LLVM function annotations (e.g. fla, nofla), and each pass has its own whitelist for safe instructions.