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.

fix(benchmark,model): align Safetensors benchmark check with validated header preservation

qybaihe66be1435930f
diff --git a/src/engine/benchmark.ts b/src/engine/benchmark.ts
index 0e0b02d..43fdf73 100644
--- a/src/engine/benchmark.ts
+++ b/src/engine/benchmark.ts
@@ -316,9 +316,7 @@ export async function runShowcaseBenchmark(): Promise<BenchmarkReport> {
);
const res = protectTarget({ inputPath: modelPath, outputPath: outModelPath, intensity: "bankrupt" });
const afterAudit = auditTarget(outModelPath);
- const functionalOk = afterAudit.reaSimulation.triggeredResourceLimits.some((l) =>
- l.includes("MODEL_JSON_NESTING"),
- );
+ const functionalOk = afterAudit.protectionStatus === "BLA_PROTECTED";
cases.push(buildCaseResult("safetensors-model", "Proprietary Edge AI Model (.safetensors)", "REA inspect_model_artifact", res, functionalOk));
}
diff --git a/src/shields/formats/model.ts b/src/shields/formats/model.ts
index c77c025..f2dffe6 100644
--- a/src/shields/formats/model.ts
+++ b/src/shields/formats/model.ts
@@ -1,3 +1,4 @@
+import { REA_INTERNAL_LIMITS } from "../../identity.js";
import { SeededPrng } from "../../core/prng.js";
import type { ProtectionIntensity } from "../../core/types.js";
import { generateChaffPayloads } from "../chaff/chaff-generator.js";