Status: built (2026-10-05). Tests: apps/auth-broker/tests/shield.test.ts, packages/trust-shield/tests/pow-risk.test.ts.
Sign-up abuse is the unglamorous cost of auth: fake accounts, credential stuffing, mail bombing (a form that sends an email to any address is a free spam relay), and automated agents. Passkin's answer is free for every project, has no CAPTCHA vendor, and keeps nothing about the person.
It counts what the server already sees and turns it into work for the page to do, or — at the far end — a refusal for now.
What it looks at
Only counts the broker already holds, per project, in short-lived windows:
| Signal | Window |
|---|---|
| Attempts from this address (IP) | 10 minutes |
| Attempts from its network (/24 for IPv4, /48 for IPv6) | 10 minutes |
| Wrong passwords, wrong codes and wrong second factors from this address | 10 minutes |
| Attempts to sign in as this email, from anywhere | 1 hour |
A request with no user agent, or one that announces a program (curl, python-requests, headless browsers…) |
this request |
| A disposable email address | this request |
strict mode |
every request |
Each adds a point or two (packages/trust-shield/src/risk.ts). Nothing is learned about the person: no fingerprint, no third-party verdict, no cookie beyond the
sign-in's own. Addresses in the counters are keyed hashes.
What it asks
| Points | Asked |
|---|---|
| 0 | Nothing. An ordinary visit sees no challenge, no script, no delay |
| 1 | A proof-of-work task of 14 bits (instant) |
| 2 | 18 bits (a fraction of a second) |
| 3 | 20 bits |
| 4–7 | 22 bits (a few seconds on a phone) |
| 8 or more | Refused for now ("too many attempts"), whatever work is offered |
The challenge is hashcash: the page finds a counter so that SHA-256("<salt>:<counter>") starts with that many zero bits. The page's script does it by itself (a few
lines of plain script on the sign-in page, under the page's nonce'd CSP), disables the buttons until it is done, and fills a hidden field. The server then checks the
answer in one hash.
- A challenge is for one sign-in, spent when it is presented (right or wrong), and expires after 15 minutes. One borrowed from another sign-in, reused or malformed fails.
- It guards the actions people can be attacked through: sending an email code (and resending), password sign-in, single-sign-on lookup. Social buttons and passkeys have no form to attack and carry no challenge.
- The fixed rate limits (per address, per recipient, five guesses per code, per-transaction) are unchanged and still apply behind it.
- Someone without JavaScript cannot pass a challenge; the hosted pages need script for passkeys already, and a challenge appears only when something looks wrong.
Modes and the developer's rules
Dashboard → Shield, or PATCH /v1/manage/projects/:pid/shield/settings:
standard(default),strict(one point on every request, so every email/password attempt carries 14 bits),off(the Shield asks nothing and keeps no counters; the fixed limits remain).- Countries:
geo_denyorgeo_allow(two-letter codes). A visitor from a refused country does not get a sign-in page. The country comes from the host's header (x-vercel-ip-country,cf-ipcountry,cloudfront-viewer-country) and is believed only behind a trusted proxy; where it is missing or unknown the visitor is let through (the Shield cannot refuse what it cannot see). - New accounts per hour (
signups_per_hour, default 2000): beyond it, new people see a friendly "taking a lot of sign-ups right now" page until the hour is up. People the project already has are never counted or turned away. It is a ceiling against a flood, not a quota; a launch that outgrows it should raise it. One note per hour appears in the log.
Email-domain allow/deny, +-tag blocking and disposable-email blocking are in Access (ACCESS.md).
What the developer sees
GET /v1/manage/projects/:pid/shield/events and /shield/summary: challenges owed (challenged: a form arrived without a solved challenge), solved, and denied, with the points and
the reasons in words, the country if known, and a 16-character keyed hash of the source (to tell one source from many — never the address). A few rows per source per ten minutes, so an attack
cannot fill the table; thirty days, then pruned by the scheduled maintenance. Changes to the settings are in the audit log (shield.settings_updated).
Not built yet
SMS and WhatsApp guards (per-number and per-prefix velocity, country allow-lists, conversion throttling — arrive with phone sign-in); recognising cryptographically signed agents (Web Bot Auth) and treating them by policy; device-level signals (new device, impossible travel); per-project abuse monitoring of the shared Google client with automatic isolation to a separate client; abuse trends over time and cost avoided in the dashboard; the Shield as a callable service for a developer's own forms (a challenge endpoint and a verify endpoint); an optional external bot-score provider.