ShipSafe — Independent security verification

v0.6.5
co.ship-safe/scanner Checked 3 days ago Published 6 days ago

Independent security review for AI-built apps: exposed secrets, broken auth, unsafe data access.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

shipsafe_scan Scan code for security vulnerabilities

Scan a project directory for security vulnerabilities using ShipSafe: exposed secrets, injection, broken auth/access control (IDOR), misconfiguration, and known-vulnerable dependencies (CVEs found in package-lock.json/pnpm-lock.yaml/yarn.lock/requirements.txt/go.sum/Gemfile.lock). A fast local pattern + dependency scan runs for free with no login; with a login it can also run AI deep analysis (automatic on paid plans; a free account includes one AI scan — pass ai: true). Returns plain-English findings (each with the exact fix) AND structured output: a `clean` boolean + severity `counts` you…

ParameterTypeDescription
aibooleanRun AI deep analysis (needs a login via shipsafe_login or `shipsafe login`; a free account includes one AI scan). Defaults on for paid plans, off otherwise.
changedOnlybooleanScan only files changed vs git HEAD plus new untracked files. Falls back to a full scan if the directory isn't a git repo.
pathstringDirectory to scan. Defaults to the current working directory.
pathsarrayScan only these files/dirs (relative to path, inside the project), e.g. the files you just edited. Faster than a full scan.
severitystringOnly return findings at or above this severity.
uploadbooleanSave this scan to the user's ShipSafe dashboard (needs login) and return a shareable dashboardUrl. Off by default.

shipsafe_fix_prompt Generate a one-paste fix prompt

Scan the project and generate a single paste-ready prompt that fixes ALL findings at once, tailored to the detected AI builder (Cursor, Lovable, Bolt, v0). Requires a login on a monthly plan (`shipsafe login`). Use when the user wants one prompt to hand to their AI tool to fix everything.

ParameterTypeDescription
pathstringDirectory to scan. Defaults to the current working directory.

shipsafe_status Show ShipSafe login + scan quota

Show whether the user is logged in to ShipSafe, their plan, and remaining AI scan quota. Use this to check if AI deep analysis is available before scanning.

shipsafe_scan_history Scan git history for committed secrets

Scan a local git repository's COMMIT HISTORY for secrets that were ever committed: API keys, service-role keys, tokens, secret-named env vars. This catches the dangerous case a normal scan can't see: a credential that was committed and later deleted from the current files but still lives in git history (anyone who clones the repo can recover it). Read-only and fully local; it reads past file versions with git and never writes or pushes. Findings flagged `removedFromHead` are the urgent ones: gone from your code, still in history, so the credential must be rotated AND the history purged (e.g. g…

ParameterTypeDescription
maxCommitsnumberHow many commits back from HEAD to scan (default 100). Lower it for a faster pass on huge repos.
pathstringGit repository directory to scan. Defaults to the current working directory.

shipsafe_dast Probe a LIVE app you own for security issues (DAST)

Run a non-destructive dynamic scan against a RUNNING app (your localhost dev server or a deployed URL you own). Unlike the static scan (which reads source), this makes real GET requests to find issues only visible at runtime: missing security headers (CSP, HSTS, clickjacking), insecure cookies (Secure/HttpOnly/SameSite), CORS misconfiguration and leaked stack traces. It is read-only (GET only, bounded request count, gentle rate) and never sends payloads that change data. CONSENT REQUIRED: only probe an app you own or operate; you MUST pass confirmOwnership:true. NOTE: probing for exposed files…

ParameterTypeDescription
confirmOwnership *booleanMust be true. By setting it you confirm you own or operate this app and authorize a non-destructive probe.
url *stringBase URL of the running app to probe, e.g. http://localhost:3000 or https://yourapp.com.
extraPathsarrayAdditional SAME-ORIGIN paths to check for accidental exposure, e.g. ['/api/internal', '/uploads']. Anything that resolves off the target's origin is skipped and reported, and the whole list runs only…
maxRequestsnumberCap total HTTP requests (default 25).

shipsafe_scan_url Scan a LIVE deployed app you own (headers + leaked client secrets)

Scan a RUNNING deployed app you own in one shot: (1) the DAST runtime probe (security headers, CSP quality, clickjacking) AND (2) the high-value check a source scan can miss: it fetches the deployed CLIENT JS bundles (entry + lazy-loaded chunks) and scans them for SECRETS leaked into the browser. AI builders (Lovable, Bolt, v0) routinely inline API keys at build time, so the leak exists only in the deployed artifact, not the repo. Also flags publicly accessible source maps (original source recoverable). Read-only (GET only, bounded, gentle). CONSENT REQUIRED: only scan an app you own; pass con…

ParameterTypeDescription
confirmOwnership *booleanMust be true: confirms you own/operate this app and authorize a non-destructive scan.
url *stringThe deployed app URL, e.g. https://yourapp.com or http://localhost:3000.
maxAssetsnumberCap how many JS assets to fetch and scan (default 20).
validateSecretsbooleanOpt-in: for each provider key found leaked in the client bundle, make ONE read-only call to that provider (OpenAI/Stripe/GitHub/SendGrid/Slack/GitLab) to prove whether it's LIVE or revoked. The key is…

shipsafe_report_false_positive Report a finding as a false positive

Tell ShipSafe that a finding it reported is a false positive. This sends the rule + context to ShipSafe's central false-positive database (shared with the web app and CLI) so the team can tune the rule and stop it from misfiring. Use when you and the user agree a finding is wrong, not a real issue. Requires a ShipSafe login. The code snippet is redacted before sending; no secrets leave the machine.

ParameterTypeDescription
ruleId *stringThe ruleId of the finding being reported (from a scan result, e.g. 'secrets/public-env-secret-exposed').
filestringFile path the finding was reported on.
linenumberLine number of the finding.
reasonstringWhy it's a false positive (helps the team tune the rule).
severitystringThe finding's severity, as the scan reported it.
snippetstringThe flagged code. Redacted before sending.
titlestringThe finding's title.

shipsafe_scan_api Test a live API for IDOR / broken object-level authorization

Test a running API you own for IDOR / BOLA (OWASP API #1, the #1 vuln AI builders ship): can one logged-in user read ANOTHER user's objects by changing the ID? You provide TWO test-account bearer tokens (A and B) and the resource endpoints; for each resource, user A lists their own objects, then user B tries to read them by ID. A 200 = a real IDOR. Also flags collections readable with no token. Read-only (GET only), bounded. CONSENT REQUIRED. Use TWO DISPOSABLE TEST ACCOUNTS on a non-production environment, never real customer IDs. Provide two bearer tokens, OR test-account credentials plus a…

ParameterTypeDescription
baseUrl *stringAPI base URL, e.g. https://api-preprod.yourapp.com.
confirmOwnership *booleanMust be true: you own/operate this API and these are test accounts you authorize testing.
resources *arrayThe resources to test for cross-user access.
accountAobjectTEST account A credentials (used with `login`).
accountBobjectTEST account B credentials (used with `login`).
loginobjectAuto-login config: with accountA/accountB, ShipSafe fetches both test tokens for you. Supabase Auth or a generic JWT-returning endpoint only; cookie/session auth (Clerk, NextAuth) is not supported, pa…
tokenAstringBearer token for TEST account A. Provide this OR `login` + accountA to fetch it automatically.
tokenBstringBearer token for TEST account B. Provide this OR `login` + accountB to fetch it automatically.

shipsafe_login Log in to ShipSafe from your editor

Log in to ShipSafe without leaving the editor, to unlock AI deep analysis and fix prompts. Two steps: call with NO arguments to start; you'll get a URL and a code to authorize in the browser. After authorizing, call again with the returned `device_code` to finish. The free local + dependency scan works without logging in.

ParameterTypeDescription
device_codestringThe device_code returned by the first (no-argument) call. Pass it on the second call, after authorizing in the browser, to complete login.