Repository navigation
Anti REA Launch Kit
Repository source:
docs/LAUNCH_KIT_ANTI_REA.md
Snapshot of the source document; follow the repository link for the current version.
Siber Akademi T-Zero Security Engine | Version 4.1.0
Show HN: Anti-REA – A 26-Tier Defense Matrix That Blocks AI Reverse Engineering & Decompilers
Hey HN,
I built Anti-REA (part of the Siber Akademi T-Zero project) to solve a growing problem: automated reverse engineering powered by AI agents (like morluto/rea, Ghidra MCP, IDA LLMs) and decompiler scripts (pyinstxtractor, uncompyle6, pycdc).
When you distribute a Python binary or CLI application compiled with PyInstaller, automated extractors can dump the embedded .pyc bytecode in milliseconds. From there, LLM agents reconstruct functions, prompt chains, proprietary logic, and API signatures almost instantly.
Anti-REA stops this through a 26-tier defense matrix:
1. ExtractorShield: Injects corrupted MEI decoy headers into Windows PE binaries. Python executes normally via the native bootloader, but pyinstxtractor crashes with EOFError or struct.error.
2. PolyVM Control-Flow Flattening: Replaces linear AST with non-deterministic state machines, breaking LLM control-flow reconstruction and AST synthesizers.
3. Ring-3 & Hardware Anti-Debug: Checks IsDebuggerPresent, PEB BeingDebugged, NtGlobalFlag (0x70), and terminates immediately (0xC0000409) if x64dbg, IDA Pro, or Cheat Engine are active.
4. RDTSC Single-Step Timing Guard: Measures CPU instruction cycle variance. If an analyst steps through instructions with F7/F8, the execution delta jumps above 50ms and triggers hard exit.
5. Anti-VM Hypervisor Filter: Detects VMware, VirtualBox, and QEMU drivers/processes to neutralize automated sandbox extraction.
6. In-Flight String Vault: Zero plaintext string literals in memory; decrypted on-the-fly via rolling-key XOR and wiped with memset(0) after evaluation.
It comes with a CLI (`pip install anti-rea`), a standalone desktop Cyberpunk GUI, and an interactive web simulator.
- GitHub: https://github.com/toprakahmetaydogmus/anti-rea
- T-Zero Master Release (v12.2.0): https://github.com/toprakahmetaydogmus/TZeroAlgorithm/releases/tag/v12.2.0
- Web Interactive Lab: https://tzero-indol.vercel.app/anti_rea_lab.html
100% free, MIT licensed, offline, and zero telemetry. Would love to hear your thoughts and feedback!
Title: I built Anti-REA to stop pyinstxtractor and automated AI decompilers from unpacking Python executables
Content:
If you package Python tools with PyInstaller, anyone can run
pyinstxtractor.pyin 2 seconds and get your raw bytecode. Now with AI agents, they reconstruct full readable source code in under a minute.I created Anti-REA—an open-source defense tool:
- Corrupts PyInstaller unpacker heuristics without breaking runtime execution.
- Flattens control-flow into PolyVM state machines.
- Zero plaintext strings in memory (dynamic string vault).
- Fast CLI:
anti-rea protect main.pyortzero shield-exe app.exe.Code & documentation: https://github.com/toprakahmetaydogmus/anti-rea
Title: Anti-REA: 26-tier defense matrix against AI reverse engineering agents, decompiler heuristics, and debugger hooks
Content:
Discussion on how automated Reverse Engineering Agents (REAs) leverage static AST pattern-matching and how defensive tooling can counteract them:
- Header decoy poisoning (decoupling PE payload offsets from archive table cookies).
- Mixed Boolean-Arithmetic (MBA) AST rewriting ($x + y \rightarrow (x \oplus y) + 2(x \land y)$).
- Dynamic instruction timing deltas via high-resolution performance counters detecting single-stepping.
- Hypervisor detection without ring-0 dependencies.
Full technical source & benchmarks: https://github.com/toprakahmetaydogmus/anti-rea
Tweet 1:
Automated AI reverse engineering agents (REAs) can decompile PyInstaller apps & reconstruct proprietary code in seconds.
Today we’re launching Anti-REA: an open-source 26-tier defense matrix that neutralizes decompiler extractors, x64dbg, & jailbroken LLMs. 🛡️🧵👇
Tweet 2:
1/ How pyinstxtractor works: It scans binary padding for the
MEIPASS2magic cookie and extracts embedded.pycfiles.How Anti-REA stops it: It injects synthetic corrupted MEI headers. The Windows bootloader runs cleanly, but decompiler scripts crash with EOFError. 🚫📦
Tweet 3:
2/ Hardware & Debugger Protection:
- Detects x64dbg, IDA Pro, WinDbg, Cheat Engine
- RDTSC cycle checking: step-by-step F8 debugging triggers instant hard exit (0xC0000409)
- Anti-VM: detects sandbox environments (VirtualBox, VMware, QEMU)
Tweet 4:
3/ Zero Plaintext in RAM: StringVault replaces static string literals with dynamic rolling-key XOR decoders and immediate
memset(0)memory scrubs. Even memory dumps return zero readable credentials or prompt templates. 🔐
Tweet 5:
Try it now: 💻
pip install anti-rea🌐 Live Interactive Web Lab: https://tzero-indol.vercel.app/anti_rea_lab.html ⭐ Star the repo: https://github.com/toprakahmetaydogmus/anti-reaRT to support open-source security! 🚀
Title: Anti-REA: Stopping AI Reverse Engineering & Decompilation
Tags: #python #security #cybersecurity #opensource #ai
Body:
Reverse engineering has entered the autonomous era: tools like
pyinstxtractorpaired with LLM agents can unpack and decompile desktop Python applications in seconds.Anti-REA is an open-source 26-tier defense matrix built to protect Python code, binaries, and AI agent architectures:
- PyInstaller ExtractorShield: Neutralizes unpackers via archive header poisoning.
- PolyVM AST Flattener: Breaks linear CFGs into synthetic dispatcher loops.
- Hardware Anti-Debug: Detects x64dbg and single-stepping via RDTSC cycle timing.
- Cyberpunk GUI & CLI: Run
tzero armororanti-rea-gui.Check out the GitHub release: https://github.com/toprakahmetaydogmus/TZeroAlgorithm/releases/tag/v12.2.0