🛡️ 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
docs(runtime): document CDP shape budget and Frida capture limit countermeasures
qybaihe8583db97f7fe
diff --git a/docs/cdp-and-frida-runtime-defense.md b/docs/cdp-and-frida-runtime-defense.mdnew file mode 100644index 0000000..7577005--- /dev/null+++ b/docs/cdp-and-frida-runtime-defense.md@@ -0,0 +1,16 @@+# CDP & Frida Dynamic Runtime Saturation (`cdp-shape-budget-breaker.ts` & `frida-capture-saturation.ts`)++## 1. Defeating REA's `CdpCaptureEvents` Shape & Event Budgets++In `morluto/rea/src/browser/CdpCaptureEvents.ts`, passive browser inspection shares a fixed `WEB_RUNTIME_LIMITS.retainedEventBytes` allowance across console logs, HTTP JSON body shapes, and WebSocket frame shapes. Any JSON payload nested $\ge 760$ levels deep is rejected with `reason: "resource_budget_exhausted"`.++BLA's `generateCdpShapeBudgetBreaker` detects Playwright, Puppeteer, and WebDriver attachment and synthesizes 780–900 level JSON envelopes alongside console drain payloads.++## 2. Defeating REA's `fridaCaptureLimits.ts`++In `morluto/rea/src/frida/fridaCaptureLimits.ts`:+- `MAX_JSON_DEPTH = 64`+- `MAX_MESSAGE_TEXT_BYTES = 32,768`+- `MAX_CAPTURE_JSON_NODES = 250,000`++When `globalThis.Frida` or `globalThis.Interceptor` is present in the runtime, BLA's `generateFridaCaptureSaturation` wraps decoy hook telemetry in 68–80 levels of JSON nesting and $>34\text{ KiB}$ message text, forcing REA to drop and truncate dynamic trace payloads.