Live checks: backends and keys, read-only

    A static scan can say a Supabase table looks open or a key looks real. A live check confirms it, using only what your app already ships. Live checks are off by default and only run on hosted scans, for projects whose owner turned them on.

    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 }                    # off

    Proof 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:

    BackendWhat you addWhat PTKD reads
    SupabaseA table public.ptkd_verification with one row holding the token, and a policy that lets the public key read that one row onlyThat row, with the app's own public key
    FirestoreThe document ptkd_verification/<token> (any content) and a rule that allows reading that document onlyThat document
    Realtime DatabaseThe node /ptkd_verification/<token> set to true and a rule that allows reading that node onlyThat 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 now

    Backend checks: Supabase and Firebase

    PTKD acts like anyone who downloaded your app: it uses only the public keys and config the app contains.

    CheckWhat PTKD sendsWhat it reports
    Supabase tablesGET the REST schema with the app's anon key, then GET one row from each table it listsTables anyone can read
    Supabase storageGET the bucket listBuckets anyone can list
    Supabase sign-upGET the auth settingsOpen sign-up without email confirmation; anonymous sign-ins enabled
    Supabase database functionsRead from the REST schema already fetched; no function is ever calledFunctions callable with the public key, by name
    Supabase GraphQLOne GET introspection query (only the GET form; nothing is reported if it is refused)GraphQL schema readable with the public key
    Firebase Realtime DatabaseA shallow GET of the rootDatabase readable by anyone
    Firebase StorageGET a list of one fileFiles anyone can list
    FirestoreGET 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-inGET the project's sign-in configAnonymous sign-in enabled
    Firebase email enumerationOne 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 ConfigOne POST to the Remote Config fetch endpoint with the app's own app id, the same request every install of the app makesParameters whose names look like credentials, by name; values are never stored
    LimitValue
    MethodsHTTPS 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.
    ProofNothing is sent to a backend until it shows this project's token (see above).
    HostsOnly 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.
    RequestsAt most 40 per scan, 6 seconds each, redirects not followed.
    What is keptTable, 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.