All posts
Open Source & Dev Tools

bla-agents 3.2.0 First Run: Verifying Offline Bundle Protection

2026-11-10 isolated test (raw data): bla-agents 3.2.0 protected 3 sample files offline (131147 bytes, 233.282ms median). Directory hardening took 643.731ms median, passing all 5 runs (error: none).

Nov 10, 2026 5 min read

In a 2026-11-10 isolated environment benchmark (raw data (JSON)), bla-agents 3.2.0 processed 3 sample files—consisting of 20 lines of JavaScript, 5 source map entries, and 24 bytes of WebAssembly—without an external network in a median of 233.282ms (output: 131147 bytes) for the bundler plugin and a median of 643.731ms (output: 4010952 bytes) for directory hardening, with no (none) errors. Distributed by the open-source repository qybaihe/bla, bla-agents is a defense tool that protects build artifacts by exhausting the static and semantic analysis budgets of AI reverse-engineering agents.

Reverse-engineering agent defense architecture and 2026-11-08 release background

According to the official README and the official website, bla-agents targets the exploration limits of automated analyzers rather than relying on conventional obfuscation that only renames variables. It operates across four layers: deception (Poison), which plants format-compliant canaries and honey source maps; budget exhaustion (Exhaust), which saturates analyzer candidate search caps and header size limits; entanglement (Entangle), which binds adjacent artifacts with integrity hashes; and runtime defense (Runtime Truman Show), which detects debugger attachments.

Its protection scope spans multiple deployment artifacts, including JavaScript and TypeScript bundles, Electron packages and fuses, WebAssembly, Python, databases, AI model files, and native binaries. It is structured to execute static protection passes for each format within a Node.js environment without separate external packer dependencies.

According to the bla-agents-3.2.0 release notes, published alongside the latest code push on 2026-11-08, the sidecar entanglement (sidecarEntangle) feature was expanded to verify integrity by binding companion snapshot files without directly modifying the original runtime binary. In addition, the 2026-11-08 release capped the maximum defense score when verifying without the sidecar entanglement option enabled so that protection levels are not overestimated, and it also fixed a TypeScript option reference issue in the directory hardening post-processing stage.

Offline isolated environment installation and first-run benchmark comparison

The usage guide in the official README instructs users to install the package via npm, run directory-level CLI protection commands or coding agent integration setup, and register the bundler plugin to protect JavaScript chunks, source maps, and WebAssembly artifacts. By contrast, the scope verified in the 2026-11-10 isolated environment (raw data (JSON)) covers whether bundler plugin initialization, sample asset protection processing, and directory protection entry function calls work—and how long they take—inside an offline sandbox without an external network, host coding agent, or credentials.

The isolated environment used for the 2026-11-10 benchmark (raw data (JSON)) ran Ubuntu 24.04.4 LTS (aarch64, Neoverse-N1 x2, CPUQuota 150%), 2048MB of memory, and the Node.js 24.21.0 runtime. When preparing bla-agents version 3.2.0 in this environment, the total installation phase including virtual environment and directory setup (installSeconds) took 2.7 seconds, and the size of the entire installed node_modules directory (installBytes)—not just the single package—was 6716884 bytes.

In the experiment, 3 sample files consisting of 20 fixed lines of JavaScript code, 5 source map entries, and 24 bytes of WebAssembly were created in a temporary directory and executed repeatedly across 5 runs (2026-11-10, raw data (JSON)). Offline protection was judged to operate normally if both key metrics, pluginOk and shieldOk, were 1, and read as a failure if either was 0.

MetricMedianMinMaxSuccess Flag & Error
Module import (importMs)189.304ms186.264ms190.118msLoaded normally
Help check (helpMs / helpBytes)0.176ms (8258 bytes)0.175ms (8258 bytes)0.21ms (8258 bytes)helpOk: 1
Plugin initialization (pluginInitMs)0.11ms0.103ms0.159mspluginOk: 1
Bundler protection (shieldMs / shieldOutBytes)233.282ms (131147 bytes)224.752ms (131147 bytes)242.639ms (131147 bytes)shieldOk: 1
Directory hardening (hardenMs / hardenOutBytes)643.731ms (4010952 bytes)613.667ms (4009906 bytes)678.55ms (4011150 bytes)hardenOk: 1, error none

The table above summarizes the measurements across 5 repeated runs in the 2026-11-10 isolated environment (raw data (JSON)). Total wall-clock execution time (wallMs) per run was 1272.139ms in run 1, 1218.742ms in run 2, 1218.259ms in run 3, 1220.056ms in run 4, and 1220.265ms in run 5, showing small variance and stable performance across all 5 runs.

The key fact confirmed by the 2026-11-10 benchmark (raw data (JSON)) is that even in a completely offline state with no external LLM API or host agent connection, both bundler protection (shieldOk: 1) and directory hardening (hardenOk: 1) passed, and the exception log (hardenErr) remained none across all 5 runs. This means build-time artifact protection is handled locally by deterministic algorithms rather than external AI calls.

The change in artifact size is also pronounced. The input—originally 20 lines of JavaScript, 5 source map entries, and the WebAssembly sample—grew to 131147 bytes after bundler plugin protection and expanded to a median of 4010952 bytes (min 4009906 bytes, max 4011150 bytes) after directory hardening (2026-11-10, raw data (JSON)). This result occurs because the tool injects large volumes of decoy state machines, honey source maps, and export symbols to exceed the static analysis limits of reverse-engineering analyzers.

Bundler plugin and CLI hardening code configuration

The usage methods described in the official README are broadly divided into bundler plugin registration, single-command CLI hardening, and coding agent MCP integration. When attaching the plugin to a Vite build pipeline, use the configuration code below.

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

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

In the 2026-11-10 isolated benchmark (raw data (JSON)), blaVitePlugin was initialized with the same { intensity: "bankrupt", enableHoneySourceMaps: true } options, executing the transform, renderChunk, generateBundle, and writeBundle hooks in order. Plugin object creation (pluginInitMs) finished in a median of 0.11ms, while actual chunk transformation and source map protection (shieldMs) took a median of 233.282ms.

To protect an already built output directory at once or register an MCP server with a host coding agent, run the CLI commands listed on the official website and in the README.

npx bla-agents harden .
npx bla-agents setup

Based on the 2026-11-10 benchmark (raw data (JSON)), the directory hardening stage (hardenMs) took a median of 643.731ms. While it does not place a heavy burden on build speed, the artifact size expands to a median of 4010952 bytes, so teams should choose between applying only the bundler plugin or running full directory hardening depending on the size budget of the deployment environment.

Comparison with conventional obfuscation tools and adoption criteria

Compared with conventional JavaScript obfuscation tools (which replace identifier names with random strings and flatten control flow) or binary virtual machine (VM) packers, its design goal is different. As explained in the official README, simple identifier obfuscation is easily deciphered by LLM-based reverse-engineering agents that summarize code context, whereas heavy VM packers can easily break cross-platform builds or slow down runtime execution speed.

By contrast, bla-agents preserves standard artifact format specifications while hitting the analysis budget ceilings of automated reverse-engineering tools, causing them to terminate analysis early or chase fake paths. Another difference is that instead of targeting JavaScript alone, a single tool handles WebAssembly, Electron archives, databases, and model files.

Examining concrete adoption scenarios makes the selection criteria clear. For projects such as Electron desktop apps or on-premises deployment packages—where an installer size increase of several megabytes is acceptable and protecting license verification logic or internal protocols from automated reverse-engineering agents is critical—applying full directory hardening (harden) is advantageous.

Conversely, for mobile web or public web frontends sensitive to initial loading bytes, the fact that 3 small sample files grew to 4010952 bytes immediately after directory hardening in the 2026-11-10 benchmark (raw data (JSON)) can strain transfer bandwidth and cache efficiency. In such environments, it is appropriate to selectively use only the blaVitePlugin bundler stage—which kept the output at 131147 bytes—or process general UI code that does not require reverse-engineering defense with only a default bundler minifier.

Limitations and potential failure conditions to check before adoption

Based on the official repository, the license is MIT, so it can be used in commercial projects without restrictions, but runtime requirements and execution scope limitations should be reviewed in advance. The official documentation recommends the latest Node.js LTS or higher, and this isolated environment benchmark was conducted on Node.js 24.21.0 (2026-11-10, raw data (JSON)).

The difference between standalone offline CI/CD execution and agent-integrated execution is also an important constraint. As confirmed in the 2026-11-10 benchmark (raw data (JSON)), artifact-level defense (blaVitePlugin and harden) completes standalone offline, whereas source-code-level string encryption (bla_encrypt_strings) and multi-call scope binding (bla_bind_scope) emphasized in the official README require a host coding agent such as Claude Code or Cursor to call MCP tools and surgically modify the source. Therefore, keep in mind that running only the CLI on a CI build server without a host agent applies only outer artifact defense without source-level weaving.

Options disabled by default and the scope of unverified tools must also be checked. According to the bla-agents-3.2.0 release notes and the README guide, sidecar entanglement (--sidecar-entangle), in-band prompt decoys (--llm-directives), and signed manifests (--manifest) are disabled by default, so defense against artifact separation attacks is lower unless those options are explicitly specified. Furthermore, the official documentation leaves external native debugger and decompiler sessions—such as Ghidra, Frida, LLDB, and JADX—as well as Android APK re-signing as areas not empirically verified in the default environment, and those external tools were not executed in this isolated environment either, leaving them unverified.

For desktop or backend packages that need immediate build artifact protection in a deployment pipeline without an external agent and can tolerate a size increase of several megabytes, applying npx bla-agents harden directly is suitable; for web services with strict bundle size caps, weaving only core verification modules via coding agent MCP integration during development or selectively enabling only the bundler plugin is the right setup.

Experiment conditions
OS
Ubuntu 24.04.4 LTS
Processor
Neoverse-N1 x2, CPUQuota 150%aarch64
Memory
2,048 MB
Runtime
Node.js 24.21.0
Tool tested
bla-agents 3.2.0
Repeats
5×
Measured on
2026-11-10
#bla-agents#reverse-engineering-defense#code-obfuscation#vite-plugin#webassembly#security-tools
Robeedau

Written by AI from public sources; numbers and claims are checked against those sources before publishing.