ptkd check: check a project on your machine

    ptkd check runs the same engine as a hosted PTKD scan, on your own machine. Point it at a project folder or a built .ipa, .apk or .aab. Nothing is uploaded and nothing in your project is run.

    Run it

    ptkd check .                      # this project: the human report
    ptkd check path/to/app.aab        # a built app
    ptkd check . --json               # machine-readable result
    ptkd check . --sarif              # SARIF 2.1.0 to stdout
    ptkd check . --sarif ptkd.sarif   # or to a file
    ptkd check . --fail-on critical   # gate level (default: high)

    A project folder can be Xcode, Expo, React Native, Flutter, Capacitor, Cordova or native Android. Tests, examples and dependency folders are skipped. Without a folder or file, ptkd check keeps its older meaning: it uploads the build to your PTKD project for a hosted review check.

    What it prints

    The report answers two questions, kept apart:

    • Is it safe? A security grade from security findings only: hardcoded keys (AI keys included), Supabase tables without row level security, open Firebase rules, leftover .env files and source maps, cleartext traffic, and more.
    • Will it pass review? A readiness score from App Store and Google Play findings only, each tied to the rule it predicts.

    After those come needs checking (leads PTKD has yet to prove, for a person to look at) and the checks that need another input, such as the built app (see what each scan covers).

    Known-vulnerable and malicious packages, offline

    ptkd check runs fully on your machine, dependency checks included. It reads the exact versions from your lockfiles (package-lock.json, npm-shrinkwrap.json, yarn.lock, pnpm-lock.yaml, pubspec.lock, Podfile.lock, Package.resolved, Gradle's gradle.lockfile; versions from libs.versions.toml and build.gradle are marked "declared, not resolved") and matches them against a snapshot of the OSV.dev advisory database that ships with PTKD. Nothing about your project is sent anywhere. --offline is accepted and is already the default.

    The snapshot covers npm, Dart (pub), Maven and Swift packages: 14,915 advisories and 224,415 known malicious package names, taken on 24 November 2026. A malicious package name is flagged at every version. The report says advisories as of that date, and when the snapshot is more than 14 days old the verdict is STALE instead of CLEAR, so an old snapshot never reads as a clean result. With no snapshot at all, the report says dependencies were not checked.

    A hosted scan of a project on app.ptkd.com asks OSV.dev and the npm registry live instead (package names and versions only, never code), which also catches packages that do not exist or are brand new.

    The verdict and the exit code

    VerdictMeaningExit code
    BLOCKEDA confirmed finding, security or store, at or above --fail-on.1
    NOT CHECKEDNothing recognizable to check, or the engine failed. Never a pass.2
    STALENothing blocks, but the store rules or the dependency advisories PTKD used are more than 14 days old.0
    CLEARNothing blocks.0

    --fail-on takes critical, high (the default), medium, low or none. --no-gate prints the same report and always exits 0. Unproven leads never count toward BLOCKED.

    SARIF and JSON

    The SARIF file uploads straight into GitHub code scanning. Each result carries a key that stays the same across builds, so an alert is tracked, not reopened, from one commit to the next. The JSON has the verdict, both scores, every finding with its fix, the blocking list, the not-checked list and the date of the store rules. The GitHub Action and the Claude Code guard both read it.

    What a project check cannot see

    Some things only exist in the built app: code signing, binary hardening, and the files Expo writes at prebuild (such as the iOS privacy manifest). A project check lists those as not checked. Check the built IPA or AAB before release to cover them.