C+11 metaprogramming technics applied to software obduscation
summary
Shows a working C++11 metaprogramming obfuscator that encrypts string literals with compile-time XOR per-string keys derived from __TIME and __COUNTER, generates index sequences manually, and embeds decrypted buffers plus tiny runtime decryptors so release binaries no longer contain plaintext. Also hides call targets by generating lots of code from Boost.MSM finite-state machines and by obfuscating target addresses; works with clang/GCC/Intel (not MSVC), increases binary size and can double compile time on Intel, and warns that missing release flags leaves originals in the build. Code and examples are on GitHub under BSD.
AI-written summary · about
chapters (13)
- 0:00Introduction and background
- 2:56Jailbreak detection in MDM
- 6:04What is code obfuscation
- 8:39C++ templates for obfuscation
- 16:15Meta string implementation
- 21:47Enhancing meta string
- 25:39Randomizing encryption methods
- 28:51Obfuscating function calls
- 34:22Compiler support and options
- 37:14Drawbacks and limitations
- 40:24Benefits of meta programming
- 41:50Future research directions
- 43:17Conclusion and Q&A
