AI Today

🛡️ ai-saas-guard: open-source tool scans AI-built SaaS apps for auth, billing and data risks before launch

· 4 min

GitHub repository card of ai-saas-guard

In brief


🛡️ Anyone who has built a SaaS app with AI help often ends up with something that looks finished: login works, checkout opens, tests are green. [ai-saas-guard](https://github.com/zr9959/ai-saas-guard) is meant to find the places where it is still dangerous before real users arrive. The open-source tool checks apps built on Next.js, Supabase, Stripe, Vercel, GitHub Actions and MCP for typical risks: whether one customer can see another's data, whether a Stripe webhook grants access without verifying the signature, whether errors are swallowed while the app reports success, or whether secrets end up in public environment variables. 🔒 According to the project page, the scan runs locally, reads only the repository, uploads no code and calls no language model; the rules are deterministic. The tool comes as a command-line program on npm and as a GitHub Action, under the MIT licence, for Node.js 20 or later. 📋 The developers say themselves that it is not a penetration test and does not prove an app is secure. It produces a short list, sorted by severity, of what to look at first before launch. That is useful for founders, solo developers and small teams on exactly this stack; anyone using other frameworks gets little from it.


🧪 Trying it without your own code. A demo command (`npx ai-saas-guard@latest demo --summary`) scans two bundled sample apps: a deliberately risky one currently returns 20 findings, two of them critical, according to the README, and a safer version built from the same parts returns none. After that, `scan` checks your own project, in about three minutes by the developers' estimate. Specialised commands look specifically at Supabase rules (`check-supabase`), Stripe webhooks (`check-stripe`), MCP configurations (`check-mcp`) and GitHub workflows (`check-actions`).

📑 What a finding looks like. Each hit names a rule, the severity, the file with its line number, why it matters for launch, how to verify it by hand and which direction a fix should take. One example from the documentation: a Stripe webhook does not store event IDs it has already processed. Because Stripe can deliver events more than once, access grants and cancellations could drift apart; the suggested check is to replay the same event twice and confirm nothing happens twice. At the top of the summary is a plain verdict, for example that launch is blocked while critical findings are open.

🔀 Pull requests from AI assistants. The `pr-risk` command looks at a single diff. AI-generated pull requests often mix harmless changes with changes to login, billing, data access or tests; the tool ranks the changes by risk, writes a reviewer checklist and suggests how a large diff could be split. Output comes as text, JSON, SARIF for GitHub code scanning, and Markdown for PR comments. A config file can switch rules off, change severities and set the threshold at which a CI run fails.

⚖️ How the developers frame it. The README calls the result a review queue, not a score: first fix or manually prove the critical and high findings on login, billing, tenant separation and fake success, then the medium hints on deployment and CI, cosmetics last. For a comparison with Semgrep, zizmor, OpenSSF Scorecard, Snyk and GitHub code scanning the project points to a document of its own. The current version 0.43.3 is mainly meant to reduce false alarms in the detection of fake success.

🧭 What it is not. A hosted GitHub App exists only as a limited trial so far; a public beta depends on feedback from real users, the project says. The project names TIYBAI as its builder. Anyone who really wants to secure their app still needs manual tests with two user accounts, a check of the Stripe webhooks and, when in doubt, a proper security audit; the project's own documentation says so.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service