Kane · maya@duebook.demo
✓Log in
✓Saves stranger-canary-e18167
✓The canary is on her page
The owner plants a canary
Kane signs in as your real first account and saves a random string nobody else should ever see.
Kane CLI signs in as a second user and goes looking for the first user's data. If it finds any, your coding agent fixes the database and Kane looks again.
Built on Kane CLI. Fits the stack you already ship with.
What it does
Stranger signs in to your app as a second account and goes looking for the first account's data, on the page, in what the server sends, and with no login at all. Then it hands your coding agent the fix and checks again.
Live, and broken on purpose
Duebook is a small invoicing app with the bug AI app builders ship most: the database lets every account read every row. Nobody notices, because nobody uses their own app as somebody else.
What your agent gets
# .stranger/FIX.md (excerpt)
Tables the stranger's page read: invoices
drop policy if exists "Enable read access for all users"
on public.invoices;
create policy "Owners can read their own rows"
on public.invoices for select to authenticated
using ((select auth.uid()) = user_id);
Done means: stranger run prints CLEAN.
Read the whole brief ↗
Checked this week, all real Kane CLI runs
LEAK92a8e9AGENTCLEAN66224d
Label a pull request stranger-fix. Kane found the leak, Claude Code wrote the migration, Kane checked again, and the workflow committed the fix.
LEAK56eb00AGENTCLEAN10dfea
PennyFlow, an open-source finance tracker, run locally. CLEAN as shipped. With row level security off, LEAK. A fresh agent fixed it from the brief alone.
Open Kane's LEAK run9 of 9bugs caught, control CLEAN
Nine small Supabase apps, each with a different leak, and one with none. Real Kane runs caught all nine and left the clean one alone.
Open the benchStranger drives Kane CLI through your app twice, once as the owner and once as someone else, then asks the server directly. Every step is a real browser run with a public page anyone can open.
Kane · maya@duebook.demo
✓Log in
✓Saves stranger-canary-e18167
✓The canary is on her page
Kane signs in as your real first account and saves a random string nobody else should ever see.
Kane · stranger@duebook.demo
On the stranger's pagesaw it
Its own reads, sent againsaw it
The same reads, no loginsaw it
LEAKrun 6541c9
A second account checks its own control first, so an empty page can never pass. Any sight of the canary is a leak.
-- 0002_invoices_owner_read.sql
create policy
"Users can read their own invoices"
on public.invoices for select
to authenticated
using ((select auth.uid()) = user_id);
The brief names the table, the open policy and the migration to write. Filtering rows in the page is ruled out.
LEAKf5b2cc, found by Kane
AGENTwrites and applies the migration
CLEANc789a7, checked by Kane
A Claude Code Stop hook runs Stranger whenever the agent thinks it is done. On a leak, the brief goes straight back.
Stranger bench · 9 of 9
CLEANon the control, as it should
Ten small apps, each with one bug class left in. See the scorecard and every Kane run.
$ npx github:Sanchay117/stranger run
LEAK Signed in as stranger@duebook.demo,
Kane found the owner's canary
on the page.
Fix brief for your coding agent:
.stranger/FIX.md
$ echo $?
1
Exit codes, one JSON line with --json, a history file and a PR gate for CI.
stranger-canary-e18167.stranger install-claude adds it and the hook.--json, for any agent or pipeline..stranger/history.jsonl keeps every verdict with its Kane run links.npm install -g @testmuai/kane-cli, then kane-cli login..env. Test accounts only: Kane types these passwords into your app, and Stranger keeps its run folders out of git.npx github:Sanchay117/stranger init writes one, or the box at the top does.