Skip to content
qybaihePublic

About

🛡️ 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).

Topics

Resources

Contributing

Security policy

Stars

7.5k stars

Watchers

31 watching

Forks

Latest commit

 

History

758 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BLA logo

BLA: Blind LLM Agents

BLA is an open-source Node.js CLI and MCP server for developers who ship proprietary logic in client-side artifacts. It adds seeded, format-specific decoys and structures that can make analysis by Reverse Engineer Anything (REA) slower, partial, or more expensive.

26 artifact formats · 31 MCP tools · 16 showcase benchmark targets.

npm version MCP Server Formats MIT License

Read this page in another language

English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Türkçe · Русский · Tiếng Việt · ไทย · Deutsch · Español · Français · Українська · Polski · Português (Brasil) · العربية · فارسی · Bahasa Indonesia · Italiano · Ελληνικά · മലയാളം · Roman Urdu · Română

Important

Run BLA on software you own or are authorized to modify and distribute. BLA is a defensive tool, not a tool for attacking third-party software. Read the legal and technical disclaimer.

Decide if BLA fits your release

Use BLA when valuable business logic must ship to a user-controlled device, you can test the hardened release, and you can accept larger artifacts plus some build or startup overhead.

BLA raises analysis cost. It does not encrypt an application or guarantee secrecy from a determined analyst. Keep private API keys, signing keys, and master secrets on a server. Use code signing, authorization, and server-side validation where they belong.

Quick start

BLA requires Node.js ^22.23.4 or >=24.0.0. Build your project first.

  1. Preview the files BLA would process. This command writes nothing.
npx -y bla-agents@3.7.0 harden . --dry-run

The default profile is bankrupt. Review the discovery list before writing output. Large trees may be paginated.

  1. Write hardened files to .bla-hardened/.
npx -y bla-agents@3.7.0 harden .

This creates a partial mirror. It does not replace the build output. Review overallSuccess, failed artifacts, outputSize, exclusions, plaintext survivors, integrity coverage, and nextSteps.

  1. Promote the hardened files, test the release, and restore it if needed.
npx -y bla-agents@3.7.0 harden . --apply
# Run your project's tests against the promoted build.
# If the promoted build fails:
npx -y bla-agents@3.7.0 harden . --restore

--apply overwrites recognized build-output files, not source files. BLA keeps originals outside the project. A structural verification pass does not replace your tests.

Register BLA with a coding agent

npx -y bla-agents@3.7.0 setup
npx -y bla-agents@3.7.0 doctor --verify-handshake

Then ask the agent:

Harden my own software against REA. Preview first, show size and coverage limits, ask before apply, and run my tests.

The installed skill guides source review, packaging checks, artifact hardening, promotion, and testing. See the installation guide for supported clients and manual setup.

Protect JavaScript during bundling

import { defineConfig } from "vite";
import { blaVitePlugin } from "bla-agents/bundler";

export default defineConfig({
  plugins: [
    blaVitePlugin({
      intensity: "bankrupt",
      honeySourceMap: true,
      failBuildOnError: true,
    }),
  ],
});

The bundler plugins process JavaScript chunks and source maps. Use harden or defend after the build for WebAssembly and other artifact formats. See the bundler and CI guide.

Evidence and limits

Evidence Scope Result Limit
Community shell-agent study Five BLA 3.6.0 fixtures, three runs each Net input-token use rose 1.86 to 3.58 times on four gate-passing fixtures. All 12 reconstruction checks passed in every hardened run. One agent setup, small fixtures, and Stage 1 hardening only.
Live REA fixture probes Fourteen BLA 3.5.0 fixtures against REA commit 05be423 Several analyzers returned default budget, capacity, or redaction outcomes. The report records mixed outcomes row by row. Many REA limits are caller-adjustable. This is not a current-version guarantee.
Deterministic benchmark Sixteen BLA 3.7.0 fixtures The internal model reports 1,293.6 times token amplification and 600.3 times cost amplification. All fixture-specific execution, query, or structural checks pass. The multipliers are modeled, not metered agent bills. Some checks are structural rather than executable.
Maintainer-run red-blue evaluation Three first-party targets, two rounds Round 2 blocked the tested low-byte, preload, plaintext, prefix-strip, and naive-tamper paths. Full static seed folding and unkeyed re-sealing still succeeded.

BLA can degrade REA's default analysis and increase work for a shell-capable agent. It does not provide white-box cryptographic secrecy, and it does not stop every analyzer or raised-budget retry.


How BLA works

Renaming identifiers alone gives an AI agent little extra work. BLA combines format-specific deterministic shields with optional host-agent source weaving.

flowchart LR
  subgraph S1["1 · Recon & Plan"]
    A["bla_audit / bla_lint"] --> B["bla_weave_plan"]
  end
  subgraph S2["2 · Agent Source Surgery"]
    B --> C["bla_encrypt_strings\n(AST Span XOR + Keystream)"]
    C --> D["bla_bind_scope\n(Multi-Site State Entanglement)"]
    D --> E["bla_verify_weave"]
  end
  subgraph S3["3 · Artifact Shielding"]
    E --> F["bla_harden / bla_defend\n(26 Format Shields + Optional Self-Seal)"]
  end
  subgraph S4["4 · Counter-REA Gate"]
    F --> G["bla_verify\n(Structural Counter-REA Checks Only)"]
  end
Loading
Defense Pillar Mechanism Effect on AI Reverse-Engineering Agents
1. Poison (Deception) Plants format-valid canaries, SGX/TPM2/Secure Enclave delegation manifests, VLQ v3 honey SourceMaps, and plausible shadow state machines. Adds conflicting evidence and synthetic paths for an analyzer to evaluate.
2. Exhaust (Budget Breakers) Targets analyzer limits such as primitive-candidates, alias-selections, the ASAR header budget, WASM interface representation, SQLite column evaluation, model nesting, PCAP output, and Electron fuse sentinels. In pinned fixture probes, several REA analyzers returned LIMITED or capacity errors. Caller-adjustable limits may cost only one retry. See the results table.
3. Entangle (Anti-Strip & Self-Seal) Binds covered sibling artifacts through runtime SHA-256 digests (--self-seal, --sidecar-entangle) and optional caller scope checks (bla_bind_scope). Detects the tested stripping and tampering paths in covered entry points. Full static seed folding and re-sealing remain possible.
4. Runtime checks Hardens Electron V1 Fuses and detects CDP, Node Inspector, Frida, and WebDriver attachment (runtime-shield.ts). Can return synthetic telemetry on tested debugger paths. Coverage depends on the artifact and entry point.

Empirical results vs. real REA

BLA publishes four distinct tiers of evaluation evidence so modeled projections are never confused with live measurements:

Tier What runs What it measures Where the raw data lives
1. Live REA probes Real morluto/rea (05be423) analyzers on 14 format samples (npm run redteam:rea) Process-level budget / capacity / redaction outcomes docs/redteam/empirical-rea-validation.md · .json
2. Black-box agent red team Independent coding agents given only hardened first-party artifacts (no source or secrets) Static secret recovery, entitlement bypass, runtime-hook evasion, and automated layer stripping across 2 rounds Red-blue evaluation below · PR #345
3. Real shell-agent study Independent shell-enabled agent on BLA v3.6.0 (issue #319) Actual agent input tokens and functional reconstruction rate Measured agent baseline
4. Deterministic showcase & overhead node dist/cli.js benchmark --json + scripts/bench-harden.mjs Per-target exposure drop, obligation growth, modeled REA cost, fixture checks, and build/runtime overhead 16-target benchmark & overhead

Internal model comparing an unprotected artifact with BLA-protected output

Illustrative internal model, not a recorded agent session. See the evidence tiers and limitations above.

How to read this: “Empirically verified” means the live REA analyzer path returned the listed budget / capacity / redaction failure in this environment. It is not a claim about Ghidra/Frida/LLDB/Rizin/JADX sessions we did not run here, nor a claim of white-box cryptographic secrecy against a systematic human or agent attacker.

Most of REA's budgets are defaults the caller can raise. As of REA 05be423 (2026-11-17) its limits are per-call inputs or settings, and REA's own error tells the agent which one to raise (asar.max_header_bytes up to 256 MiB, max_interface_bytes up to 512 MiB, max_chunks, semantic_precision). A ❌ below therefore means REA stops here as it runs by default: a size-based plant costs an attacker one retry, it does not lock REA out. The last column says which limits REA keeps fixed, and JavaScript strings is the one row measured with the budgets raised.

Empirically Verified on Commodity Hardware

Last recorded 2026-11-18 against REA 05be423 under Node v26.12.1 (macOS arm64) with Wabt 1.0.42 and tshark 4.4.1. REA analyses packet captures only on Linux / Windows, so on macOS the harness runs REA's two tshark passes, with the arguments read from REA's own provider, and hands their output to REA's parser. Soft-skips keep Node 22 / CI green when external native tools are absent; a probe that cannot call REA at all is reported as a harness error (status: unverified, exit 2), never as a budget hit.

Format Before → After REA Outcome After BLA Exact REA Budget / Error Triggered Can the caller raise it?
Go buildinfo 50 KiB → 1.17 MiB ⚠️ Rejected as malformed BinaryFormatFailure — Go build-info string range is truncated. REA reads no build info from the hardened file, but it now checks the string range before max_build_info_bytes (1 MiB), the budget this plant was sized for Not measured
Erlang BEAM 84 B → 241 KiB ❌ Capacity error max_chunks — BEAM form exceeds the 64-chunk budget Yes — max_chunks
EVM bytecode 16 B → 4.00 MiB ⚠️ Admitted, just under the cap 4,190,208 of 4,194,304 bytes of EVM_PRODUCER_LIMIT_DEFAULTS.input_bytes; the EVMole worker itself is not run by the harness Yes — producer_limits.input_bytes
PCAP 24 B → 1.91 MiB ❌ Budget rejected REA asks tshark for 25 selected fields and holds that output to the 8 MiB TSHARK_JSON_MAX_BYTES: the hardened capture prints 12.7 MiB, so inspect_pcap_capture fails with a non-retryable resource error. Ten DNS responses do it — 4,076 answers each, every one naming a 251-character owner through a 2-byte compression pointer, which tshark prints in full. Without them REA read the 160 other decoys (116 KiB) No — fixed; REA has no setting for it
Electron ASAR 607 B → 16.9 MiB ❌ Capacity error DEFAULT_ASAR_MAX_HEADER_BYTES (16 MiB) Yes — asar.max_header_bytes, up to 256 MiB
WASM + Wabt 54 B → 6.56 MiB · 251 exports ⚠️ ifaceState=partial max_interface_bytes (32 MiB) — Typed WASM interface representation exceeds max_interface_bytes Yes — up to 512 MiB
SQLite (Node 24, --sqlite-eval-trap) 12 KiB → 56 KiB ❌ Eval trap on the honey tables SqliteColumnEvaluationFailure — unknown enclave_unseal_payload() on virtual trap columns. Opt-in (the default through 3.4.3): it also stops the application's own PRAGMA integrity_check / VACUUM. Default hardening adds honey tables REA can read; application tables are never hidden. Not a budget — an evaluation failure
JavaScript 761 B → 153 KiB ❌ Budget rejected alias-selections + getter-expansion + primitive-bytes + primitive-candidates Yes — semantic_precision
JavaScript strings 340 B → 154 KiB ✅ 0 of 3 known values in REA's result An endpoint URL, an IPC channel and a SHA-256 digest, at 1× / 4× / 64× budgets; REA returns all three from the unhardened file. Through 3.4.3 the pieces were written in clear: REA listed the channel at its defaults and all three once the budgets were raised 4× Raised here, to 64×
Safetensors 128 B → 9.7 KiB ❌ Capacity error MODEL_JSON_NESTING — Safetensors JSON nesting exceeds 32 levels (HF-loadable; tensors intact) No — fixed at 32
GGUF 24 B → 7.3 KiB ❌ Capacity error MODEL_METADATA_NESTING — GGUF metadata nesting exceeds 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
Flutter pool 50 KiB → 1.17 MiB ⚠️ Projected cap MAX_POOL_URIS / MAX_POOL_TOKENS (REA truncates with “at least N”) Yes — uri_limit / token_limit

The committed report records BLA 3.5.0 against REA 05be423. To run the current harness, use the pin from the REA drift workflow:

git clone https://github.com/morluto/rea.git ../rea
git -C ../rea checkout 66d1bb13dcb0722134e698d91c3a9da8d5a21ec4
(cd ../rea && npm install --ignore-scripts && npx tsc -p tsconfig.build.json)
export REA_ROOT="$(cd ../rea && pwd)"
export REA_WABT_BIN_DIRECTORY=$HOME/opt/wabt-1.0.42/bin  # optional
npm run build
npm run verify:rea
npm run redteam:rea

Treat the empirical result as evidence only when the generated report says status: "measured". When REA is absent, redteam:rea prints status: "unverified" and exits successfully so optional CI jobs do not fail. verify:rea reports which catalogued limits match the checkout and which are caller-adjustable.

Tier 2: Black-Box Agent Red-Blue Evaluation

Measured 2026-11-30 on BLA main (37dddd4, Node v24.22.3, macOS arm64). We built three first-party targets — a 3-file Node CJS entitlement suite (node-suite), an ESM loader + WASM vault (wasm-vault), and a 2-file Python subscription gate (py-gate) — hardened them at bankrupt with weaveDecoys: true, selfSeal: true, sidecarEntangle: true, and apply: true, and verified all three passed bla verify (scores 99 / 93 / 98) with stdout and exit codes identical to the unhardened originals.

Round 1 dispatched four independent black-box red-team agents with access to the hardened outputs only. All four recovered the protected secrets and peeled 97.6%–99.98% of the injected shield bytes while preserving behavior. Their reports isolated four structural weaknesses, which we fixed in ast-shield.ts, python.ts, self-seal.ts, and wasm.ts. Round 2 re-hardened every target with fresh seeds and dispatched fresh black-box agents:

Attack vector Round 1 (before fixes) Round 2 (after fixes)
JS low-byte seed pinning / high-bit (8..31) edits Recovered the whsec_… / vk_live_… secrets every time Blocked — 0/24 recovery attempts succeeded; tampering yields garbage or decoy URLs
Debug / preload flags (--inspect, --import, --require, -r, NODE_OPTIONS) Preloaded hooks ran before BLA's integrity gate Blocked — process exits 1 with integrity check failed
External ESM wrapper installing an fs Proxy hook Evaded getBuiltinModule("node:fs") identity check Blocked — native util.types.isProxy detects hooked fs functions
Python plaintext secret grep & seal/warm-up stripping Read sk_live_… in cleartext; stripped file ran cleanly Blocked — zero plaintext secrets; deleting or stubbing self-seal / warm-up fails closed
WASM bla.* / enclave.* custom-section prefix stripping Dropped 3.87 MB of shield sections by name prefix Blocked — seed-derived mundane section names; removing sections trips the sidecar digest
Naive single-file / sibling tampering Partial bypass before sibling checks Blocked — fail-closed SHA-256 mismatch (bla verify also exits 2 offline)
Full static seed constant-folding + unkeyed SHA-256 re-seal Peeled 97.6%–99.98% of shield bytes Still succeeds (white-box ceiling) — in-band salts and unkeyed digests are attacker-recomputable

Honest bottom line: BLA blocks low-effort stripping, standard debug/preload shortcuts, and naive tampering, and forces REA's default analyzers into budget-limited examination. It does not provide white-box cryptographic secrecy: an attacker willing to constant-fold the intact runtime seed, recompute unkeyed in-band SHA-256 seals, or hook Module.prototype._compile in memory (node -e) can still peel the client-side layer and reconstruct business logic. Keep signing keys and crown-jewel secrets on a server you control.

Tier 3: Real Shell-Agent Reconstruction Study

What did a real shell-capable coding agent actually spend? An independent experiment on BLA v3.6.0 (3 runs per target, Stage 1 only) measured 1.86×–3.58× baseline-adjusted median input tokens on the four targets that passed the default score gate (1.18× on the fifth, SQLite, which did not). The agent's reconstruction passed 12/12 functional checks in all 15 hardened runs.

That study is the right calibration for real-world expectations: BLA inflates recon cost and degrades default static analysis, but a capable shell-enabled agent can still reconstruct unprotected business invariants if the underlying secrets ship in the client. The modeled multipliers in the 16-target table describe REA's static analyzer budget projection, not metered LLM token bills.

Designed-for paths not empirically run on this machine (click to expand)

These shields exist in-tree and are covered by unit tests / catalog drift checks, but the matching REA path requires external native debuggers/decompilers not installed on the CI runner:

Area Why Unverified Here
Ghidra / native decompilation depth Requires a local Ghidra install + REA bridge
Frida / LLDB / GDB / Rizin live sessions Requires those debuggers + device/process attach
JADX / full Android APK pipeline APK resigning unsupported; standalone DEX shield is in-tree
Firmware containers Staging/extraction budgets exist; no honest E2E without firmware corpora
SPIR-V / CUDA fatbinary / AMD GPU objects Need native GPU object decoders; PTX text is shielded in-tree
EVMole in-process EVM decode Not pathable in-process; EVM shield densifies to the 4 MiB input cap
REA's own PCAP provider (inspect_pcap_capture) REA runs it only on Linux / Windows; on macOS the harness runs the same two tshark passes and REA's parser
Raised REA budgets, other than JavaScript strings Not measured. Every other row is REA at its default settings

Format coverage

All 26 format shields are built directly into bla-agents with zero external packer dependencies.

Format Canary + Diagnostic Exhaustion / Budget Trip Verification Level Notes
JavaScript / TypeScript ✓ ✓ semantic budgets REA verified + red-teamed Babel AST; 32-bit seed-coupled string masking; self-seal
Electron .asar ✓ ✓ header 16 MiB REA verified IPC de-literalization + Pickle repackaging
Electron fuses ✓ ✓ >32 sentinels REA verified V1 fuse hardening + embedded ASAR hash check + sentinel flood
WebAssembly (.wasm) ✓ custom sections ✓ export decoys → Wabt REA verified + red-teamed LEB128 parser; mundane section names; preserves WebAssembly.validate
SQLite (.sqlite / .db) ✓ honey + trap cols ✓ column eval REA verified (Node 24) Magic-byte verified; supports WITHOUT ROWID
Safetensors (.safetensors) ✓ string metadata ✓ JSON nesting >32 REA verified HuggingFace-loadable; tensor bytes preserved
GGUF (.gguf) ✓ ✓ ARRAY nesting >32 REA verified Preserves model weights and KV tensors
Go buildinfo (ELF) ✓ ✓ >1 MiB REA verified (format rejection) Mapped ELF section
Windows PE (.exe / .dll) ✓ ✓ .enclave COFF section + fuses/rustc/Dart Unit-tested (designed-for) Mapped .enclave section, x86-64 ABI function islands, MSVC RTTI, CodeView RSDS PDB
Flutter / Dart pool ✓ ✓ URI/token caps REA verified (projected) Snapshot magic & toolchain flood
Erlang BEAM (.beam) ✓ ✓ chunks / atoms REA verified Exceeds 64-chunk budget
EVM + Solidity meta ✓ ✓ → 4 MiB input REA verified (approach) CBOR metadata + bytecode densification
PCAP (.pcap) ✓ ✓ REA's tshark field pass > 8 MiB (fixed) REA verified (tshark 4.4.1) Synthetic packet + canary injection; a DNS answer flood at bankrupt
Python (.py / .pyc) ✓ ✓ AST weave + string XOR Unit-tested + red-teamed CPython 3.7–3.14 marshal & AST; CR/CRLF normalization; live self-seal coupling
NVIDIA PTX (.ptx) ✓ entry flood Benchmark only Kernel entry & canary flood
DEX / IL2CPP / bplist / .NET / JVM / ZIP ✓ format-specific Unit-tested (designed-for) Recomputes DEX SHA-1 & Adler32; structural PE CLR-header (.NET) admission

Benchmark (16 targets, internal estimates)

Run npx bla-agents benchmark to execute the 16-target fixture suite locally.

npx bla-agents benchmark

Note: Token and USD columns below are internal estimates derived from BLA's catalog of REA limits to illustrate relative amplification across formats — for actual process-level REA errors, see the Empirical Results table above, and for metered shell-agent behavior see Tier 3.

Aggregate result (modeled, re-measured on main 37dddd4). ~1,293.6× modeled token amplification · ~600.3× modeled cost amplification · 16/16 bundled fixtures passed their format-specific execution, query, or structural check. Figures are internal estimator projections, not metered live agent billing.

Target Artifact Exposure Before → After Obligation Nodes Before → After Modeled Tokens (Before → After) Token Multiplier Fixture check
DX-Ball sound-pan (.js) 84 → 2 2 → 427 4,800 → 23,125,000 4,817.7× ✅ Pass
Notion Electron clipboard (.asar) 98 → 2 9 → 1,310 9,132 → 23,125,000 2,532.3× ✅ Pass
Enterprise license validator (.ts) 87 → 2 2 → 427 4,800 → 23,125,000 4,817.7× ✅ Pass
WASM crypto kernel (.wasm) 81 → 6 2 → 38 4,800 → 1,831,000 381.5× ✅ Pass
Native ELF64 (Rust/Go/Fuse/Dart) 81 → 2 8 → 56 35,222 → 3,718,600 105.6× ✅ Pass
SQLite entitlement DB (.sqlite) 81 → 9 2 → 36 10,568 → 1,611,335 152.5× ✅ Pass
Edge AI Safetensors (.safetensors) 81 → 6 2 → 38 4,800 → 1,808,590 376.8× ✅ Pass
Android Dalvik bytecode (.dex) 81 → 7 10 → 144 8,900 → 13,443,668 1,510.5× ✅ Pass
Apple binary plist (.plist) 81 → 8 4 → 40 6,440 → 1,680,749 261.0× ✅ Pass
.NET managed assembly (.dll) 81 → 6 12 → 44 8,900 → 2,014,652 226.4× ✅ Pass
Erlang BEAM module (.beam) 81 → 5 6 → 72 8,900 → 3,855,400 433.2× ✅ Pass
EVM Solidity metadata (.bin) 81 → 6 4 → 36 6,440 → 1,779,400 276.3× ✅ Pass
libpcap network capture (.pcap) 81 → 7 2 → 342 4,800 → 23,125,000 4,817.7× ✅ Pass
NVIDIA PTX compute kernel (.ptx) 81 → 7 2 → 256 4,800 → 23,106,985 4,814.0× ✅ Pass
JavaScript entitlement string table (.js) 81 → 2 1 → 426 4,964 → 23,125,000 4,658.5× ✅ Pass
GGUF model metadata (.gguf) 81 → 8 2 → 38 4,800 → 1,653,019 344.4× ✅ Pass

Engineering overhead (measured)

Measured on main (37dddd4, Node v24.22.3, Apple M5 Pro / macOS arm64) using a 21-module JavaScript fixture (61,142 B source across dist/). Build-time speedups come from the interleaved A/B benchmark in PR #344 (25 timed runs per side, alternating main and PR under identical host load); runtime overhead uses 9 interleaved runs per side:

Metric Baseline BLA Hardened Delta / Ratio Notes
Build wall time — bankrupt (p50) 2,169.73 ms (main pre-#344) 1,381.48 ms −36.3% Byte-identical output SHA-256 across all runs
Build wall time — balanced (p50) 981.79 ms (main pre-#344) 628.92 ms −35.9% Byte-identical output SHA-256 across all runs
Process startup + execution — balanced (p50) 52.5 ms (unhardened) 64.6 ms 1.16× paired ratio ≈12 ms one-time preamble/module-parse cost per short-lived CLI process
Process startup + execution — bankrupt (p50) 52.5 ms (unhardened) 63.9 ms 1.32× paired ratio ≈11 ms one-time preamble/module-parse cost; amortized in long-lived services
Emitted artifact size (bankrupt) 61,142 B 5,000,060 B 81.8× bytes Full shadow-heap, decoy labyrinth, and honey SourceMap suite per module
Automated verification — Full Vitest suite with coverage floors 4 CI targets Ubuntu (Node 22.23.4 and 24), macOS (Node 24), Windows (Node 24), plus CrackMe v6–v9

Reproduce the build benchmark locally:

npm run build
node scripts/bench-harden.mjs --intensity=bankrupt --runs=5
node scripts/bench-harden.mjs --intensity=balanced --runs=5

🎯 Red-vs-Blue CrackMe Arena

Test your reverse-engineering agent against public BLA-hardened challenges (SEAL.json publishes SHA-256 digests only — no plaintext keys or flags in git):

Challenge Architecture Hardening Highlights Try It Locally
CrackMe v6 Node Vault + HTML Panel + WASM Core bankrupt intensity, self-sealed sibling hashes, WASM export obfuscation npm run crackme:v6 -- '<key>'
CrackMe v7 Polyglot Vault (JS + WASM + Rust + Go + C) Cross-language state entanglement & multi-binary integrity gates npm run crackme:v7 -- '<key>'
CrackMe v8 Aegis Split-Key Vault AST-encrypted strings (bla_encrypt_strings) + caller scope binding (bla_bind_scope) npm run crackme:v8 -- '<key>'
CrackMe v9 Agent-Woven Entangled Vault Full BLA 3.x closed-loop weave (weaveScore >= 70) + distributed anti-strip checks npm run crackme:v9 -- '<key>'

Security and configuration defaults

  • Per-project seed. Real harden runs persist a random seed in .blarc or the project config. The seed participates in generated output and the one-way run ID.
  • Hardening-refusing gates. bla lint reports packaging patterns that block applicable harden runs, including lane-independent checks, reversible seal sidecars, clear WASM parameter carriers, known JS/WASM unwrap patterns, and release-hygiene leaks.
  • Lint-only findings. Plaintext-secret, integrity-coverage, and bind-scope checks return remediation guidance but do not all block bla_harden. Read each finding's enforcedByHarden value.
  • Opt-in LLM directives. Aggressive in-band prompt decoys stay off unless you pass --llm-directives or set llmDirectives: true.
  • Opt-in manifests. --manifest emits an unsigned .bla-manifest.json. Add --sign-manifest --manifest-key <pem> for an Ed25519 signature, then verify it with bla verify-manifest <file> --public-key <pem>.

FAQ

Which coding agents can use BLA?

Any coding agent that supports MCP or SKILL.md workflows can use BLA. The installation guide is the source of truth for supported clients. After setup, the bundled blind-llm-agents skill guides source review, artifact hardening, promotion, and testing.

Does BLA slow down my app or change runtime output?

The benchmark executes JavaScript and WebAssembly fixtures, checks SQLite query parity, and uses format-specific structural checks for other artifacts. All 16 fixture checks pass, but not every check is an executable equivalence test. Run your own consumer tests before release. A short-lived CLI process also pays a one-time parse cost. The measured fixture ratio was 1.16×–1.32× for process startup and execution. See engineering overhead.

Do I need Ghidra, Hopper, IDA, or Wabt installed to protect files?

No. All 26 format shields are built into bla-agents in pure TypeScript/Node.js. External tools (Wabt, tshark) are only used if you run the optional live REA red-team suite (npm run redteam:rea).

Can BLA be used to attack other people's software?

No. BLA is strictly a Blue Team defensive tool that hardens your own build artifacts before release. See DISCLAIMER.md.


Documentation

Contributing and community

Start with the contributing guide. High-value contributions include a functional-equivalence regression, a format shield with an executable consumer test, or a reproducible challenge to an analyzer-limit claim with pinned provenance. Use the security policy for vulnerability reports.

Run the relevant checks before opening a pull request.

npm test
node dist/cli.js benchmark
node scripts/verify-website.mjs

🧩 More Projects by @qybaihe

  • 🤖 BotArk — Native macOS, Windows, iOS & Android workspace unifying Grok Bot, Google Antigravity, ChatGPT Dot, Meta Muse, Hark, Cue, and Hermes with multi-agent collaboration rooms, per-account proxy isolation, and approval-gated local MCP.
  • 🧠 mu (μ) — Coding agent harness with a tiny judgment kernel (+9.5pp on Terminal-Bench 2.1).

📄 License

MIT

Star history

Star History draws the GitHub star growth for qybaihe/bla. The chart image is cached for about a day and is not a per-second count. Select it to open the full history.

Star history chart for the qybaihe/bla GitHub repository

About

🛡️ 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).

Topics

Resources

Contributing

Security policy

Stars

7.5k stars

Watchers

31 watching

Forks

Releases

Packages

Contributors

Languages