Live checks: backends and keys, read-only
Turning them on
On app.ptkd.com, open the project and find the Live checks card. Flip the switch, tick "I own, or am authorized to test, the backends and keys this app uses", then press Turn on live checks. The button stays disabled until the box is ticked, and only people who can edit the project can use the switch. Live checks apply from the next scan; the card shows when they were turned on. Flip the switch off to stop them.
PTKD records who confirmed it and when, and writes an audit log entry for every run. The same setting can be changed through the API, which turns it on once the request carries the confirmation:
PUT https://app.ptkd.com/api/projects/<project-id>/live-backend-checks
{ "enabled": true, "attest": true } # on
{ "enabled": false } # offProof that the backend is yours
Ticking the box is not enough on its own. Anyone could download an app from a store, upload it to PTKD and claim it is theirs. So PTKD only tests a backend after it shows a token that belongs to your project, something only the backend's owner can put there.
When you turn live checks on, the card shows a token like ptkd-verify-3f9a… and, for every backend the last scan found, the exact steps to publish it:
| Backend | What you add | What PTKD reads |
|---|---|---|
| Supabase | A table public.ptkd_verification with one row holding the token, and a policy that lets the public key read that one row only | That row, with the app's own public key |
| Firestore | The document ptkd_verification/<token> (any content) and a rule that allows reading that document only | That document |
| Realtime Database | The node /ptkd_verification/<token> set to true and a rule that allows reading that node only | That node |
Press Check now to test it right away (once every 20 seconds); each scan checks again. The card shows each backend as proven or not proven, with the time of the last check. A backend that is not proven is never tested, and keys found in the app are only checked when at least one of its backends is proven. Remove the token when you turn live checks off.
Projects that turned live checks on before this existed have no token, so they test nothing until someone turns live checks off and on again.
GET https://app.ptkd.com/api/projects/<project-id>/live-backend-checks # token, steps, last result
POST https://app.ptkd.com/api/projects/<project-id>/live-backend-checks/verify # check nowBackend checks: Supabase and Firebase
PTKD acts like anyone who downloaded your app: it uses only the public keys and config the app contains.
| Check | What PTKD sends | What it reports |
|---|---|---|
| Supabase tables | GET the REST schema with the app's anon key, then GET one row from each table it lists | Tables anyone can read |
| Supabase storage | GET the bucket list | Buckets anyone can list |
| Supabase sign-up | GET the auth settings | Open sign-up without email confirmation; anonymous sign-ins enabled |
| Supabase database functions | Read from the REST schema already fetched; no function is ever called | Functions callable with the public key, by name |
| Supabase GraphQL | One GET introspection query (only the GET form; nothing is reported if it is refused) | GraphQL schema readable with the public key |
| Firebase Realtime Database | A shallow GET of the root | Database readable by anyone |
| Firebase Storage | GET a list of one file | Files anyone can list |
| Firestore | GET one document per collection named in your code (or, when the code names none, from 10 common names such as users and orders) | Collections anyone can read |
| Firebase anonymous sign-in | GET the project's sign-in config | Anonymous sign-in enabled |
| Firebase email enumeration | One POST to accounts:createAuthUri asking about a fixed address at example.com, which can never be registered. Nothing is created. | Firebase Auth tells anyone which emails have an account |
| Firebase Remote Config | One POST to the Remote Config fetch endpoint with the app's own app id, the same request every install of the app makes | Parameters whose names look like credentials, by name; values are never stored |
| Limit | Value |
|---|---|
| Methods | HTTPS GET, plus exactly two POSTs: createAuthUri (only with an @example.com address) and the Remote Config fetch (only with the app's own app id). Each POST body is checked field by field before it is sent. Nothing is written, changed or deleted. |
| Proof | Nothing is sent to a backend until it shows this project's token (see above). |
| Hosts | Only hosts that belong to this app's own project: the Supabase project in its config (and only the schema, table, bucket list, auth settings and GraphQL paths), and the Firebase project in its config, including the default database and bucket names Firebase gives that project. Any other request is refused before it is sent. |
| Requests | At most 40 per scan, 6 seconds each, redirects not followed. |
| What is kept | Table, bucket, collection, function and parameter names and counts. Response bodies are read in memory, capped at 256 KB, and never stored. |
A finding confirmed this way says so: PTKD reproduced it with only the public credentials shipped in the app.
Key checks
When a scan finds a hardcoded key, and at least one of the app's backends is proven, PTKD can ask the key's own provider whether it still works: one GET request per key to a fixed provider host, at most 15 keys per scan. Only the status code is used: accepted means active, 401 means revoked, anything else means unknown. The response body is not read, and the key value is only held in memory for that request.
Providers: OpenAI, Anthropic, OpenRouter, Groq, xAI, Hugging Face, Replicate, Google Gemini, GitHub, Stripe, SendGrid and Resend. An active key is reported as such: rotate it right away. A revoked key still needs to come out of the code.
Not in local checks
ptkd check, the GitHub Action and the Claude Code guard never make these requests. They run the static checks only.