Ship an Electron desktop app, a minified JavaScript bundle, or a local SQLite-backed utility today and an autonomous coding agent paired with an MCP reverse-engineering server can map its routes, recover its IPC channels, and reconstruct core business logic in under a minute. Classic obfuscators were built to exhaust human analysts staring at decompiled control flow. Modern language models read through mangled variable names without slowing down.
BLA (Blind LLM Agents), distributed on npm as bla-agents (v3.6.1, MIT license, over 7,000 GitHub stars as of November 2026), approaches the problem from the opposite angle. Instead of hiding code from human eyes, BLA plants structural decoys, analyzer budget breakers, and cross-artifact integrity bindings aimed squarely at AI reverse-engineering pipelines such as REA (morluto/rea). Below is how BLA’s four defense layers work, how to run both its post-build CLI and its 31-tool MCP server, what actually stopped real REA in empirical red-team runs, and where counter-tools like LASIK (pktq/lasik) already strip BLA layers back down.
In this article
- Why Traditional Obfuscation Fails Against AI Reverse-Engineering Agents
- How BLA Hardens Build Output Across Four Defense Layers
- Harden Your Build With the BLA CLI and Bundler Plugins
- Wire BLA Into Claude Code, Cursor, or Codex via MCP
- What Actually Stops Real REA and Which Budgets Can Be Raised
- Where BLA Breaks Down: Static De-Blinding and Server-Side Boundaries
1.Why Traditional Obfuscation Fails Against AI Reverse-Engineering Agents
Traditional JavaScript and binary obfuscation assumes a human analyst has limited patience for reading _0x1a2b identifiers, flattened switch statements, and split string arrays. Autonomous reverse-engineering agents break that assumption because they do not read raw code line by line. Toolkits like morluto/rea (“Reverse Engineer Anything”, over 480,000 GitHub stars) wire coding agents such as Claude Code, Cursor, and Codex directly into deterministic parsers, .asar unpackers, WebAssembly decoders, and decompiler bridges over Model Context Protocol (MCP).
Instead of guessing at assembly or minified bundles, an REA-equipped agent calls structured inspection verbs to enumerate exports, extract string tables, unpack Electron archives, read SQLite schemas, and query cross-references. Once deterministic tools hand back clean structured slices, the language model summarizes intent in seconds. On BLA’s own unprotected showcase fixtures, baseline static-and-semantic REA passes complete in under a minute for roughly 4,800 to 10,500 tokens—about $0.20 to $0.34 in estimated API cost.
That shift changes the defensive threat model. You cannot stop a determined caller from reading bytes you shipped to their machine, especially if you distribute local desktop apps or standalone desktop wrappers. What you can target are the deterministic admission budgets, context windows, and automated hypothesis loops that make agent-driven cloning cheap. BLA exists specifically to push automated reverse-engineering passes out of the fast, low-cost tier without changing what your users execute at runtime.
Core shift: Human obfuscators fight visual comprehension. BLA targets deterministic parser limits, call-graph budgets, and LLM hypothesis loops while leaving runtime input/output behavior intact.
2.How BLA Hardens Build Output Across Four Defense Layers
BLA (bla-agents v3.6.1) packages 26 format-native shields in pure TypeScript and Node.js with zero external packer dependencies. Rather than wrapping binaries in a heavy virtual machine that breaks cross-platform signing or drags down hot paths, BLA layers four distinct mechanisms onto build artifacts—and optionally weaves decoys directly into source paths before compilation.

The table below maps BLA’s four defense pillars to the concrete mechanisms they inject and the exact failure mode each one aims to trigger inside an automated reverse-engineering pipeline.
| Defense Pillar | Concrete Mechanism | Target Formats | Effect on AI Analyzers |
|---|---|---|---|
| 1. Poison (Deception) | Format-valid canaries, SGX/TPM2/enclave manifests, VLQ v3 honey SourceMaps, shadow state machines | JS/TS, Electron, WASM, SQLite, Native ELF/PE/Mach-O | Splits agent context across plausible fake architectures and dead-end hypotheses |
| 2. Exhaust (Budget Breakers) | Trips analyzer admission caps (primitive-candidates > 256, alias-selections > 512, 16 MiB ASAR headers, 32-level model nesting, 8 MiB tshark cap) |
All 26 supported artifact formats | Downgrades default REA inspection from COMPLETE to LIMITED or CapacityError |
| 3. Entangle (Anti-Strip & Self-Seal) | Runtime SHA-256 sibling binding (--self-seal, --sidecar-entangle) and multi-site caller scope folding (bla_bind_scope) |
Node JS/TS, WASM, Python, Native sidecars | Breaks execution when decoys are stripped or exported verifiers are called offline |
| 4. Runtime Truman Show | Hardens Electron V1 Fuses (RunAsNode=0, Inspect=0) and checks for CDP, Node Inspector, Frida, or WebDriver attachment |
Electron desktop apps, Node runtimes | Serves synthetic telemetry during live attach while normal user runs proceed unchanged |
To preserve runtime equivalence across those layers, BLA hides exhaustion graphs behind $O(1)$ opaque predicates or inert format sections that normal runtimes ignore. Earlier releases used canonical quadratic residues such as 7x² - 1 !== y² (mod 7), which static strippers could spot with pattern matching. Starting in v3.5.6, BLA replaced those with full-32-bit parameterized affine Mixed Boolean-Arithmetic (MBA) identities over $\mathbb{Z}_{2^{32}}$, diversified generated identifiers into non-hex base36 shapes, and switched Node self-seal verification to low-level openSync/fstatSync/readSync/closeSync descriptor reads via process.getBuiltinModule("node:fs").
Verification happens at two levels. BLA’s built-in bla verify command checks structural Counter-REA invariants—confirming decoys, budget trips, and seal bindings are present—while keeping exported function names, class inheritance, and TypeScript compatibility (// @ts-nocheck) intact. Because bla verify checks structure rather than application semantics, your own unit and integration tests remain the final proof that runtime behavior did not change.
3.Harden Your Build With the BLA CLI and Bundler Plugins
The fastest way to evaluate BLA on an existing release is the post-build CLI. It requires Node.js ^22.23.4 or >=24.0.0, auto-discovers compiled directories such as dist/, build/, out/, and release/, and deliberately skips toolchain files like vite.config.*, test suites, and .d.ts declarations.
Always run a dry run and inspect the isolated mirror before promoting hardened files over your build folder. The four commands below walk through a safe first pass, promotion, verification, and rollback without touching your source directory.
Install
# Preview discovered targets with zero bytes written
npx bla-agents harden . --dry-run
# Build a hardened mirror inside .bla-hardened/ (nothing ships yet)
npx bla-agents harden .
# Promote hardened files into dist/ or build/ (backups saved outside the project)
npx bla-agents harden . --apply
# Verify structural Counter-REA invariants or roll back to original build output
npx bla-agents verify ./dist/app.js ./original-backup/app.js
npx bla-agents harden . --restore

When --apply runs, BLA stores the unhardened originals in an external per-user state directory (overridable in CI via BLA_STATE_DIR). Subsequent runs harden from those clean originals rather than double-hardening already-shielded files, and BLA persists a random per-project seed in .blarc so two repositories do not share identical decoy symbols. For repeatable CI releases, install bla-agents as a dev dependency and wire it into postbuild inside package.json, as shown in the configuration snippet below.
{
"devDependencies": {
"bla-agents": "^3.6.1"
},
"scripts": {
"build": "vite build",
"postbuild": "bla harden . --apply"
}
}
If you ship a Vite, Rollup, Webpack, or esbuild frontend bundle, BLA also exports first-party bundler plugins from bla-agents/bundler. The Vite example below runs at bankrupt intensity and replaces real SourceMaps with format-valid VLQ v3 honey maps so browser DevTools and automated scrapers see convincing decoy frames instead of your source tree.
import { defineConfig } from "vite";
import { blaVitePlugin } from "bla-agents/bundler";
export default defineConfig({
plugins: [
blaVitePlugin({
intensity: "bankrupt",
honeySourceMap: true,
}),
],
});
Expect real artifact bloat before turning bankrupt on in production. According to BLA’s CLI documentation, hardened JavaScript and HTML files grow by roughly 50 KB at stealth intensity and up to 200 KB per file at bankrupt, while WebAssembly modules add tens of kilobytes at maximum and multiple megabytes at bankrupt. Also watch pipeline order when enabling --self-seal: self-seal hashes exact file bytes, so minification, bundling, and post-processing must finish before BLA seals the tree—and browser bundles automatically skip self-seal because it relies on node:fs and node:crypto (use Subresource Integrity and server checks on the web instead).
4.Wire BLA Into Claude Code, Cursor, or Codex via MCP
Post-build decoys alone have a structural weakness documented in BLA’s own weave-decoy specification: if every protection block sits in an isolated sidecar or carries a greppable prefix like _bla_*, an AI agent or deobfuscator can drop the entire defense layer without breaking the real program. BLA 3.x addresses that gap with a 31-tool MCP server and bundled skill that let your coding agent weave decoys into real caller state slots before artifact hardening runs.
To register the MCP stdio server and the blind-llm-agents skill across Claude Code, Cursor, Codex, Windsurf, Gemini CLI, VS Code, OpenCode, Antigravity, and GitHub Copilot CLI, run the setup and handshake check commands below.
Install
# Register the 31-tool BLA MCP server and skill across installed coding agents
npx bla-agents setup
# Verify registered clients, real engine smoke probes, and live MCP handshakes
npx bla-agents doctor --verify-handshake
Once registered, the server supplies a closed-loop workflow (bla_lint → bla_weave_plan → bla_encrypt_strings → bla_bind_scope → bla_verify_weave → bla_harden → bla_verify). If you want a deeper breakdown of when to pair MCP servers with skill instructions in coding agents, see our guide on Claude Code MCP vs Skills architecture. Rather than issuing a vague one-liner, paste a structured prompt into Claude Code or Codex so the agent respects overwrite confirmations, checks lint gates first, and runs your test suite after promotion.
1. Run
bla_lint first and report any blocking packaging footguns (plaintext secrets, unbound verifiers, or single-point integrity checks) before touching files.2. Call
bla_weave_plan on the target modules and follow the returned surgicalWorkorder to weave shared-state decoys plus bla_encrypt_strings and bla_bind_scope.3. Confirm
bla_verify_weave returns overallPassed: true with zero remaining agentActions.4. Build the project, run
bla_harden with weave_decoys: true and dry_run: true first, show me the output size delta, and ask before promoting with apply.5. After promotion, run the project’s test suite and
bla_verify to confirm runtime equivalence.Several safety defaults matter when operating BLA through MCP. First, write-capable tools refuse to overwrite existing files unless confirm_overwrite: true is passed, returning a confirmation_required refusal instead of silently clobbering output. Second, bla_lint blocks bankrupt hardening if it detects plaintext FLAG{...} tokens, reversible seal sidecars, or obvious AES unwrap patterns in your build. Third, aggressive in-band prompt-injection decoys (--llm-directives) are disabled by default—leave them off unless you understand the compliance implications of embedding adversarial prompt text in customer-facing binaries. Finally, teams distributing signed releases can pass --manifest --sign-manifest --manifest-key to emit an ed25519-signed .bla-manifest.json verifiable offline via bla verify-manifest.
Check the output of bla_verify_weave and bla_harden before shipping: you want zero forbidden _bla_ or BLA-SHIELD banners, a mix of mundane domain names and security decoys sharing live state slots, and an empty plaintextSurvivors list on the secrets you intended to mask.
5.What Actually Stops Real REA and Which Budgets Can Be Raised
BLA’s README highlights a 16-target local benchmark (npx bla-agents benchmark) projecting an aggregate ~1,293.6× token amplification and ~600.3× cost amplification—turning a ~$0.20 baseline JS analysis into an estimated $238.02 run, or a $0.34 Electron .asar inspection into $358.57. To the maintainers’ credit, BLA’s own documentation labels those numbers explicitly as internal estimator projections, not metered live LLM bills.
What matters far more for engineering decisions is BLA’s empirical red-team suite (docs/redteam/empirical-rea-validation.md), recorded November 18, 2026 against live morluto/rea (commit 05be423) on Node v26.12.1 with Wabt 1.0.42 and tshark 4.4.1. Crucially, most of REA’s resource budgets are per-call defaults—and REA’s own error message tells the calling agent which parameter to raise. A default budget hit costs an attacker one retry, not permanent lockout.

The table below condenses the verified live-REA outcomes from BLA’s red-team report, separating hard ceilings REA cannot raise from soft defaults a caller can override.
| Format | Size (Before → After) | Live REA Outcome After BLA | Exact Limit or Error Hit | Can Attacker Raise It? |
|---|---|---|---|---|
| PCAP | 24 B → 1.91 MiB | Rejected (non-retryable) | TSHARK_JSON_MAX_BYTES (8 MiB fixed; hardened output prints 12.7 MiB) |
No — fixed in REA |
| Safetensors | 128 B → 9.7 KiB | Capacity error | MODEL_JSON_NESTING (>32 levels; stays HuggingFace-loadable) |
No — fixed at 32 |
| GGUF | 24 B → 7.3 KiB | Capacity error | MODEL_METADATA_NESTING (>32 array frames) |
No — fixed at 32 |
| Electron fuses | 50 KiB → 1.17 MiB | Budget rejected | ELECTRON_FUSE_LIMITS.maximumSentinelsPerSlice (>32) |
No — fixed at 32 |
| JavaScript strings | 340 B → 154 KiB | 0 of 3 known values recovered | Tested at 1×, 4×, and 64× raised budgets (baseline yields all 3) | Raised to 64×; still held |
| JavaScript (default) | 761 B → 153 KiB | Budget rejected | alias-selections, getter-expansion, primitive-bytes, primitive-candidates |
Yes (semantic_precision) |
| Electron ASAR | 607 B → 16.9 MiB | Capacity error | DEFAULT_ASAR_MAX_HEADER_BYTES (16 MiB) |
Yes (up to 256 MiB) |
| WASM + Wabt | 54 B → 6.56 MiB | Partial interface (ifaceState=partial) |
max_interface_bytes (32 MiB) |
Yes (up to 512 MiB) |
| Erlang BEAM | 84 B → 241 KiB | Capacity error | max_chunks (64-chunk default) |
Yes (max_chunks) |
SQLite (--sqlite-eval-trap) |
12 KiB → 56 KiB | Eval failure on honey tables | SqliteColumnEvaluationFailure (enclave_unseal_payload()) |
Not a budget; see caveat below |
Two subtle findings in that empirical table deserve attention before you ship. First, JavaScript strings is the single row verified with REA’s budgets cranked up to 64×—an endpoint URL, an IPC channel, and a SHA-256 digest all stayed hidden from REA’s output where the unhardened file exposed all three. Second, SQLite’s --sqlite-eval-trap is opt-in for a serious operational reason: the virtual-column trap stops REA from evaluating honey tables, but it also breaks your own app’s PRAGMA integrity_check, VACUUM, and standard dump/restore operations, while never hiding your real application tables.
Also note what BLA’s empirical test runner did not run: live Ghidra, Frida, LLDB, GDB, Rizin, and full JADX Android APK pipelines require external native tools absent from CI and remain unverified end-to-end. Teams validating BLA against their own build artifacts can reproduce the local benchmark or live REA red-team suite directly using the commands below.
# Local 16-target internal benchmark + equivalence check
npx bla-agents benchmark
# Live empirical red-team check against a sibling morluto/rea checkout
export REA_WABT_BIN_DIRECTORY=$HOME/opt/wabt-1.0.42/bin
npm run build && npm run redteam:rea
npm run verify:rea
6.Where BLA Breaks Down: Static De-Blinding and Server-Side Boundaries
Any widely adopted defensive toolkit triggers an immediate counter-tool, and BLA already has one. LASIK (pktq/lasik, lasik-agents, MIT license) is a static-only, proof-based de-blinding CLI and MCP server built specifically to undo BLA hardening so coding agents and REA can inspect the underlying program again. LASIK never executes the target—no eval, no sandbox, no WebAssembly instantiation—and identifies protection layers by structural behavior rather than symbol names, stripping opaque predicates, encrypted strings, decoy blocks, binary padding, and prompt-injection text (lasik firewall).

According to LASIK’s published benchmark on BLA’s own vendored CrackMe v6–v9 corpus at bankrupt intensity, static de-blinding collapsed 1.8 MB of hardened files down to 37.5 KB and cut estimated analyzer load from roughly 21.1 million tokens to 16,718 tokens—a 1,262× reduction. Across its 21-format suite, LASIK reduced 31.1 MB of BLA-hardened output back to 150.9 KB (21 of 21 files healed, 11 byte-identical to the unhardened original), with its README noting 59 of 63 shields healed against BLA 3.2.2. BLA’s subsequent v3.5.6–3.6.1 releases countered with 32-bit affine MBA predicates, diversified base36 identifiers, and low-level node:fs file-descriptor self-sealing—a textbook red-versus-blue arms race that will keep moving in both directions.
That arms race defines the honest boundary for using BLA in production. BLA is genuinely useful as economic friction against opportunistic, one-command AI cloning: it trips REA’s fixed format caps on Safetensors, GGUF, PCAP, and Electron fuses, forces default retries on JS/ASAR/WASM builds, and—when paired with MCP source weaving and --self-seal—stops shallow automated extraction. It is not cryptographic secrecy. Never ship private API keys, master signing certificates, paid model prompts you cannot afford to lose, or unverified license logic to a client device assuming BLA makes them unreadable; keep high-value secrets and entitlement checks on server infrastructure you control, and use BLA strictly as defense-in-depth on the client code you actually have to distribute.


