Inspiration

In 1996 Gary Webb traced a cocaine pipeline to the CIA's war in Nicaragua. His sources and his paper trail were the whole story. Today a reporter's paper trail runs through forty browser tabs, and the strongest research tools sit in the cloud. A reporter cannot paste a whistleblower's memo into a cloud model. That one rule decides where every byte of Webb runs.

What it does

Webb is a Chrome extension and a hosted dossier viewer for investigative reporters. It turns a multi-tab investigation into a structured dossier while locking protected sources on the reporter's laptop.

  1. Capture. Gemini Nano reads the open tab on the laptop and pulls out claims, dates, names and contact details. Pages on file://, localhost or a mail host are protected automatically.
  2. Lock. Names, emails, phone numbers and account numbers on a protected page go into a local vault and leave only as aliases like [SOURCE_A].
  3. Strike. Gemini Nano finds the descriptions that would still give the source away: their role, the room they worked in, how long they were there. Code accepts only exact quotes from the claim, locks their noun cores too, and strikes tenure by rule as a backstop. A claim Strike cannot clear stays on the device until the reporter clears it.
  4. Corroborate. Gemini with Google Search grounding holds the source's account of events up against the public record and returns supported, contradicted or no public record, with citations. Attribution is stripped before the search, and a claim about the source is never searched.
  5. Audit. Gemini reads the scrubbed trail and returns chapters, contradictions, gaps and next checks.
  6. See the wire. The Wire tab shows what Nano read and struck on one side, and the exact JSON and Google searches that crossed to the cloud on the other.
  7. Publish. A write-once dossier goes to Firestore. The editor reads it on Firebase Hosting with the protected names as black bars, and asks questions at a Briefing desk that runs on Gemini Nano where Chrome has it.

How we built it

  • Firebase AI Logic hybrid inference for every model call. Protected pages and Strike use ONLY_ON_DEVICE, public pages and the Briefing desk use PREFER_ON_DEVICE, and the audit and Corroborate use ONLY_IN_CLOUD with gemini-3.5-flash and Google Search grounding.
  • The airlock in src/shared/airlock.ts: deterministic scrubbing, then a preflight check on the exact outgoing payload that blocks the request if any locked name, name part, trait, email or phone number survives. 23 unit tests.
  • App Check enforced on Firebase AI Logic: reCAPTCHA Enterprise in the viewer, a registered debug token in the extension, since MV3 extensions cannot load reCAPTCHA.
  • Firestore write-once dossiers with 128-bit ids, readable by id only. Two API keys, each limited to the four Firebase APIs Webb uses; the viewer key is also locked to its domain.
  • TypeScript, Vite, Chrome MV3 side panel, Firebase Hosting.

Challenges we ran into

  • An adversarial review found real leak paths in our own airlock: a source's handle inside a public URL, short surnames, a phone number inside a description, and Strike failing open. Each one is now a test.
  • Reviewing our own film caught a quieter leak. Strike hid "the records room of the Panama City office", while another claim said "The records room kept a paper log". The short form crossed the wire. Webb now locks the core of every struck description, and refuses a replacement that repeats what it replaces.
  • The search tried to work out who the source was, by querying the names of real former partners. Webb now strips attribution and never searches a claim about the source.
  • Gemini Nano would not download on our test machine: Chrome's background downloader stalled in a second Chrome instance. And the Firebase SDK keeps each model's Nano session alive, which hung the next capture on a small GPU. Webb now frees idle sessions and runs one on-device call at a time.

Accomplishments that we're proud of

Every product shot in the film is a recorded Gemini Nano run on a consumer laptop, with App Check enforced across both the MV3 extension and the hosted viewer. Every leak found by adversarial review and film inspection became a regression test (23 passing). When Strike timed out on one take, the fail-closed rule held all six claims on the device.

What we learned

A model that redacts is probabilistic. The guarantee has to come from code that checks the exact bytes on the wire, with the model proposing and the code deciding.

What's next

Run Strike as a lineup attack, where Nano tries to pick the source out of decoys before anything leaves. Ship Webb to a newsroom that handles leaked documents, and add an Android capture app on the same airlock.

Try it

  • Sample dossier, no install: https://webb-dossier.web.app/d/297beeb0db7da92ba39692dfae581149 (black bars for the protected source, a contradicted claim with citations, and the Briefing desk)
  • Code: https://github.com/rapha18th/webb
  • Extension: needs Chrome 138 or later with Gemini Nano. Judges get a prebuilt extension in the testing instructions. App Check is enforced, so a build from source needs your own Firebase project with AI Logic and App Check, keyed in .env.local (see the README). demo/source_memo.html is a fictional protected memo.

Built With

  • chrome
  • firebase-ai-logic
  • firebase-app-check
  • firebase-hosting
  • firestore
  • gemini
  • gemini-nano
  • google-search-grounding
  • recaptcha-enterprise
  • typescript
  • vite
Share this project:

Updates

Submission history