Reverse-Engineering Threat Architecture

Standard Python binaries unpack in five seconds. Seal every layer.

Shipping a plain PyInstaller executable exposes your raw .pyc files to pyinstxtractor and neural decompilers like PyLingual. Even compiled C extensions now face MCP-driven LLM decompilers (GhidraMCP, REA, IDA + Gepetto). PyKevlar neutralizes static, neural, and dynamic reverse-engineering tools simultaneously.

Protect your codebase — $39/yr Read the LLM decompiler research →
SPZ2 encrypted container and Vectorcall Vault

Zero Unencrypted Bytecode at Rest

Each module and function body is sealed with an independent ChaCha20-Poly1305 AEAD subkey and re-zeroed immediately after execution.

Native ARM64 and x86_64 C transpilation

Native Machine Code + Symbol Erasure

--enable-bcc compiles Python logic to stripped C machine code (-fvisibility=hidden -Wl,-x) with Rolling SplitMix64 string vaults.

Anti-LLM CREAM and MBA stealth

Adversarial Anti-LLM Poisoning

--anti-llm injects deceptive semantic identifiers, 64-bit MBA opaque predicates, and cryptographic honey-functions that derail AI agents.

Tool-by-Tool Countermeasures

Every tool reverse engineers reach for—and what happens.

Verified continuously in PyKevlar's automated security suite against real-world extraction, decompilation, and dynamic instrumentation toolchains.

Attack Tool / Vector How It Breaks Plain PyInstaller / Bytecode PyKevlar Countermeasure Attacker Outcome
pyinstxtractor, binwalk, strings Scans for PyInstaller CArchive cookies & 0x78 0x9c zlib headers to dump every .pyc and module name in seconds. SPZ2 Stream-Encrypted Container: SplitMix64 keystream destroys all zlib headers and encrypts the entire module index. 0 module names in strings; 0 archives recognized by binwalk or pyinstxtractor.
PyLingual, pycdc, uncompyle6, decompyle3 Translates extracted Python 3.12–3.14 .pyc marshaled code objects back into ~99% accurate source code. Per-Function ChaCha20-Poly1305 Vault + Native C BCC: No plaintext bytecode exists on disk; hot functions compile straight to ARM64/x86_64 C. Decompilers see only a 1-line native C bootstrap call or stripped machine instructions.
Memory / Frame Dumpers (dis.dis, gc.get_objects, co_consts) Imports the module in Python and inspects live func.__code__.co_code and string constants in RAM. Vectorcall Watcher Re-Locking + O(1) C String Pool: Functions stay locked as 4-byte stubs before AND immediately after each call. fn.__code__.co_consts returns (None,); strings never sit in Python tuples.
GhidraMCP, REA (ReverseEngineerAnything), IDA + Gepetto, LLM4Decompile Connects Claude/GPT via MCP to Ghidra/IDA to read symbol tables, trace xrefs, and reconstruct high-level business logic from C binaries. Hidden Symbols + 4 Crypto Honey-Functions + CREAM + 64-bit MBA: Strips all internal symbols, plants decoy cipher routines, and rewrites locals into contradictory domains. LLM context windows fill with decoy state machines and non-linear bit-math; hallucinated analysis.
Python 3.12–3.14 PEP 669 (sys.monitoring) & sys.settrace Registers low-overhead VM bytecode event callbacks (PY_START, INSTRUCTION) without triggering legacy settrace checks. Native C PEP 669 Tool-ID Sweeper: Audits sys.monitoring.get_tool(0..5) and PyEval trace pointers inside the C Vectorcall gate. Immediate stealth termination with generic codec error (zero security-cue leakage).
Frida, LD_PRELOAD, DYLD_INSERT_LIBRARIES, gdb / lldb Injects shared libraries or inline trampolines into libpython / C extensions to intercept decrypted frames. Inline Prologue Guard + PR_SET_DUMPABLE=0 + P_TRACED / TracerPid: Detects Frida env/maps, blocks core dumps, and verifies periodic integrity (--period). Process aborts cleanly before master subkeys are derived.
Verifiable Security

Don't trust claims—audit your own binary.

Run standard offensive recon tools directly against your compiled PyKevlar executable right after building.

VERIFY 01

Built-in Leak Scanner

Asserts 100% of first-party packages are ChaCha20-sealed and zero plaintext .py or .pyc modules exist anywhere in the bundle.

pykevlar verify dist/myapp --protect apps
VERIFY 02

Strings & Binwalk Audit

With --anti-llm, grep for your secret constants, internal package names, or zlib magic headers—confirm zero matches.

strings dist/myapp | grep -i "my_secret"
VERIFY 03

Symbol Table Inspection

Inspect compiled pyarmor_runtime.so and pyarmor_bcc.so with nm -gU—only the mandatory PyInit_* entrypoint is exported.

nm -gU pyarmor_bcc.so
Ready to Harden Your Release?

Enable full 7-layer stealth with one flag: --anti-llm

Get PyKevlar Pro — $39/yr Read How-To Guides