Skip to content

armgit / bla

Public Imported from GitHub
0

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

feat(config): add wasmPreserveExports to ProtectionOptions, .blarc, schema (#40.3)

qybaihebe03de707e10
diff --git a/src/core/config.ts b/src/core/config.ts
index ee0c239..cd701cb 100644
--- a/src/core/config.ts
+++ b/src/core/config.ts
@@ -20,6 +20,8 @@ export interface BlaProjectConfig {
readonly weaveDecoys?: boolean;
/** Opt-in self-seal / sibling-module integrity binding for JS/Node (issue #40.5). Parity with CLI `--self-seal` / MCP `self_seal`. */
readonly selfSeal?: boolean;
+ /** WASM export names that must remain the public ABI when export rename runs (issue #40.3). */
+ readonly wasmPreserveExports?: readonly string[];
}
/**
diff --git a/src/core/types.ts b/src/core/types.ts
index 2478e0d..c9bfd81 100644
--- a/src/core/types.ts
+++ b/src/core/types.ts
@@ -169,6 +169,11 @@ export interface ProtectionOptions {
* When true, harden/protect inject a self-integrity preamble and entangle the opaque seed.
*/
readonly selfSeal?: boolean;
+ /**
+ * WASM public ABI export names to keep when rename runs (issue #40.3).
+ * Other / internal-looking exports may be renamed at maximum/bankrupt.
+ */
+ readonly wasmPreserveExports?: readonly string[];
}
export interface ProtectionMetrics {
diff --git a/website/schemas/bla.config.v1.json b/website/schemas/bla.config.v1.json
index 99cebec..1caf8bd 100644
--- a/website/schemas/bla.config.v1.json
+++ b/website/schemas/bla.config.v1.json
@@ -51,6 +51,11 @@
"type": "boolean",
"default": false,
"description": "Opt-in self-seal / sibling-module integrity binding for JS/Node targets (issue #40.5). Parity with CLI --self-seal / MCP self_seal."
+ },
+ "wasmPreserveExports": {
+ "type": "array",
+ "items": { "type": "string" },
+ "description": "WASM export names that must remain the public ABI when export rename runs at maximum/bankrupt (issue #40.3)."
}
},
"additionalProperties": true