AirlockAI catches a $2.1M wire-fraud scheme across 4 contradictions while cryptographically proving 0 bytes of raw PII ever left the browser.
Shipped across 3 platforms (Web PWA, Manifest V3 Chrome Side Panel, and native Android), AirlockAI pairs live on-device Gemini Nano inference (Gate 1: 10, Nano Gate 2: 7) with a 6-vector fail-closed canary firewall, a 1,000-run property-based zero-leak proof suite, 0-text flattened PDF pixel redaction, and Merkle + ECDSA selective-disclosure receipts powered by Firebase AI Logic.
Inspiration
Organizations face a painful deadlock with generative AI: employees want cloud-grade reasoning on contracts, invoices, medical records, and treasury documents, yet pasting real files into cloud models leaks regulated data. Enterprise telemetry from Cyberhaven (2026) shows that 39.7% of employee AI interactions involve sensitive data, while LayerX's 2025 Enterprise AI and SaaS Data Security Report found that 77% of employees paste data into generative AI tools.
Simple pattern rules are not enough for high-stakes enterprise deals, and single-page prototypes break the moment a user opens a PDF with hidden text layers, fills out a live web form, or runs on a device without an on-device AI runtime. We built AirlockAI to prove that hybrid AI can deliver high-value cloud intelligence (like multi-document wire-fraud auditing) with mathematical, inspectable proof that zero raw secrets crossed the network.
What it does
AirlockAI acts as a multi-surface, fail-closed privacy firewall across three shipped platforms and four data surfaces:
- ZK Deal Room (Web PWA): Runs Tier 1 local redaction (Gate 1 deterministic rules + live on-device Gemini Nano Gate 2) before routing tokenized placeholders via Firebase AI Logic to Gemini in the cloud. Runs a 3-way document audit catching 4 cross-contract contradictions (+45% amount jump, +46d date shift, GB vs DE IBAN mismatch, unauthorized beneficiary) and flags Executive Verdict: CRITICAL with 6/6 Shared Vault Verified, 0B Raw PII Sent, and a live Zero-Knowledge Thinking Inspector (0 Raw Secrets in Thought, LOCAL RAM: 0B TO LLM).
- 0-Text Flattened PDF Redactor: Pixel-redacts and flattens sensitive multi-page PDFs into clean image layers so no hidden selectable text remains underneath black boxes. Includes a built-in forensic re-drop loop confirming FORENSIC ZERO-TEXT-LAYER VERIFIED (0 extractable characters).
- Cryptographic Receipts & Vaults: Seals every audit session with SHA-256 hashes, Merkle + ECDSA selective-disclosure proofs, WebAuthn PRF self-tests, and PBKDF2 .airlock.enc encrypted vaults. Live offline verification prints MERKLE + ECDSA PROOF VERIFIED OFFLINE on clean receipts and immediately triggers 1-BIT TAMPER DETECTED if a single byte is altered.
- Chrome MV3 Side Panel: Brings AirlockAI directly into daily browser tabs without copy-pasting sensitive text into a separate web app. One click on Replace on Page scrubs the live form textarea in place to PERSON_1 while displaying the 6/6 Firewall Passed redacted skeleton (12 redacted) in the Side Panel before submission.
- Native Android App (Kotlin): Runs the 3-gate local airlock and 6-vector firewall natively on Android devices. Verified on a Pixel 10: when AICore is unavailable, automatically engages FAIL-CLOSED GUARD ACTIVE (Risk: HIGH) and passes 6/6 Firewall Passed so data never leaks silently.
- Audio Airlock (audioAirlock.ts): Processes 16-bit mono PCM .wav voice notes with local audioSha256 hashing and waveform extraction, wired for Chrome's multimodal audio Prompt API (expectedInputs: [{ type: "audio" }]). Verified at 0B audio uploaded offline; gracefully routes to a deterministic local test harness (LOCAL_SYNTHETIC_PCM_TRANSCRIPT) on devices lacking an over-4 GB VRAM GPU.
How we built it
AirlockAI is engineered as a unified, Apache-2.0 open-source monorepo (packages/core, apps/web, apps/extension, and apps/android), verified at commit 24afbb0 (CI Run #21 green):
- Hybrid Inference Architecture (Firebase AI Logic + Chrome Built-in AI):
- Tier 1 (On-Device): Runs deterministic Gate 1 detectors (Safe Harbor quasi-identifiers, Policy-as-Code with ReDoS protection, multilingual DE/FR/ES patterns, and prompt-injection neutralizers) alongside live Gemini Nano Gate 2 via Chrome's Prompt API (LanguageModel) and Firebase AI Logic hybrid routing.
- 6-Vector Fail-Closed Firewall with Canary Trap: Before any payload leaves the browser, AirlockAI injects synthetic canary tokens and checks six leakage vectors. If any vector fails or raw PII is detected, outbound transmission is aborted hard.
- Tier 2 (Blindfolded Cloud ZK Oracles): Protected by Firebase App Check, only the neutral placeholder skeleton ([ORG_1], [IBAN_1], [CURRENCY_1]) reaches Gemini in the cloud for structured cross-document reasoning, streaming FSM responses, and Thinking Inspector telemetry.
- Adaptive Routing & Resilience:
- A stackable Adaptive Router scores device and network conditions (e.g., 3G + Low Battery -> Score 0/100) and dynamically downgrades tiers without ever relaxing PII boundaries.
- Cryptographic & Visual Assurance:
- Client-side Web Crypto API powers SHA-256 receipts, ECDSA signing, Merkle inclusion proofs, and PBKDF2 .airlock.enc vault round-trips.
- Browser-side PDF canvas rendering flattens redacted pages into rasterized PDFs and re-parses the output to assert 0 extractable characters.
- Automated Proof Suite (GitHub Actions CI Run #21):
- Core: Vitest unit tests plus a 1,000-run fast-check property-based proof suite mathematically verifying zero raw PII leakage across randomized inputs and adversarial mutations.
- Cross-Platform CI: Every push builds and tests the Core package, Web PWA, Manifest V3 Chrome Extension, and Android Kotlin JUnit 4 test suite together (AirlockAI Cross-Platform Verification #21 green at commit 24afbb0).
Challenges we ran into
- Real-World Hardware Limits of On-Device Gemini Nano: Testing across real infrastructure exposed sharp differences in local AI availability. Headless Linux VMs and compute-only datacenter GPUs hit Chromium Dawn device-creation crashes (chrome_ml.cc:101). We validated live on-device Gemini Nano Gate 2 inference on Desktop Chrome on Windows (Redacted: 10 entities, Gate 1: 10, Nano Gate 2: 7, 6/6 Firewall Checks Passed, 0B Raw PII) while ensuring lower-memory 8 GB laptops degrade cleanly into deterministic local protection with zero crashes.
- Missing AICore on Streamed Android Hardware: When testing our native Android build on a streamed Pixel 10 via Firebase Device Streaming, the device image did not include an active AICore runtime. Instead of faking Nano execution or failing open to the cloud, we verified AirlockAI's fail-closed architecture in action: the Android app ran its 3-gate local airlock, redacted entities, passed 6/6 Firewall Passed, and prominently surfaced FAIL-CLOSED GUARD ACTIVE (Risk: HIGH).
- Multimodal Audio VRAM Requirements: Unlike text-only Nano inference, Chrome's Prompt API requires a graphics GPU with over 4 GB VRAM for multimodal { type: "audio" } input. We built audioAirlock.ts to compute audioSha256 locally, detect browser audio availability honestly, verify 0B audio egress in DevTools Offline mode, and fall back transparently to a deterministic local harness on CPU-only machines.
- Preventing Hidden PDF Text Leaks: Visual black-box annotations in standard PDF editors leave raw strings in the underlying text stream. Moving to full pixel flattening plus an automated post-export text-extraction check guaranteed genuine 0-character removal.
Accomplishments that we're proud of
- Shipping All 3 Platforms Live with Green CI: Web PWA, Chrome MV3 Side Panel, and native Android Kotlin app are all built, demonstrated live in our 2:55 video, and verified in green CI Run #21 at commit 24afbb0.
- Live End-to-End Hybrid Proof: Capturing real on-device Gemini Nano Gate 2 redaction (Gate 1: 10, Nano Gate 2: 7) feeding directly into a blindfolded cloud ZK Oracle audit that catches a $2.1M wire-fraud scheme across 4 contradictions with 0B Raw PII Sent.
- Proof Over Promises: Delivering a 1,000-run fast-check zero-leak suite, a 6-vector canary firewall, a Zero-Knowledge Thinking Inspector, 0-text PDF forensic verification, and Merkle + ECDSA 1-bit tamper rejection rather than asking users to trust a privacy banner.
- Transparent Hardware Honesty: Clearly separating live desktop Gemini Nano inference from deterministic fail-closed protection on AICore-less Android and non-GPU audio hardware.
What we learned
Building true hybrid AI is as much a security architecture and graceful-degradation challenge as an inference challenge. Because on-device models vary widely across operating systems, RAM tiers, GPUs, and mobile runtimes, enterprise-grade hybrid apps must be fail-closed by default and cryptographically inspectable so users and auditors can verify exactly what stayed on-device and what reached the cloud.
What's next
- Native Android Gemini Nano via ML Kit GenAI / AICore: Wiring live on-device Gate 2 inference into our existing Android local firewall on supported flagship hardware equipped with active Android AICore runtimes.
- GPU-Backed Local Audio Transcription: Extending audioAirlock.ts on 4 GB+ VRAM workstations for live microphone-to-redacted-transcript executive briefings via CHROME_NANO_MULTIMODAL_AUDIO.
- Enterprise Policy Sync: Adding team-managed Policy-as-Code bundles via Firebase Remote Config and external auditor CLI verification for Merkle + ECDSA receipts.