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.

style(svg): re-skin showcase SVG right panel to BLA Blue vs REA Red

qybaihe287b50df96d6
diff --git a/docs/assets/bla-vs-rea-showcase.svg b/docs/assets/bla-vs-rea-showcase.svg
index fe47fc1..01f86f9 100644
--- a/docs/assets/bla-vs-rea-showcase.svg
+++ b/docs/assets/bla-vs-rea-showcase.svg
@@ -1,13 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 650" width="100%" height="100%">
<defs>
<linearGradient id="panelBg" x1="0%" y1="0%" x2="0%" y2="100%">
- <stop offset="0%" stop-color="#0b0f19" />
- <stop offset="100%" stop-color="#060911" />
+ <stop offset="0%" stop-color="#0b1120" />
+ <stop offset="100%" stop-color="#050811" />
</linearGradient>
<linearGradient id="burnBar" x1="0%" y1="0%" x2="100%" y2="0%">
- <stop offset="0%" stop-color="#14b8a6" />
- <stop offset="50%" stop-color="#f59e0b" />
- <stop offset="100%" stop-color="#ef4444" />
+ <stop offset="0%" stop-color="#2563eb" />
+ <stop offset="55%" stop-color="#38bdf8" />
+ <stop offset="100%" stop-color="#60a5fa" />
</linearGradient>
<style>
.mono { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, monospace; }
@@ -31,23 +31,23 @@
</defs>
<!-- Outer Frame -->
- <rect width="1200" height="650" rx="16" fill="#020617" stroke="#1e293b" stroke-width="2" />
+ <rect width="1200" height="650" rx="16" fill="#030712" stroke="#1e293b" stroke-width="2" />
<!-- Top Header -->
<text x="600" y="38" text-anchor="middle" class="sans" font-size="20" font-weight="800" fill="#f8fafc">
- ⚔️ SIDE-BY-SIDE LIVE SHOWCASE: <tspan fill="#f87171">morluto/rea</tspan> BEFORE vs. AFTER <tspan fill="#2dd4bf">npx bla-agents protect</tspan>
+ ⚔️ RED vs. BLUE SHOWCASE: <tspan fill="#ef4444">morluto/rea (RED)</tspan> vs. <tspan fill="#60a5fa">npx bla-agents defend (BLUE)</tspan>
</text>
- <!-- ==================== LEFT SCREEN: BEFORE BLA ==================== -->
+ <!-- ==================== LEFT SCREEN: BEFORE BLA (REA RED) ==================== -->
<g transform="translate(24, 58)">
<rect width="564" height="568" rx="12" fill="url(#panelBg)" stroke="#ef4444" stroke-width="1.8" />
<!-- Window Bar -->
- <rect width="564" height="38" rx="12" fill="#1f1215" />
+ <rect width="564" height="38" rx="12" fill="#230f14" />
<circle cx="20" cy="19" r="6" fill="#ef4444" />
<circle cx="38" cy="19" r="6" fill="#f59e0b" />
- <circle cx="56" cy="19" r="6" fill="#10b981" />
+ <circle cx="56" cy="19" r="6" fill="#3b82f6" />
<text x="282" y="24" text-anchor="middle" class="mono" font-size="13" font-weight="700" fill="#fca5a5">
- ❌ BEFORE BLA — Unprotected App vs. REA
+ ❌ BEFORE BLA — Unprotected App vs. REA (RED)
</text>
<!-- Terminal Lines -->
@@ -79,44 +79,44 @@
<rect x="38" y="510" width="18" height="14" rx="7" fill="#ef4444" />
</g>
- <!-- ==================== RIGHT SCREEN: AFTER BLA ==================== -->
+ <!-- ==================== RIGHT SCREEN: AFTER BLA (BLA BLUE) ==================== -->
<g transform="translate(612, 58)">
- <rect width="564" height="568" rx="12" fill="url(#panelBg)" stroke="#14b8a6" stroke-width="2" class="pulse-border" />
+ <rect width="564" height="568" rx="12" fill="url(#panelBg)" stroke="#3b82f6" stroke-width="2" class="pulse-border" />
<!-- Window Bar -->
- <rect width="564" height="38" rx="12" fill="#062c28" />
+ <rect width="564" height="38" rx="12" fill="#0c1e3e" />
<circle cx="20" cy="19" r="6" fill="#ef4444" />
<circle cx="38" cy="19" r="6" fill="#f59e0b" />
- <circle cx="56" cy="19" r="6" fill="#10b981" />
- <text x="282" y="24" text-anchor="middle" class="mono" font-size="13" font-weight="700" fill="#5eead4">
- 🛡️ AFTER `npx bla-agents protect` — REA Blinded &amp; Bankrupted
+ <circle cx="56" cy="19" r="6" fill="#3b82f6" />
+ <text x="282" y="24" text-anchor="middle" class="mono" font-size="13" font-weight="700" fill="#93c5fd">
+ 🛡️ AFTER `npx bla-agents defend` — REA Exhausted &amp; Misled (BLUE)
</text>
<!-- Terminal Lines -->
<text x="20" y="70" class="mono" font-size="12.5" fill="#94a3b8">$ rea analyze-javascript-application ./notion-app.shielded.asar</text>
- <text x="20" y="96" class="mono" font-size="12" fill="#2dd4bf">▶ [REA Engine] Static, Semantic &amp; Container Budgets Broken:</text>
- <text x="32" y="118" class="mono" font-size="12" fill="#e2e8f0">• parse_status / examination:<tspan fill="#2dd4bf" font-weight="700">"partial" / "limited"</tspan></text>
- <text x="32" y="138" class="mono" font-size="11.5" fill="#fde047">• JS limits: ["alias-selections","primitive-bytes","primitive-candidates","getter-expansion"]</text>
- <text x="32" y="158" class="mono" font-size="12" fill="#e2e8f0">• electron.ipc[0].channel: <tspan fill="#2dd4bf" font-weight="700">null (dynamic-findings!)</tspan></text>
- <text x="32" y="178" class="mono" font-size="12" fill="#e2e8f0">• ElectronFuseReader: <tspan fill="#fde047" font-weight="700">ABORT (&gt;32 sentinels capacity!)</tspan></text>
- <text x="32" y="198" class="mono" font-size="12" fill="#e2e8f0">• Rust / Dart / Model Caps: <tspan fill="#fde047" font-weight="700">ABORT (&gt;64 hashes / &gt;32 nesting!)</tspan></text>
- <text x="32" y="218" class="mono" font-size="12" fill="#e2e8f0">• SQLite / CDP Runtime: <tspan fill="#2dd4bf">Generated-Col Trap + Truman Honeypot</tspan></text>
+ <text x="20" y="96" class="mono" font-size="12" fill="#60a5fa">▶ [REA Engine] Static, Semantic &amp; Container Budgets Broken:</text>
+ <text x="32" y="118" class="mono" font-size="12" fill="#e2e8f0">• parse_status / examination:<tspan fill="#60a5fa" font-weight="700">"partial" / "limited"</tspan></text>
+ <text x="32" y="138" class="mono" font-size="11.5" fill="#93c5fd">• JS limits: ["alias-selections","primitive-bytes","primitive-candidates","getter-expansion"]</text>
+ <text x="32" y="158" class="mono" font-size="12" fill="#e2e8f0">• Obligation Ledger Flood: <tspan fill="#60a5fa" font-weight="700">22 families (68 mandatory fixtures!)</tspan></text>
+ <text x="32" y="178" class="mono" font-size="12" fill="#e2e8f0">• ElectronFuseReader: <tspan fill="#38bdf8" font-weight="700">ABORT (&gt;32 sentinels capacity!)</tspan></text>
+ <text x="32" y="198" class="mono" font-size="12" fill="#e2e8f0">• Rust / Dart / Model Caps: <tspan fill="#38bdf8" font-weight="700">ABORT (&gt;64 hashes / &gt;32 nesting!)</tspan></text>
+ <text x="32" y="218" class="mono" font-size="12" fill="#e2e8f0">• Observed Evidence Hijack: <tspan fill="#60a5fa">Shadow Shamir-Ed25519 + gRPC Mirage</tspan></text>
<line x1="20" y1="236" x2="544" y2="236" stroke="#334155" stroke-dasharray="4 4" />
- <text x="20" y="262" class="mono" font-size="12" fill="#2dd4bf">▶ [Attacker Coding Agent] Trapped in BLA Tarpit Loop:</text>
- <text x="32" y="286" class="mono" font-size="11.5" fill="#cbd5e1">[Turn 18] Paging 118 decoy obligation nodes (_verifyEnclaveAttestation...)</text>
- <text x="32" y="306" class="mono" font-size="11.5" fill="#cbd5e1">[Turn 64] IPC channel is null + 16 ambiguous decoy handlers; retrying...</text>
- <text x="32" y="326" class="mono" font-size="11.5" fill="#fde047">[Turn 98] Context Window Overflow (98% Probability) — Chaff Ingested!</text>
- <text x="32" y="346" class="mono" font-size="11.5" fill="#5eead4">[Agent Report] "Core logic executes in hardware SGX enclave; local file is stub."</text>
+ <text x="20" y="262" class="mono" font-size="12" fill="#60a5fa">▶ [Attacker Coding Agent] Exhausted &amp; Induced to Misjudge:</text>
+ <text x="32" y="286" class="mono" font-size="11.5" fill="#cbd5e1">[Turn 18] Paging 158 Tarjan SCC &amp; obligation ledger nodes...</text>
+ <text x="32" y="306" class="mono" font-size="11.5" fill="#cbd5e1">[Turn 64] Real logic is "unknown"; citing observed Shadow Logic instead</text>
+ <text x="32" y="326" class="mono" font-size="11.5" fill="#38bdf8">[Turn 98] Context Window Saturated (98%) — Evidence Lures Accepted!</text>
+ <text x="32" y="346" class="mono" font-size="11.5" fill="#93c5fd">[Agent Report] "Reconstructed RFC8032 Shamir-3-of-5 Enclave Stub (100% Decoy)"</text>
<!-- Verdict Card -->
- <rect x="20" y="372" width="524" height="176" rx="10" fill="#042f2e" stroke="#10b981" stroke-width="1.8" />
- <text x="38" y="400" class="mono" font-size="14" font-weight="800" fill="#34d399">🛡️ DEFENSE OUTCOME: AGENT BANKRUPT &amp; BLINDED</text>
- <text x="38" y="426" class="mono" font-size="13" fill="#d1fae5">• Attacker Time Wasted: <tspan font-weight="800" fill="#ffffff">17+ minutes (Reasoning Loop)</tspan></text>
- <text x="38" y="450" class="mono" font-size="13" fill="#d1fae5">• Attacker Token Burn: <tspan font-weight="800" fill="#fde047" class="blink">23,125,000 tokens (2,532x!)</tspan></text>
- <text x="38" y="474" class="mono" font-size="13" fill="#d1fae5">• Attacker Claude API Bill: <tspan font-weight="800" fill="#fbbf24" class="blink">$358.28 USD (BANKRUPT!)</tspan></text>
- <text x="38" y="498" class="mono" font-size="12" fill="#6ee7b7">• Token Exhaustion Meter (100% Context Saturation):</text>
- <rect x="38" y="510" width="488" height="14" rx="7" fill="#0f172a" />
+ <rect x="20" y="372" width="524" height="176" rx="10" fill="#0b1d3a" stroke="#2563eb" stroke-width="1.8" />
+ <text x="38" y="400" class="mono" font-size="14" font-weight="800" fill="#60a5fa">🛡️ DEFENSE OUTCOME: AGENT BANKRUPT &amp; MISLED</text>
+ <text x="38" y="426" class="mono" font-size="13" fill="#dbeafe">• Attacker Time Wasted: <tspan font-weight="800" fill="#ffffff">17+ minutes (SCC + Obligation Loop)</tspan></text>
+ <text x="38" y="450" class="mono" font-size="13" fill="#dbeafe">• Attacker Token Burn: <tspan font-weight="800" fill="#38bdf8" class="blink">23,125,000 tokens (2,532x!)</tspan></text>
+ <text x="38" y="474" class="mono" font-size="13" fill="#dbeafe">• Attacker Claude API Bill: <tspan font-weight="800" fill="#60a5fa" class="blink">$358.28 USD (BANKRUPT!)</tspan></text>
+ <text x="38" y="498" class="mono" font-size="12" fill="#93c5fd">• Token Exhaustion Meter (100% Context Saturation):</text>
+ <rect x="38" y="510" width="488" height="14" rx="7" fill="#091326" />
<rect x="38" y="510" width="488" height="14" rx="7" fill="url(#burnBar)" class="meter-fill" />
</g>
</svg>