{
  "name": "Preflight",
  "version": "2.0",
  "description": "Security modules an AI coding agent runs on the user's own project: find the holes, fix the approved ones, prove each fix with a test that attempts the attack. Read agent.md first: it holds the protocol and the hard scope rules.",
  "license": "MIT",
  "protocol": "https://zirkomirko.com/tools/preflight/agent.md",
  "prove": "https://zirkomirko.com/tools/preflight/prove.md",
  "templates": [
    "https://zirkomirko.com/tools/preflight/templates/SECURITY.md",
    "https://zirkomirko.com/tools/preflight/templates/INCIDENT.md",
    "https://zirkomirko.com/tools/preflight/.txt"
  ],
  "base": "https://zirkomirko.com/tools/preflight/",
  "counts": {
    "modules": 39,
    "checks": 392,
    "groups": 9
  },
  "groups": [
    {
      "id": "access",
      "title": "Who gets in",
      "plain": "Every door into the app, and who is allowed through each one."
    },
    {
      "id": "input",
      "title": "What attackers send",
      "plain": "Text, files and addresses that try to become commands."
    },
    {
      "id": "money",
      "title": "Money and abuse",
      "plain": "Free plans, fake payments, double spending and runaway bills."
    },
    {
      "id": "data",
      "title": "Data and secrets",
      "plain": "Keys, personal data and files, and where they leak."
    },
    {
      "id": "platform",
      "title": "Platform playbooks",
      "plain": "The known traps of the framework and host you chose."
    },
    {
      "id": "pipeline",
      "title": "Infrastructure and pipeline",
      "plain": "Cloud accounts, containers, packages, build robots and your domain."
    },
    {
      "id": "ai",
      "title": "AI features and agents",
      "plain": "Models that can be tricked, tools they can misuse, and the bill."
    },
    {
      "id": "surfaces",
      "title": "Other surfaces",
      "plain": "Phones, desktop apps, extensions, wallets, sockets and background jobs."
    },
    {
      "id": "operate",
      "title": "Operate and prove",
      "plain": "Noticing trouble, rotating keys, and the gate before each deploy."
    }
  ],
  "modules": [
    {
      "id": "access",
      "group": "access",
      "title": "Access control: the route x role x ownership matrix",
      "plain": "A table of every door into your server: who may use it, whose data it opens, and where the lock is.",
      "always": false,
      "triggers": [
        "any server code",
        "HTTP routes",
        "server actions",
        "RPC or tRPC",
        "GraphQL resolvers",
        "database functions",
        "teams or tenants",
        "admin area",
        "share links",
        "invites",
        "Supabase",
        "Firebase"
      ],
      "checks": [
        "ACL-1",
        "ACL-2",
        "ACL-3",
        "ACL-4",
        "ACL-5",
        "ACL-6",
        "ACL-7",
        "ACL-8",
        "ACL-9",
        "ACL-10",
        "ACL-11"
      ],
      "path": "checks/access.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/access.md",
      "short": "Access control matrix",
      "when": "any server or database",
      "keywords": [
        "IDOR / BOLA",
        "tenant isolation",
        "mass assignment",
        "admin panels",
        "feature flags",
        "open previews"
      ]
    },
    {
      "id": "auth",
      "group": "access",
      "title": "Accounts: passwords, reset, magic links, verification, MFA",
      "plain": "Every way into an account, and what happens when someone guesses a million times.",
      "always": false,
      "triggers": [
        "sign-up or login",
        "password reset",
        "magic links",
        "one-time codes",
        "email verification",
        "MFA",
        "invites",
        "custom auth flows"
      ],
      "checks": [
        "AUTH-1",
        "AUTH-2",
        "AUTH-3",
        "AUTH-4",
        "AUTH-5",
        "AUTH-6",
        "AUTH-7",
        "AUTH-8",
        "AUTH-9",
        "AUTH-10",
        "AUTH-11"
      ],
      "path": "checks/auth.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/auth.md",
      "short": "Accounts and login",
      "when": "sign-up or login",
      "keywords": [
        "password reset",
        "magic links",
        "email verification",
        "MFA",
        "enumeration",
        "brute force"
      ]
    },
    {
      "id": "sessions",
      "group": "access",
      "title": "Sessions, cookies, JWTs and CSRF",
      "plain": "Whether the pass your app hands a logged-in browser can be forged, stolen or used forever.",
      "always": false,
      "triggers": [
        "sessions or cookies",
        "JWT",
        "refresh tokens",
        "API keys issued to users",
        "jsonwebtoken",
        "jose",
        "express-session",
        "remember me"
      ],
      "checks": [
        "SESS-1",
        "SESS-2",
        "SESS-3",
        "SESS-4",
        "SESS-5",
        "SESS-6",
        "SESS-7",
        "SESS-8",
        "SESS-9",
        "SESS-10"
      ],
      "path": "checks/sessions.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/sessions.md",
      "short": "Sessions, JWTs, CSRF",
      "when": "sessions or tokens",
      "keywords": [
        "cookie flags",
        "JWT alg and expiry",
        "revocation",
        "CSRF",
        "API keys"
      ]
    },
    {
      "id": "oauth",
      "group": "access",
      "title": "OAuth, OIDC and social login",
      "plain": "Sign in with Google or GitHub: redirect addresses, account linking and where users land afterwards.",
      "always": false,
      "triggers": [
        "Sign in with Google, GitHub, Apple or Microsoft",
        "OAuth callback route",
        "OIDC",
        "connected third-party accounts",
        "acting as an OAuth provider"
      ],
      "checks": [
        "OAUTH-1",
        "OAUTH-2",
        "OAUTH-3",
        "OAUTH-4",
        "OAUTH-5",
        "OAUTH-6",
        "OAUTH-7",
        "OAUTH-8",
        "OAUTH-9"
      ],
      "path": "checks/oauth.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/oauth.md",
      "short": "OAuth and social login",
      "when": "\"Sign in with ...\"",
      "keywords": [
        "redirect URIs",
        "state and PKCE",
        "account linking",
        "open redirect"
      ]
    },
    {
      "id": "auth-providers",
      "group": "access",
      "title": "Hosted auth: Clerk, Auth0, Supabase Auth, Auth.js, Firebase Auth",
      "plain": "The settings and server calls that are still yours when a service runs your login.",
      "always": false,
      "triggers": [
        "Clerk",
        "Auth0",
        "Supabase Auth",
        "Auth.js",
        "NextAuth",
        "Firebase Auth",
        "better-auth",
        "Lucia",
        "Passport",
        "Devise",
        "Sanctum"
      ],
      "checks": [
        "PROV-1",
        "PROV-2",
        "PROV-3",
        "PROV-4",
        "PROV-5",
        "PROV-6",
        "PROV-7",
        "PROV-8",
        "PROV-9",
        "PROV-10"
      ],
      "path": "checks/auth-providers.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/auth-providers.md",
      "short": "Hosted auth providers",
      "when": "a login service runs your sign-in",
      "keywords": [
        "Clerk",
        "Auth0",
        "Supabase Auth",
        "Auth.js",
        "Firebase Auth"
      ]
    },
    {
      "id": "injection",
      "group": "input",
      "title": "Injection: SQL, NoSQL, command, path, template, deserialization, XXE, prototype pollution, ReDoS",
      "plain": "Typed text that gets treated as a database command, a program to run or a file to open.",
      "always": false,
      "triggers": [
        "any server code",
        "raw SQL",
        "database functions",
        "child_process or subprocess",
        "file paths from input",
        "template engines",
        "XML parsing",
        "eval",
        "pickle or YAML loading",
        "user-supplied regular expressions"
      ],
      "checks": [
        "INJ-1",
        "INJ-2",
        "INJ-3",
        "INJ-4",
        "INJ-5",
        "INJ-6",
        "INJ-7",
        "INJ-8",
        "INJ-9",
        "INJ-10"
      ],
      "path": "checks/injection.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/injection.md",
      "short": "Injection",
      "when": "any server code",
      "keywords": [
        "SQL / NoSQL",
        "command",
        "path traversal",
        "templates",
        "deserialization",
        "XXE",
        "prototype pollution",
        "ReDoS"
      ]
    },
    {
      "id": "ssrf",
      "group": "input",
      "title": "Server-side requests and cloud metadata (SSRF)",
      "plain": "Making your server fetch an internal address and hand over what it finds, including cloud keys.",
      "always": false,
      "triggers": [
        "the server fetches a URL",
        "avatar or image by URL",
        "link previews",
        "import from URL",
        "user-configured webhooks",
        "PDF or screenshot rendering",
        "image proxy",
        "AI browsing tools"
      ],
      "checks": [
        "SSRF-1",
        "SSRF-2",
        "SSRF-3",
        "SSRF-4",
        "SSRF-5",
        "SSRF-6"
      ],
      "path": "checks/ssrf.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/ssrf.md",
      "short": "Server-side requests",
      "when": "your server fetches a URL",
      "keywords": [
        "cloud metadata",
        "redirects",
        "weak blocklists",
        "PDF renderers"
      ]
    },
    {
      "id": "browser",
      "group": "input",
      "title": "In the browser: stored and DOM XSS, open redirects, framing, postMessage",
      "plain": "Someone else's script running on your pages as your users.",
      "always": false,
      "triggers": [
        "any web frontend",
        "dangerouslySetInnerHTML",
        "v-html",
        "markdown rendering",
        "user-generated content",
        "redirect parameters",
        "iframes or embeds",
        "postMessage",
        "HTML email"
      ],
      "checks": [
        "XSS-1",
        "XSS-2",
        "XSS-3",
        "XSS-4",
        "XSS-5",
        "XSS-6",
        "XSS-7",
        "XSS-8",
        "XSS-9",
        "XSS-10",
        "XSS-11"
      ],
      "path": "checks/browser.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/browser.md",
      "short": "XSS and the browser",
      "when": "any web frontend",
      "keywords": [
        "stored XSS",
        "DOM XSS",
        "open redirects",
        "CSP",
        "clickjacking",
        "postMessage"
      ]
    },
    {
      "id": "api",
      "group": "input",
      "title": "API surface: validation, CORS, GraphQL, errors, inbound webhooks",
      "plain": "What your server accepts, what it gives away in errors, and which websites may use it.",
      "always": false,
      "triggers": [
        "HTTP routes",
        "REST API",
        "GraphQL",
        "tRPC",
        "webhooks",
        "CORS",
        "edge or serverless functions",
        "Express",
        "Fastify",
        "FastAPI",
        "Django",
        "Rails",
        "Laravel"
      ],
      "checks": [
        "API-1",
        "API-2",
        "API-3",
        "API-4",
        "API-5",
        "API-6",
        "API-7",
        "API-8",
        "API-9",
        "API-10",
        "API-11",
        "API-12"
      ],
      "path": "checks/api.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/api.md",
      "short": "API surface",
      "when": "any API",
      "keywords": [
        "validation",
        "CORS",
        "GraphQL",
        "error leaks",
        "inbound webhooks"
      ]
    },
    {
      "id": "payments",
      "group": "money",
      "title": "Payments, webhooks and entitlements (Stripe, Lemon Squeezy, Paddle)",
      "plain": "Getting the paid plan for free, changing the price, or sending a fake or repeated payment message.",
      "always": false,
      "triggers": [
        "Stripe",
        "Lemon Squeezy",
        "Paddle",
        "PayPal",
        "Polar",
        "RevenueCat",
        "app-store billing",
        "plan or subscription column",
        "credits",
        "checkout",
        "payment webhook"
      ],
      "checks": [
        "PAY-1",
        "PAY-2",
        "PAY-3",
        "PAY-4",
        "PAY-5",
        "PAY-6",
        "PAY-7",
        "PAY-8",
        "PAY-9",
        "PAY-10",
        "PAY-11",
        "PAY-12"
      ],
      "path": "checks/payments.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/payments.md",
      "short": "Payments and webhooks",
      "when": "you take payments",
      "keywords": [
        "Stripe",
        "Lemon Squeezy",
        "Paddle",
        "signatures",
        "replay",
        "entitlements",
        "state drift"
      ]
    },
    {
      "id": "logic",
      "group": "money",
      "title": "Business logic, races and double spend",
      "plain": "Negative amounts, coupons used twice, and two clicks at the same moment.",
      "always": false,
      "triggers": [
        "credits or balances",
        "coupons or promo codes",
        "trials",
        "referrals",
        "refunds",
        "quotas or seat limits",
        "transfers",
        "inventory",
        "multi-step flows"
      ],
      "checks": [
        "BIZ-1",
        "BIZ-2",
        "BIZ-3",
        "BIZ-4",
        "BIZ-5",
        "BIZ-6",
        "BIZ-7",
        "BIZ-8",
        "BIZ-9",
        "BIZ-10",
        "BIZ-11"
      ],
      "path": "checks/logic.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/logic.md",
      "short": "Business logic and races",
      "when": "credits, coupons, trials or limits",
      "keywords": [
        "price tampering",
        "coupons",
        "trials",
        "referrals",
        "refunds",
        "double spend"
      ]
    },
    {
      "id": "abuse",
      "group": "money",
      "title": "Abuse and cost: rate limits, bots, SMS and email pumping, denial of wallet",
      "plain": "Scripts that make you pay: endless AI calls, thousands of text messages, fake sign-ups.",
      "always": false,
      "triggers": [
        "public sign-up",
        "login",
        "sends email",
        "sends SMS",
        "LLM calls",
        "uploads",
        "exports",
        "search",
        "paid third-party APIs",
        "serverless hosting"
      ],
      "checks": [
        "ABU-1",
        "ABU-2",
        "ABU-3",
        "ABU-4",
        "ABU-5",
        "ABU-6",
        "ABU-7",
        "ABU-8",
        "ABU-9",
        "ABU-10"
      ],
      "path": "checks/abuse.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/abuse.md",
      "short": "Abuse and cost",
      "when": "anything public or costly",
      "keywords": [
        "rate limits",
        "bot sign-ups",
        "SMS pumping",
        "email pumping",
        "denial of wallet",
        "spend caps"
      ]
    },
    {
      "id": "secrets",
      "group": "data",
      "title": "Secrets and env files",
      "plain": "Keys and passwords saved in code, git history, build files or the part of the app visitors download.",
      "always": true,
      "triggers": [
        "any project",
        ".env",
        "API keys",
        "config files",
        "git repository"
      ],
      "checks": [
        "SEC-1",
        "SEC-2",
        "SEC-3",
        "SEC-4",
        "SEC-5",
        "SEC-6",
        "SEC-7",
        "SEC-8"
      ],
      "path": "checks/secrets.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/secrets.md",
      "short": "Secrets",
      "when": "always",
      "keywords": [
        "git history",
        "hard-coded keys",
        "fallback defaults",
        "logs",
        "build output"
      ]
    },
    {
      "id": "client",
      "group": "data",
      "title": "What ships to the browser: keys, source maps, verbose errors",
      "plain": "Everything a visitor can read by opening your page's code.",
      "always": false,
      "triggers": [
        "any web frontend",
        "NEXT_PUBLIC_",
        "VITE_",
        "EXPO_PUBLIC_",
        "REACT_APP_",
        "client components",
        "source maps",
        "single-page app"
      ],
      "checks": [
        "CLI-1",
        "CLI-2",
        "CLI-3",
        "CLI-4",
        "CLI-5",
        "CLI-6",
        "CLI-7",
        "CLI-8",
        "CLI-9"
      ],
      "path": "checks/client.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/client.md",
      "short": "What ships to the browser",
      "when": "any web frontend",
      "keywords": [
        "NEXT_PUBLIC_",
        "VITE_",
        "EXPO_PUBLIC_",
        "source maps",
        "page data",
        "verbose errors"
      ]
    },
    {
      "id": "database",
      "group": "data",
      "title": "Database: exposure, privileges, ORM pitfalls, backups",
      "plain": "Whether the database is reachable from outside, how much power the app has in it, and whether you can restore it.",
      "always": false,
      "triggers": [
        "Postgres",
        "MySQL",
        "SQLite",
        "MongoDB",
        "Redis",
        "Prisma",
        "Drizzle",
        "Sequelize",
        "TypeORM",
        "SQLAlchemy",
        "ActiveRecord",
        "Eloquent",
        "Mongoose",
        "migrations"
      ],
      "checks": [
        "DB-1",
        "DB-2",
        "DB-3",
        "DB-4",
        "DB-5",
        "DB-6",
        "DB-7",
        "DB-8",
        "DB-9",
        "DB-10"
      ],
      "path": "checks/database.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/database.md",
      "short": "Database",
      "when": "any database",
      "keywords": [
        "open ports",
        "least privilege",
        "ORM pitfalls",
        "backups",
        "tested restore"
      ]
    },
    {
      "id": "uploads",
      "group": "data",
      "title": "Uploads and file processing",
      "plain": "Who can upload what, where it lands, who can open it, and booby-trapped files.",
      "always": false,
      "triggers": [
        "file upload",
        "avatars or attachments",
        "CSV, ZIP or document import",
        "image processing",
        "PDF generation or parsing",
        "presigned URLs",
        "storage buckets",
        "multer",
        "sharp",
        "adm-zip",
        "ffmpeg"
      ],
      "checks": [
        "UP-1",
        "UP-2",
        "UP-3",
        "UP-4",
        "UP-5",
        "UP-6",
        "UP-7",
        "UP-8",
        "UP-9",
        "UP-10",
        "UP-11",
        "UP-12"
      ],
      "path": "checks/uploads.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/uploads.md",
      "short": "Uploads and files",
      "when": "users send files",
      "keywords": [
        "file type",
        "zip slip",
        "images",
        "PDFs",
        "SVG",
        "quotas"
      ]
    },
    {
      "id": "privacy",
      "group": "data",
      "title": "Personal data: inventory, retention, logging, GDPR/CCPA, PCI scope",
      "plain": "What you keep about people, where it flows, how long it stays, and what your logs give away.",
      "always": false,
      "triggers": [
        "stores personal data",
        "user accounts",
        "analytics",
        "error tracking",
        "session replay",
        "payment details",
        "EU or California users"
      ],
      "checks": [
        "PRIV-1",
        "PRIV-2",
        "PRIV-3",
        "PRIV-4",
        "PRIV-5",
        "PRIV-6",
        "PRIV-7",
        "PRIV-8",
        "PRIV-9",
        "PRIV-10"
      ],
      "path": "checks/privacy.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/privacy.md",
      "short": "Personal data",
      "when": "you store data about people",
      "keywords": [
        "PII inventory",
        "retention",
        "deletion",
        "log leaks",
        "GDPR / CCPA",
        "PCI scope"
      ]
    },
    {
      "id": "nextjs",
      "group": "platform",
      "title": "Next.js",
      "plain": "Server actions anyone can call, middleware that misses routes, and data that leaks into the page.",
      "always": false,
      "triggers": [
        "next in package.json",
        "app router",
        "pages router",
        "server actions",
        "middleware.ts",
        "route handlers"
      ],
      "checks": [
        "NEXT-1",
        "NEXT-2",
        "NEXT-3",
        "NEXT-4",
        "NEXT-5",
        "NEXT-6",
        "NEXT-7",
        "NEXT-8",
        "NEXT-9",
        "NEXT-10",
        "NEXT-11",
        "NEXT-12",
        "NEXT-13"
      ],
      "path": "checks/nextjs.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/nextjs.md",
      "short": "Next.js",
      "when": "Next.js",
      "keywords": [
        "server actions",
        "middleware gaps",
        "route handlers",
        "caching",
        "config"
      ]
    },
    {
      "id": "supabase",
      "group": "platform",
      "title": "Supabase",
      "plain": "The rules on each table that keep people out of each other's data, read one by one.",
      "always": false,
      "triggers": [
        "@supabase/supabase-js",
        "@supabase/ssr",
        "supabase folder",
        "supabase.co URL",
        "row level security",
        "storage buckets",
        "edge functions"
      ],
      "checks": [
        "SUPA-1",
        "SUPA-2",
        "SUPA-3",
        "SUPA-4",
        "SUPA-5",
        "SUPA-6",
        "SUPA-7",
        "SUPA-8",
        "SUPA-9",
        "SUPA-10",
        "SUPA-11",
        "SUPA-12",
        "SUPA-13",
        "SUPA-14"
      ],
      "path": "checks/supabase.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/supabase.md",
      "short": "Supabase",
      "when": "Supabase",
      "keywords": [
        "RLS on every table",
        "broad policies",
        "storage",
        "SECURITY DEFINER",
        "service key"
      ]
    },
    {
      "id": "firebase",
      "group": "platform",
      "title": "Firebase",
      "plain": "The rules file that decides what each visitor may read and write.",
      "always": false,
      "triggers": [
        "firebase",
        "firebase-admin",
        "firestore.rules",
        "storage.rules",
        "database.rules.json",
        "Cloud Functions"
      ],
      "checks": [
        "FIRE-1",
        "FIRE-2",
        "FIRE-3",
        "FIRE-4",
        "FIRE-5",
        "FIRE-6",
        "FIRE-7",
        "FIRE-8",
        "FIRE-9",
        "FIRE-10",
        "FIRE-11"
      ],
      "path": "checks/firebase.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/firebase.md",
      "short": "Firebase",
      "when": "Firebase",
      "keywords": [
        "Firestore rules",
        "Storage rules",
        "custom claims",
        "Cloud Functions"
      ]
    },
    {
      "id": "node",
      "group": "platform",
      "title": "Express, Fastify, NestJS, Hono",
      "plain": "Locks that have to be added on purpose, and that must run before the code they protect.",
      "always": false,
      "triggers": [
        "express",
        "fastify",
        "koa",
        "@nestjs/core",
        "hono",
        "http.createServer"
      ],
      "checks": [
        "NODE-1",
        "NODE-2",
        "NODE-3",
        "NODE-4",
        "NODE-5",
        "NODE-6",
        "NODE-7",
        "NODE-8",
        "NODE-9",
        "NODE-10",
        "NODE-11",
        "NODE-12"
      ],
      "path": "checks/node.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/node.md",
      "short": "Express, Fastify, Nest, Hono",
      "when": "a Node server",
      "keywords": [
        "middleware order",
        "trust proxy",
        "sessions",
        "error handling"
      ]
    },
    {
      "id": "python",
      "group": "platform",
      "title": "Django, FastAPI, Flask",
      "plain": "The framework's production switches, and whether every endpoint asks who is calling.",
      "always": false,
      "triggers": [
        "django",
        "djangorestframework",
        "fastapi",
        "starlette",
        "flask"
      ],
      "checks": [
        "PY-1",
        "PY-2",
        "PY-3",
        "PY-4",
        "PY-5",
        "PY-6",
        "PY-7",
        "PY-8",
        "PY-9",
        "PY-10",
        "PY-11"
      ],
      "path": "checks/python.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/python.md",
      "short": "Django, FastAPI, Flask",
      "when": "a Python server",
      "keywords": [
        "check --deploy",
        "DRF permissions",
        "FastAPI dependencies",
        "Flask debug"
      ]
    },
    {
      "id": "rails-laravel",
      "group": "platform",
      "title": "Rails and Laravel",
      "plain": "Skipped filters, editable fields that should not be, and queries written by hand.",
      "always": false,
      "triggers": [
        "Gemfile with rails",
        "composer.json with laravel/framework",
        "Livewire",
        "Inertia",
        "Filament",
        "Devise"
      ],
      "checks": [
        "RL-1",
        "RL-2",
        "RL-3",
        "RL-4",
        "RL-5",
        "RL-6",
        "RL-7",
        "RL-8",
        "RL-9",
        "RL-10",
        "RL-11",
        "RL-12"
      ],
      "path": "checks/rails-laravel.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/rails-laravel.md",
      "short": "Rails and Laravel",
      "when": "Rails or Laravel",
      "keywords": [
        "strong params",
        "policies",
        "APP_DEBUG",
        "mass assignment"
      ]
    },
    {
      "id": "hosting",
      "group": "platform",
      "title": "Hosting: Vercel, Netlify, Cloudflare, VPS. Headers, exposed files, the live look",
      "plain": "Secure connection, browser safety headers, private files handed out by accident, and your host's own safety settings.",
      "always": false,
      "triggers": [
        "deployed or about to deploy",
        "Vercel",
        "Netlify",
        "Cloudflare",
        "Render",
        "Fly",
        "Railway",
        "VPS",
        "nginx",
        "Caddy",
        "a live URL"
      ],
      "live_checks": "passive only, with the owner's consent, at most 30 requests",
      "checks": [
        "HOST-1",
        "HOST-2",
        "HOST-3",
        "HOST-4",
        "HOST-5",
        "HOST-6",
        "HOST-7",
        "HOST-8",
        "HOST-9",
        "HOST-10",
        "HOST-11"
      ],
      "path": "checks/hosting.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/hosting.md",
      "short": "Hosting and headers",
      "when": "you deploy anywhere",
      "keywords": [
        "Vercel",
        "Netlify",
        "Cloudflare",
        "headers",
        "exposed files",
        "previews"
      ]
    },
    {
      "id": "cloud",
      "group": "pipeline",
      "title": "Cloud and infra: IAM, buckets, Docker, IaC, open databases, backups",
      "plain": "What the machine's keys can do, open buckets and databases, and whether you could rebuild from a backup.",
      "always": false,
      "triggers": [
        "Dockerfile",
        "docker-compose",
        "Terraform",
        "Pulumi",
        "CDK",
        "CloudFormation",
        "Kubernetes manifests",
        "AWS",
        "Google Cloud",
        "Azure",
        "S3, R2 or GCS"
      ],
      "checks": [
        "INF-1",
        "INF-2",
        "INF-3",
        "INF-4",
        "INF-5",
        "INF-6",
        "INF-7",
        "INF-8",
        "INF-9",
        "INF-10"
      ],
      "path": "checks/cloud.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/cloud.md",
      "short": "Cloud and infra",
      "when": "Docker, Terraform or a cloud account",
      "keywords": [
        "IAM",
        "S3 / R2 / GCS",
        "Docker",
        "Terraform",
        "open databases",
        "backups"
      ]
    },
    {
      "id": "dependencies",
      "group": "pipeline",
      "title": "Dependencies and supply chain",
      "plain": "Known holes in the packages you use, look-alike packages, and code that runs just by being installed.",
      "always": true,
      "triggers": [
        "package.json",
        "requirements.txt",
        "pyproject.toml",
        "Pipfile",
        "Gemfile",
        "go.mod",
        "Cargo.toml",
        "composer.json",
        "csproj",
        "CDN script tags"
      ],
      "checks": [
        "DEP-1",
        "DEP-2",
        "DEP-3",
        "DEP-4",
        "DEP-5",
        "DEP-6",
        "DEP-7",
        "DEP-8",
        "DEP-9",
        "DEP-10"
      ],
      "path": "checks/dependencies.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/dependencies.md",
      "short": "Dependencies",
      "when": "always",
      "keywords": [
        "audits",
        "lockfiles",
        "typosquats",
        "postinstall scripts"
      ]
    },
    {
      "id": "ci",
      "group": "pipeline",
      "title": "GitHub and CI",
      "plain": "Keys held by build and deploy robots, strangers' pull requests, and who can push to the live branch.",
      "always": false,
      "triggers": [
        ".github/workflows",
        "GitHub Actions",
        ".gitlab-ci.yml",
        "bitbucket-pipelines.yml",
        ".circleci",
        "deploys from git"
      ],
      "checks": [
        "CI-1",
        "CI-2",
        "CI-3",
        "CI-4",
        "CI-5",
        "CI-6",
        "CI-7",
        "CI-8",
        "CI-9",
        "CI-10",
        "CI-11",
        "CI-12"
      ],
      "path": "checks/ci.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/ci.md",
      "short": "GitHub and CI",
      "when": "CI or a git host",
      "keywords": [
        "pull_request_target",
        "SHA pinning",
        "OIDC",
        "token permissions",
        "Dependabot"
      ]
    },
    {
      "id": "domain",
      "group": "pipeline",
      "title": "Domain and email: SPF, DKIM, DMARC, takeover, CAA, HSTS preload, cookie scope",
      "plain": "Email that pretends to be you, forgotten subdomains a stranger can claim, and cookies shared too widely.",
      "always": false,
      "triggers": [
        "a custom domain",
        "sends email from its own domain",
        "DNS records in the repo",
        "subdomains",
        "cookie Domain attribute"
      ],
      "checks": [
        "DNS-1",
        "DNS-2",
        "DNS-3",
        "DNS-4",
        "DNS-5",
        "DNS-6",
        "DNS-7",
        "DNS-8",
        "DNS-9"
      ],
      "path": "checks/domain.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/domain.md",
      "short": "Domain and email",
      "when": "your own domain",
      "keywords": [
        "SPF / DKIM / DMARC",
        "subdomain takeover",
        "CAA",
        "HSTS preload",
        "cookie scope"
      ]
    },
    {
      "id": "ai",
      "group": "ai",
      "title": "LLM features: prompt injection, output handling, leakage, cost",
      "plain": "Your AI key at someone else's service, text that tricks the model, and one customer's data in another's answer.",
      "always": false,
      "triggers": [
        "openai",
        "anthropic",
        "google genai",
        "Vercel AI SDK",
        "LangChain",
        "LlamaIndex",
        "OpenRouter",
        "retrieval or RAG",
        "chatbot",
        "outside text in a prompt"
      ],
      "checks": [
        "AI-1",
        "AI-2",
        "AI-3",
        "AI-4",
        "AI-5",
        "AI-6",
        "AI-7",
        "AI-8",
        "AI-9",
        "AI-10",
        "AI-11",
        "AI-12"
      ],
      "path": "checks/ai.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/ai.md",
      "short": "LLM features",
      "when": "your app calls a model",
      "keywords": [
        "prompt injection",
        "indirect injection",
        "output handling",
        "cross-user leaks",
        "cost"
      ]
    },
    {
      "id": "agents",
      "group": "ai",
      "title": "Agents, tools and MCP",
      "plain": "What each tool the model holds can touch, and which actions need a human to say yes.",
      "always": false,
      "triggers": [
        "tool or function calling",
        "agents",
        "MCP server or client",
        ".mcp.json",
        "code execution by a model",
        "AGENTS.md or CLAUDE.md in the repo"
      ],
      "checks": [
        "AGT-1",
        "AGT-2",
        "AGT-3",
        "AGT-4",
        "AGT-5",
        "AGT-6",
        "AGT-7",
        "AGT-8",
        "AGT-9",
        "AGT-10",
        "AGT-11",
        "AGT-12"
      ],
      "path": "checks/agents.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/agents.md",
      "short": "Agents, tools, MCP",
      "when": "the model can act",
      "keywords": [
        "tool scope",
        "confirmation",
        "MCP servers",
        "sandboxes",
        "exfiltration"
      ]
    },
    {
      "id": "mobile",
      "group": "surfaces",
      "title": "Mobile apps",
      "plain": "Keys inside the app file, links that log people in, and servers that take the app's word.",
      "always": false,
      "triggers": [
        "Expo",
        "React Native",
        "Flutter",
        "Capacitor",
        "ios or android folder",
        "app.json",
        "deep links"
      ],
      "checks": [
        "MOB-1",
        "MOB-2",
        "MOB-3",
        "MOB-4",
        "MOB-5",
        "MOB-6",
        "MOB-7",
        "MOB-8",
        "MOB-9",
        "MOB-10",
        "MOB-11"
      ],
      "path": "checks/mobile.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/mobile.md",
      "short": "Mobile apps",
      "when": "a mobile app",
      "keywords": [
        "keys in the bundle",
        "deep links",
        "secure storage",
        "receipts"
      ]
    },
    {
      "id": "desktop",
      "group": "surfaces",
      "title": "Electron and Tauri",
      "plain": "A web page with the keys to the whole computer.",
      "always": false,
      "triggers": [
        "electron",
        "tauri",
        "src-tauri",
        "BrowserWindow",
        "preload script"
      ],
      "checks": [
        "DESK-1",
        "DESK-2",
        "DESK-3",
        "DESK-4",
        "DESK-5",
        "DESK-6",
        "DESK-7",
        "DESK-8",
        "DESK-9"
      ],
      "path": "checks/desktop.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/desktop.md",
      "short": "Electron and Tauri",
      "when": "a desktop app",
      "keywords": [
        "context isolation",
        "IPC",
        "updates",
        "local servers"
      ]
    },
    {
      "id": "extension",
      "group": "surfaces",
      "title": "Browser extensions",
      "plain": "How much power the extension asks for, and whether web pages can give it orders.",
      "always": false,
      "triggers": [
        "manifest.json with manifest_version",
        "content scripts",
        "background service worker",
        "WXT",
        "Plasmo"
      ],
      "checks": [
        "EXT-1",
        "EXT-2",
        "EXT-3",
        "EXT-4",
        "EXT-5",
        "EXT-6",
        "EXT-7",
        "EXT-8",
        "EXT-9",
        "EXT-10"
      ],
      "path": "checks/extension.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/extension.md",
      "short": "Browser extensions",
      "when": "a browser extension",
      "keywords": [
        "permissions",
        "messages",
        "remote code",
        "publishing"
      ]
    },
    {
      "id": "web3",
      "group": "surfaces",
      "title": "Wallets and on-chain actions",
      "plain": "Where keys live, what people are asked to sign, and whether a payment really happened on-chain.",
      "always": false,
      "triggers": [
        "ethers",
        "viem",
        "wagmi",
        "@solana/web3.js",
        "wallet connect",
        "private keys or seed phrases",
        "smart contracts",
        "trading or payout bot"
      ],
      "checks": [
        "W3-1",
        "W3-2",
        "W3-3",
        "W3-4",
        "W3-5",
        "W3-6",
        "W3-7",
        "W3-8",
        "W3-9",
        "W3-10"
      ],
      "path": "checks/web3.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/web3.md",
      "short": "Wallets and on-chain",
      "when": "wallets or on-chain code",
      "keywords": [
        "key handling",
        "signing prompts",
        "on-chain checks",
        "bots"
      ]
    },
    {
      "id": "realtime",
      "group": "surfaces",
      "title": "WebSockets, cron jobs and queues",
      "plain": "Live connections, timers and background workers: the doors no page links to.",
      "always": false,
      "triggers": [
        "WebSocket",
        "socket.io",
        "Pusher or Ably",
        "Supabase Realtime",
        "cron route",
        "vercel.json crons",
        "BullMQ",
        "Celery",
        "Sidekiq",
        "Inngest",
        "QStash"
      ],
      "checks": [
        "RT-1",
        "RT-2",
        "RT-3",
        "RT-4",
        "RT-5",
        "RT-6",
        "RT-7",
        "RT-8",
        "RT-9",
        "RT-10"
      ],
      "path": "checks/realtime.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/realtime.md",
      "short": "Sockets, cron, queues",
      "when": "sockets, schedules or workers",
      "keywords": [
        "socket auth",
        "channel access",
        "cron secrets",
        "job payloads"
      ]
    },
    {
      "id": "ops",
      "group": "operate",
      "title": "Logging, alerting and the incident runbook",
      "plain": "Noticing quickly when something is wrong, and knowing which buttons to press in the first hour.",
      "always": true,
      "triggers": [
        "any project"
      ],
      "checks": [
        "OPS-1",
        "OPS-2",
        "OPS-3",
        "OPS-4",
        "OPS-5",
        "OPS-6",
        "OPS-7",
        "OPS-8",
        "OPS-9"
      ],
      "path": "checks/ops.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/ops.md",
      "short": "Logging and incidents",
      "when": "always",
      "keywords": [
        "audit log",
        "alerts",
        "kill switches",
        "runbook",
        "2FA"
      ]
    },
    {
      "id": "rotation",
      "group": "operate",
      "title": "Secret rotation steps per provider",
      "plain": "Exact steps to replace a leaked key at Stripe, Supabase, OpenAI, Anthropic, AWS, GitHub and others.",
      "always": false,
      "triggers": [
        "a secret was committed, shipped, logged or printed",
        "someone with access left"
      ],
      "order": "when a secret was exposed; feeds the manual checklist",
      "checks": [
        "ROT-1",
        "ROT-2",
        "ROT-3",
        "ROT-4",
        "ROT-5",
        "ROT-6",
        "ROT-7",
        "ROT-8",
        "ROT-9",
        "ROT-10",
        "ROT-11",
        "ROT-12"
      ],
      "path": "checks/rotation.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/rotation.md",
      "short": "Key rotation",
      "when": "a key was exposed",
      "keywords": [
        "Stripe",
        "Supabase",
        "OpenAI",
        "Anthropic",
        "AWS",
        "GitHub"
      ]
    },
    {
      "id": "beyond",
      "group": "operate",
      "title": "Go beyond the list",
      "plain": "How this particular app works, step by step, to find what a checklist would not know to ask.",
      "always": true,
      "triggers": [
        "any project"
      ],
      "order": "after all other modules",
      "checks": [],
      "path": "checks/beyond.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/beyond.md",
      "short": "Beyond the list",
      "when": "always",
      "keywords": [
        "abuse stories",
        "variants",
        "chains",
        "what is missing"
      ]
    },
    {
      "id": "predeploy",
      "group": "operate",
      "title": "Pre-deploy gate",
      "plain": "A final yes-or-no list, plus a SECURITY.md and a script that blocks a risky deploy.",
      "always": true,
      "triggers": [
        "any project"
      ],
      "order": "last, after fixes and proof",
      "checks": [],
      "path": "checks/predeploy.md",
      "url": "https://zirkomirko.com/tools/preflight/checks/predeploy.md",
      "short": "Pre-deploy gate",
      "when": "always, last",
      "keywords": [
        "deploy blockers",
        "SECURITY.md",
        "gate script"
      ]
    }
  ]
}
