Inspiration

Every year, millions of people lose their savings to a knock that never comes from where it says it does: a call claiming to be the police, a message claiming to be the bank, a "KYC update" that is really a trap. The people targeted hardest parents, grandparents, first-time smartphone users are exactly the people worst served by existing AI safety tools, because every one of those tools demands the same ransom: send us your message, your medical report, your voice recording, and our cloud will tell you if it's dangerous.

That's not a safety tool. That's a second attacker with better manners.

VaultShield is built on one stubborn idea: the people who most need an AI to read their private content are the people who can least afford for that AI to leak it. So we never shipped privacy as a policy. We shipped it as a property of the code enforced by the same Firebase AI Logic routing that makes the agent intelligent in the first place.

Value proposition: VaultShield gives every family an AI bodyguard for scams, documents, and private thoughts that works offline, costs nothing to run on-device, and can prove with a byte-exact receipt that your secrets never left your phone.

What it does

VaultShield is one hybrid AI agent with five skills, all answering to a single on-device Privacy Router, running on three surfaces: a website, an installable desktop PWA, and a native Android app.

Skill What it does Where the AI runs
Check Something Breaks a suspicious message or screenshot into the four classic pressure tactics — Authority, Fear, Urgency, Secrecy — with quoted evidence, in English, Hindi, or Hinglish First pass fully on-device, offline. Cloud second opinion with live Google Search grounding only after the user reviews and approves the exact tokenized text
Document Vault Scans a medical report, loan notice, land deed, or legal summons for red flags, key facts, and what's missing Identifiers masked on-device before any AI runs. Highly sensitive documents — Aadhaar, medical, identity — never reach the cloud at all
Media Vault Transcribes and analyzes a recording, photo, or video File analyzed in cloud once, never stored. Every follow-up question tokenized on-device first
Private Diary Reflects on each entry — mood, action items, learnings Entries encrypted client-side with AES-GCM, keyed by a PIN we never store. AI sees only privacy tokens
Family Circle Pairs up to nine trusted relatives via a short-lived code A help request delivers a pressure-tactic count and a timestamp — never the message, screenshot, or phone number behind it

And every skill produces a privacy receipt: an exact, inspectable record of what was tokenized, what if anything reached the cloud, how many bytes it was, and how long it took. "Trust us" appears nowhere in the product, because it doesn't need to.

How we built it — Firebase AI Logic hybrid inference is the product

Every inference call in VaultShield goes through Firebase AI Logic, and which InferenceMode we choose per call is how the Privacy Router's decision becomes physically enforced:

  • ONLY_ON_DEVICE — Check Something's first pass, and any document flagged highly sensitive. This isn't a disabled button; it's the absence of a network code path for that content. We also verify inferenceSource === ON_DEVICE on every response and reject anything else, so even an SDK surprise can't silently break the boundary.
  • PREFER_ON_DEVICE — document analysis, diary reflection, follow-up chat, all on tokenized text only. Chrome's built-in on-device model runs first; Vertex AI Gemini is the genuine fallback, and the response's inferenceSource is surfaced to the user — shown, never assumed.
  • ONLY_IN_CLOUD — reserved for the few calls that truly need cloud-only capabilities: media file analysis, call transcription, and the Google Search–grounded second opinion. Each one is gated behind the user's informed approval of the exact payload.

On Android, a native Kotlin bridge runs the same Firebase AI Logic SDK with the on-device inference package (firebase-ai-ondevice), so the identical mode guarantees hold whether VaultShield is a browser tab, an installed PWA, or a native app. App Check protects every call on every surface reCAPTCHA Enterprise on web, Play Integrity on Android with Remote Config steering the cloud model and Firestore + Google Auth powering Family Circle.

The Privacy Router underneath

Before any AI runs, a deterministic router classifies the input and replaces every detected identifier — names, phones, Aadhaar, PAN, UPI IDs, account numbers, amounts, URLs — with a typed token ([PERSON_1], [AMOUNT_1:10k-50k]) whose mapping lives only in that tab's memory and expires automatically. A leak check re-scans every outbound payload for anything that still looks like a real identifier before it is allowed to leave. The stack: React 19, TypeScript, Vite, Tailwind, Capacitor, a Python FastAPI service on Cloud Run handles family pairing and push alerts and by design never receives a raw message, image, or token mapping.

Measured

Across all three surfaces: a cloud-eligible document analysis transmitted exactly 2,115 bytes — the full prompt, tokens only and returned a complete red-flag analysis in 1.06 s. A hybrid second opinion that escalated to cloud completed in 3.70 s end-to-end. And a document flagged medical or financial sent exactly zero bytes to the cloud, every time, on web and Android alike because the architecture makes that the only possible outcome.

Challenges we ran into

The hard part was never getting a good answer out of an LLM it was making the privacy guarantee hold in the failure cases. A sensitive document must refuse cloud fallback even when on-device inference is temporarily unavailable, rather than quietly degrading to "send it anyway." That meant threading the router's verdict from the UI all the way down into the exact InferenceMode of each Firebase AI Logic call, so the SDK never holds a cloud option for content that must not travel.

The second was honesty in the receipt itself. Showing "we masked your data" is easy. Showing the exact byte count of the real outbound payload not an estimate consistently across three platforms and three inference paths is what makes the receipt evidence instead of marketing.

Accomplishments that we're proud of

A complete agent, not a demo: five skills, one router, one accounting system, shipping today on web, desktop PWA, and native Android with its own on-device AI bridge in English, Hindi, and French. Every surface yields the same inspectable, downloadable privacy receipt. The privacy claim survived our own adversarial testing, including planted-identifier leak tests.

What we learned

A privacy promise only means something when it is the AI routing decision, not a layer wrapped around it afterward. Building the Privacy Router first and making all five skills answer to it rather than inventing their own rules is what let the guarantee scale without weakening at the edges. And a receipt changes everything: once people see the exact bytes that left their device, "privacy-first" stops being a claim and becomes something they verify themselves.

What's next for VaultShield

Extending language coverage to the regional languages most targeted by scam campaigns; bringing the same pipeline to iOS via Apple Foundation Models through Firebase AI Logic's hybrid support; and partnering with the community organizations already fighting fraud on the ground giving them the same anonymous pressure-tactic signal Family Circle gives families, at community scale.

Built With

Share this project:

Updates

Submission history