qybaihe/bla

🛡️ BLA (bla-agents / Blind LLM Agents) — Open-source Blue Defense MCP server & CLI protecting JS/TS, Electron ASAR, WASM, Python, Native Binaries, SQLite, GGUF/Safetensors & Android DEX against AI reverse-engineering agents (REA).

BLA: Blind LLM Agents — A Defense Tool for Software Against AI Reverse-Engineering

BLA (Blind LLM Agents) is an open-source toolkit that helps software authors protect their released programs from being reverse-engineered by AI agents. It's designed for defensive use only — you apply it to your own code and artifacts, not to attack others.

What Problem Does It Solve?

Modern AI agents (like morluto/rea, autonomous decompilers, and LLM-based analysis pipelines) can quickly unpack, trace, and clone software logic from common formats (JavaScript, Electron apps, WebAssembly, SQLite databases, etc.) — often in seconds for pennies. BLA makes this process much harder and more expensive for the AI, while keeping your software's normal behavior unchanged.

How It Works

BLA uses four main strategies:

  1. Poison (Deception) – Plants fake but valid-looking data (canaries, decoy state machines, honey SourceMaps) to confuse AI agents and send them down rabbit holes.
  2. Exhaust (Budget Breakers) – Inflates files or adds structures that hit the AI's internal limits (e.g., file size caps, nesting depth, number of exports), causing the agent to fail or give up before extracting core logic.
  3. Entangle (Anti-Strip) – Binds related files together (e.g., JS ↔ WASM ↔ native binaries) with cryptographic hashes, so removing decoys or patching checks breaks the whole system.
  4. Runtime Truman Show – Detects live debugging tools (like Chrome DevTools, Frida, Node Inspector) and serves fake telemetry, while normal users see the real program.

All this is done while preserving input/output equivalence — the protected software behaves exactly the same for legitimate users.

Key Features

  • One-Command CLI – npx bla-agents harden . automatically audits, protects, and verifies your project.
  • Agent Integration (MCP) – Works with coding agents like Claude Code, Cursor, Codex, etc. You can simply say "Harden my software against REA" and the agent orchestrates the process.
  • Bundler Plugin – For Vite, Rollup, Webpack, and esbuild to protect JS chunks and assets during build.
  • 19+ Format Shields – Supports JavaScript/TypeScript, Electron .asar, WebAssembly, SQLite, Safetensors, GGUF, Go binaries, Windows PE, Python, and many more — all built-in, no external tools required.
  • Verification – bla verify checks that the hardening didn't break functionality.

Empirical Results

The README includes a table of tests against the real morluto/rea agent on commodity hardware. For example:

  • Go buildinfo: 50 KiB → 1.16 MiB, causes REA to hit a 1 MiB limit and fail.
  • Electron ASAR: 607 B → 16.9 MiB, exceeds the 16 MiB header cap.
  • 761 B → 116 KiB, triggers multiple budget rejections.

These are verified results for those specific formats. Some other shields (like Ghidra, Frida, JADX) are designed but not empirically tested on the CI machine.

Benchmark

BLA includes a 14-target showcase benchmark (run with npx bla-agents benchmark). It reports ~639× token amplification and ~304× cost amplification — meaning an AI agent would need roughly 600× more tokens and 300× more money to analyze a protected artifact compared to an unprotected one. All 14 targets pass runtime-equivalence checks.

CrackMe Arena

BLA provides public challenges (CrackMe v6–v9) where you can test your own reverse-engineering agent against hardened software. These are for educational and research purposes.

Security & Defaults

  • Per-project random seed – Each project gets a unique seed so decoys aren't predictable.
  • Lint gates – Refuses to harden if plaintext secrets or weak integrity checks are present.
  • Opt-in features – Aggressive prompt decoys (--llm-directives) and signed attestation manifests are off by default.

Important Notes

  • Defensive only – The README explicitly states it's for protecting your own intellectual property.
  • No performance impact – The heavy decoys are placed in inert sections, so normal runtime is unaffected.
  • No external tools needed – All shields are pure TypeScript/Node.js; optional tools (Wabt, tshark) are only for running the red-team test suite.

In short, BLA is a practical, format-aware defense that makes AI-based reverse engineering significantly more costly and error-prone, while keeping your software's behavior intact for real users.

Related

  • Dispatch
  • Project
  • Project
  • Project
  • Project