🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.
JavaScript adversarial-aiclaude-codecursorelectron-securityllm-securitymcpmcp-serverobfuscationreverse-engineeringwebassembly
feat(config): add weaveDecoys key parity with CLI --weave-decoys / MCP
qybaihe1310f58caa85
diff --git a/src/cli.ts b/src/cli.tsindex fb9b5b6..19222b8 100644--- a/src/cli.ts+++ b/src/cli.ts@@ -313,7 +313,7 @@ export async function runCli(argv: readonly string[] = process.argv.slice(2)): Pseed: resolved.seed,emitManifest: parsed.manifest || loaded.config.emitManifest === true,llmDirectives: parsed.llmDirectives || loaded.config.llmDirectives === true,- weaveDecoys: parsed.weaveDecoys,+ weaveDecoys: parsed.weaveDecoys || loaded.config.weaveDecoys === true,...(parsed.output !== undefined ? { outputDirectory: parsed.output } : {}),});if (parsed.json) {@@ -345,7 +345,7 @@ export async function runCli(argv: readonly string[] = process.argv.slice(2)): Pseed: resolved.seed,emitManifest: parsed.manifest || loaded.config.emitManifest === true,llmDirectives: parsed.llmDirectives || loaded.config.llmDirectives === true,- weaveDecoys: parsed.weaveDecoys,+ weaveDecoys: parsed.weaveDecoys || loaded.config.weaveDecoys === true,});if (parsed.sarif) {console.log(@@ -401,7 +401,7 @@ export async function runCli(argv: readonly string[] = process.argv.slice(2)): Pseed: resolved.seed,honeySourceMaps: parsed.honeyMaps,llmDirectives: parsed.llmDirectives || loaded.config.llmDirectives === true,- weaveDecoys: parsed.weaveDecoys,+ weaveDecoys: parsed.weaveDecoys || loaded.config.weaveDecoys === true,});if (parsed.json) console.log(JSON.stringify(res, null, 2));else console.log(formatProtectionResult(res));diff --git a/src/core/config.ts b/src/core/config.tsindex e3bc00c..52d83bb 100644--- a/src/core/config.ts+++ b/src/core/config.ts@@ -16,6 +16,8 @@ export interface BlaProjectConfig {readonly llmDirectives?: boolean;readonly honeySourceMaps?: boolean;readonly minDefenseScore?: number;+ /** Opt-in structural weave decoys (Python customer-def / .pyc co_consts weave; JS AST weave already on). Parity with CLI `--weave-decoys` / MCP `weave_decoys`. */+ readonly weaveDecoys?: boolean;}/**@@ -31,6 +33,7 @@ export const DEFAULT_BLA_CONFIG: BlaProjectConfig = Object.freeze({llmDirectives: false,honeySourceMaps: true,minDefenseScore: 90,+ weaveDecoys: false,});/** Legacy fixed seeds that fingerprint every project the same way — never reuse as a default. */diff --git a/website/schemas/bla.config.v1.json b/website/schemas/bla.config.v1.jsonindex 3a8924c..1581408 100644--- a/website/schemas/bla.config.v1.json+++ b/website/schemas/bla.config.v1.json@@ -41,6 +41,11 @@},"minDefenseScore": {"type": "number"+ },+ "weaveDecoys": {+ "type": "boolean",+ "default": false,+ "description": "Opt-in structural weave decoys (Python customer-def / .pyc co_consts weave; JS AST weave already on). Parity with CLI --weave-decoys / MCP weave_decoys."}},"additionalProperties": true