# BLA (Blind LLM Agents)

> Harden the build you ship so AI reverse-engineering agents run out of budget and follow decoys

- Category: Evaluation & Production Ops / Guardrails & Security
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/qybaihe/bla
- Website: https://bla.tools/
- Canonical page: https://ai-tldr.dev/tools/bla/
- Updated: 2026-11-03

## In short

BLA (Blind LLM Agents) is an open-source TypeScript CLI and MCP server, published on npm as bla-agents, that protects software you ship against AI reverse-engineering agents. Its stated target is REA, an open-source tool that lets coding agents decompile and reconstruct applications. It sits in the Guardrails & Security category of the Evaluation & Production Ops tools and is open-source, written in TypeScript and licensed MIT.

## Overview

BLA (Blind LLM Agents) is an open-source TypeScript CLI and MCP server, published on npm as bla-agents, that protects software you ship against AI reverse-engineering agents. Its stated target is REA, an open-source tool that lets coding agents decompile and reconstruct applications. You point BLA at your release artifacts; when an analyzer opens them, the project says it hits resource budgets, follows decoys and burns tokens, while the program keeps the same runtime behaviour for real users.

The README describes three layers. Poison plants format-valid canaries, honey metadata and decoy control flow that look like real evidence. Exhaust pushes the artifact past an analyzer's documented resource budgets — header sizes, nesting depth, interface inventories and similar caps. Hallucinate leaves the analyzer with truncated inventories and ambiguous rabbit holes. A runtime guard also hardens Electron fuses and, per the README, returns synthetic telemetry when CDP, Frida or an inspector is attached. The protections are format-native and need no commercial packer or external LLVM toolchain; the project's stated red line is never to break the protected program's behaviour, exports or format validity.

Coverage spans JavaScript and TypeScript, Electron .asar archives and fuses, WebAssembly, Python bytecode, SQLite, Safetensors and GGUF model files, Go build info, Flutter/Dart, Erlang BEAM, EVM bytecode and PCAP captures, with further shields for DEX, IL2CPP, .NET, JVM and Apple binary plists. The README separates formats it has measured against a real REA run from ones that are only designed-for, and labels its token and cost multipliers as internal estimates rather than measured results. BLA is positioned as a defensive tool for your own software only, and its disclaimer says it is not for attacking other people's code.

## What it does

- One-command harden (bla harden .) that auto-discovers dist/, build/, .asar, .wasm, .sqlite and model files and runs audit → protect → verify
- Separate audit, protect, verify and defend stages from the CLI, or the same tools over MCP (bla_harden, bla_audit, bla_protect, bla_verify)
- bla setup registers the MCP server and a bundled skill with Claude Code, Cursor, Codex, Gemini CLI, Windsurf, Google Antigravity, OpenCode, VS Code and GitHub Copilot CLI
- Format-native shields for JavaScript, Electron, WebAssembly, Python, SQLite, Safetensors, GGUF, Go, Dart, BEAM, EVM, PCAP and more, with no external packer
- Runtime-equivalence checks in its benchmark, plus a red-team harness (npm run redteam:rea) that records results against a real REA install
- Per-project random seed, with riskier LLM-facing bait (--llm-directives) and the unsigned defense manifest (--manifest) off by default
- MIT licensed

## Getting started

BLA runs on Node.js ^22.23.4 or 24+ (the npm package's engines field). Use it through npx, as a dev dependency in a release pipeline, or as a global install.

1. Register BLA with your coding agent

   Setup discovers installed AI coding agents and registers the bla MCP stdio server plus the blind-llm-agents skill. doctor checks the environment and the configured clients.

```bash
npx bla-agents setup
npx bla-agents doctor
```

2. Harden the current project in one command

   harden finds your build outputs and runs audit, protect and verify. After setup you can ask your agent the same thing in plain language.

```bash
npx bla-agents harden .
# or ask your agent: "Harden my software against REA"
```

3. Or run the stages on one artifact

   Audit an artifact for REA exposure, protect it in bankrupt mode, then verify functional preservation against the original.

```bash
npx bla-agents audit ./dist/app.js
npx bla-agents protect ./dist/app.js --mode bankrupt
npx bla-agents verify ./dist/app.js ./dist/app.bla.js
```

4. Protect every build in CI

   Install BLA as a dev dependency and add a postbuild step, as the project's installation guide shows for a Vite app.

```bash
npm install --save-dev bla-agents

# package.json
"scripts": {
  "build": "vite build",
  "postbuild": "bla protect ./dist/assets/index.js --in-place --mode bankrupt --emit-sourcemap"
}
```

## When to use it

- Making a shipped Electron or JavaScript app expensive for an AI agent to decompile and clone
- Adding canaries and decoys to WebAssembly modules, SQLite databases or model files you distribute
- Running a protect step after every build in a release pipeline so each artifact is hardened before it ships
- Red-teaming your own release with REA to see which analyzer budgets your hardened build trips

## Version history

- 2026-11-03 v2.0.0: Major MCP and Skill 2.0 release: a unified bla lint / bla_lint packaging gate, new refuse lints in bankrupt mode, WASM export hygiene and agent write safety. The CLI and MCP verbs bla_harden, bla_defend and bla_protect are unchanged.
