Inspiration

In 2026, Lermen et al. (USENIX Security '26) showed that LLM agents can re-identify 25–67% of pseudonymous Reddit and Hacker News users at 70–90% precision. No leaked email or doxxed photo is needed. The agents simply stitch together details that are each harmless on their own: a night shift here, a rainy week in Columbus there, a kid starting kindergarten.

No single post gives you away. Two hundred of them do.

Every existing tool misses this. PII scanners look at one post at a time and wave through "I'm a nurse" because, alone, it is fine. The obvious fix, uploading your whole history to an AI so it can find the pattern, is itself the privacy disaster you were trying to avoid.

So we flipped it. OneOf asks the attacker's question, "how many people could this be?", and runs the attack on you first, on your own device, so the only one who learns the answer is you.

What it does

1. Scans your history on-device. Import a Reddit data export, JSON, CSV or a paste. Gemini Nano in Chrome, or Apple Intelligence on iPhone, reads every post and extracts life details (occupation, family, location, age, hobbies, vehicles, dated events) as schema-locked JSON. Each detail carries the verbatim quote it came from. Posts with a life-detail cue are read first, so the crowd starts shrinking within seconds, and nothing is skipped except empty and link-only posts.

2. The model proposes, code decides. Nano is enthusiastic. The checker is not. Small on-device models over-read, so nothing a model says counts until a deterministic checker confirms that the quote:

  • appears word for word in the post,
  • is about the author, not their sister, their friend or their patient,
  • is literal, not a joke, a hypothetical or "I feel 80 years old",
  • is grounded in a known attribute.

In the recorded demo run, 214 claims went in and 32 survived. We planted 8 decoys in the demo persona ("my sister in Seattle", "imagine having five kids", "if I had a Harley"). 0 reached the count.

3. Counts the crowd. Surviving details map to cited public base rates (BLS, Census, ACS). Nested details count once: an ICU nurse is already a nurse. A seeded Monte Carlo estimator runs 4,000 draws and returns a range, never a single number, and never a verdict. The synthetic nurse u/quietnight_rn turns out to be one of ~50 (range 7–330), about 14.3 bits given away. A timeline shows the exact month she left the crowd and the posts responsible. Health and religion are never counted, never sent and never shown in the result.

4. Rejoins the crowd. Knowing you are one of 50 is scary. Knowing what to do about it is useful. OneOf searches for the smallest set of edits that puts you back above a thousand people and lists the exact posts that carry those details. For her, editing 2 posts takes ~50 to ~5.6k.

5. Checks before you post, anywhere. The Chrome extension watches reply boxes on sites you allow and checks your draft against your dossier, fully on-device. It runs ONLY_ON_DEVICE, and its CSP is connect-src 'self', so it cannot reach the network even if it wanted to. A pill says "one of ~50 → ~1 if you post this", and Blur rewrites the risky detail locally ("Columbus" → "the Midwest") before you hit send.

6. Runs natively on iPhone. A SwiftUI app built on Firebase's HybridModel, with Apple Intelligence on the phone and Gemini only for public statistics. Given the same history, it reached the same dossier and the same number as Gemini Nano on the web.

How we built it: the router is the privacy policy

Most hybrid apps route by speed: on-device when it's fast, cloud when it's hard. OneOf routes by whose data it is. Every model call goes through one function, route(task, data), and that function is the privacy policy:

Data InferenceMode Why
Your posts and drafts ONLY_ON_DEVICE No on-device model means the call is blocked, never quietly sent to the cloud.
Synthetic demo persona PREFER_ON_DEVICE Nobody real, so judges without Nano still see it work.
Table matching and base rates ONLY_IN_CLOUD One generic phrase, after consent. Nothing else.

There is no "it'll probably be fine" fallback. If your device can't run the model, OneOf tells you so and stops.

The cloud picks the table, never the number. Gemini gets a multiple-choice question, not your life story. When the device finds a detail the bundled tables don't recognise, a cloud-safe filter first strips names, numbers, places, health details and dated events. Only a generic phrase such as occupation: ICU charge nurse is sent, after you consent. Gemini's answer is enum-locked to the cited table keys plus none, so it cannot invent a percentage: the number that counts always comes from a public table. From the live receipt (receipts/cloud-match-2026-11-26.json):

  • ICU charge nurse → ICU / critical-care nurses
  • half-marathon finisher → half-marathon finishers
  • scrubs wearer, plant enthusiast, home cook → none, so they don't count
  • mom of twins starting kindergarten → never sent, blocked on the device

Firebase stack

  • Firebase AI Logic hybrid inference on all three surfaces:
    • Web: firebase/ai hybrid mode, with inferenceSource logged on every result, so the UI shows where each call actually ran.
    • iOS: HybridModel(primary: SystemLanguageModel.default, secondary: Gemini) with @Generable typed output.
    • Chrome extension (MV3): ONLY_ON_DEVICE, behind a CSP with no network access.
  • App Check, enforced: reCAPTCHA Enterprise on the web, App Attest on iPhone, and the debug provider only in the simulator. Every cloud request carries a token.
  • Gemini in the cloud, used only for table matching and public statistics.

One core, three surfaces. A single TypeScript core (checker, cloud-safe filter, estimator, dossier builder, router, ledger) powers the web app and the extension. The Swift port runs the same logic on iPhone and is verified against 435 golden cases generated by the TS core, matching down to the seeded random stream. If the two implementations disagree on a single draw, CI fails.

172 automated tests (88 web, 66 extension, 18 Swift) run in CI on every push. They include privacy invariants, tests that encode the headline claims directly: user data never routes to the cloud, the cloud-safe filter never lets a name or number through, and the extension never makes a request. If one of them fails, the claim on the homepage is false.

Don't trust us, check:

  • "What the cloud saw" is a live ledger of every model call: where it ran, why it was allowed, and the exact bytes that left the device (if any). You can export it as receipts.json.
  • The header counter is built on the browser's own Resource Timing API, not our own bookkeeping, and it shows 0 B of your posts sent.
  • Turn Wi-Fi off mid-scan and the scan keeps going.

Challenges

  • Small models over-read. Nano happily turned figures of speech and other people's lives into facts about the author. Prompting alone couldn't fix it, hence the deterministic checker. It was tuned on the demo persona, so we report the held-out results below as the honest measure.
  • Apple's model had better ethics than our first prompt. It refused, and fairly: we'd worded the task like profiling a stranger. Reframing it truthfully, as the author reviewing their own posts, plus typed @Generable output, took unreadable replies to 0.
  • The free tier. Cloud calls failed 28% of the time and search grounding hit 429s. On-device never failed once. Turns out the best argument for hybrid inference is a 429.
  • Nano stamina. Gemini Nano stalls after a few hundred prompts in a Chrome session, so scans have budgets, cool-downs and resumable retries. A full 200-post history takes 10.6 minutes on-device (3.1 s median per post), and it survives a stall.
  • Keyword filters lie. We first used a keyword pre-filter to decide which posts to read. On 7,823 held-out comments it kept only 51.0% of the revealing ones, so now it only decides reading order. Nothing is skipped.
  • One codebase, two languages. Keeping a Swift port honest against a TypeScript core meant generating golden cases from TS and replaying them in Swift, down to the RNG.

Accomplishments

  • A 200-post history read 200/200 on-device, 0 in the cloud, on both Gemini Nano and Apple Intelligence, with the same dossier and the same crowd.
  • A held-out evaluation on SynthPAI (public synthetic Reddit comments with labelled personal attributes) that we never tuned on:

| Prompt | Attributes caught | False alarms on quiet comments | Status | |---|---|---|---| | x2r | 40% | 23% | shipped | | x2 | 44% | 23% | | | x3 | 50% | 50% | rolled back | | Cloud baseline | 60% | 0% | 11/40 rate-limited |

Prompt x3 looked better on our own data but doubled false alarms on the held-out set, so we rolled it back. Every row links to a receipt in the repo.

  • Three surfaces (web, Chrome extension, native iPhone) sharing one verified core.
  • Built solo, by a first-year student, on Firebase's free plan: $0. On-device inference has no quota.

What we learned

On-device models aren't a cheaper cloud. They're permission to build things the cloud never should. A tool that reads six years of someone's posts is only acceptable if those posts never leave the device, and hybrid inference is what makes it both private and accurate. The right hybrid split isn't fast vs smart. It's whose data is this?

We also learned to treat model output as a proposal, not a fact. The most important code in OneOf isn't a prompt. It's the checker that says no.

Limits (also said on the site)

  • On held-out data the on-device model caught about 4 in 10 labelled attributes, so the crowd is an upper bound. An attacker with a bigger model may find more, and your real crowd is probably smaller.
  • It never says "safe" or "identified", and it never searches the web for who you are.
  • English only. The region tables cover the US, Ohio, Columbus and Bengaluru, and the demo person is synthetic.

What's next

  • Real-user studies, to see whether people actually edit or delete posts once they see their crowd.
  • More region and occupation tables, starting with India.
  • Android on Gemini Nano, using the same router.
  • The extension on the Chrome Web Store, with per-site rules.

Built With

  • apple-foundation-models
  • chrome-extension-mv3
  • firebase-ai-logic
  • firebase-app-check
  • gemini
  • gemini-nano
  • github-actions
  • react
  • recaptcha-enterprise
  • swift
  • swiftui
  • typescript
  • vercel
  • vite
  • vitest
Share this project:

Updates