Skip to main content

delstrike-check

Free, local security checks for vibecoded apps on Supabase and Firebase, by DELSTRIKE.

uvx delstrike-check .
# or
pipx run delstrike-check .
  delstrike-check 0.1.0 · Supabase + React + Vite · 4,210 own lines · nothing left your machine

  HIGH  SB-EDGE-NOAUTH       supabase/functions/payment-callback/index.ts:5
        Uses the service_role key and never checks who is calling.
        Anyone with your public anon key can call it.
        Fix: verify the caller with supabase.auth.getUser() or a shared secret header.
        → delstrike-check explain SB-EDGE-NOAUTH

  HIGH  SB-POLICY-OVERLAP    supabase/migrations/20260101000000_invoices.sql:7
        On invoices, policy "Enable read access for all users" (select) lets anyone, without
        signing in, read every row, and it is combined with OR with "Users read own
        invoices", which checks the owner.
        Permissive policies add up, so the open one wins.
        Fix: drop policy "Enable read access for all users" on public.invoices;
        → delstrike-check explain SB-POLICY-OVERLAP

  2 high

(Example app, made up for this page.)

What it does, and what it doesn't

It does: walk a local folder without running anything, detect the stack, rebuild the final state of your Supabase migrations (tables, RLS, every CREATE/ALTER/DROP POLICY), read your edge functions, API routes, Firebase rules, config.toml and .env files, and tell you the file, the line, why it matters and how to fix it.

It doesn't: run your code or install your dependencies, connect to your database or your deployed app, send telemetry, or check for updates on its own. Nothing leaves your machine, unless you pass --deps, which sends only package names, ecosystems and versions to osv.dev.

It never prints a secret. Findings name the key or the provider, never the value.

It never says "secure". With no findings it says No issues found by these checks, and lists what it can't see: broken access logic (IDOR), business rules, n8n/Make workflows and production configuration.

Rules

High-confidence findings are shown by default. --all adds the ones that depend on your design ("to verify"). ★ = the checks that found the serious issues in our reviews of open-source vibecoded apps.

Rule Severity Confidence Stack What it catches
SB-EDGE-NOAUTH ★ High High Supabase Edge function uses service_role without checking the caller
SB-EDGE-JWT-OFF ★ Medium–High High Supabase JWT verification disabled for an edge function
SB-SERVICE-ROLE-KEY Critical High Supabase service_role or secret key exposed to the client
SB-POLICY-OPEN High High Supabase Row Level Security policy open to everyone
SB-RLS-OFF Critical High Supabase Table in the public schema without Row Level Security
SB-POLICY-OVERLAP ★ High High Supabase Open policy overrides an owner-only policy
SB-RPC-DEFINER Medium Medium Supabase SECURITY DEFINER function callable by anyone
AI-PROXY-OPEN ★ High High AI Open AI proxy (denial of wallet)
FB-RULES-OPEN High–Critical High Firebase Firebase security rules open to everyone
SB-BUCKET-PUBLIC Medium Medium Supabase Public storage bucket holding user content
SB-NO-SCHEMA Info High Supabase Supabase is used, but the schema is not in the repository
AUTH-CONFIG Low High Supabase Anonymous sign-in on, or email confirmation off
ENV-COMMITTED Info–Critical High Secrets .env file committed to the repository
SECRET-KNOWN Critical High Secrets API key with a known prefix in the code
DEPS-OSV Per advisory High Dependencies Dependency with a known vulnerability (--deps)

delstrike-check rules lists them, and delstrike-check explain <RULE_ID> prints the full explanation and a fix ready to paste, offline.

Usage

delstrike-check [PATH] [options]
delstrike-check explain <RULE_ID>
delstrike-check rules
Option What it does
--format text|json|sarif|md Output format. Default: text in a terminal, json otherwise, or from the --output extension
--output FILE, -o Write the report to a file
--all Include medium and low confidence findings
--fail-on critical|high|medium|low|info|none Exit with 1 if a finding is at or above this severity (default none)
--deps Check lockfiles against osv.dev (the only option that uses the network)
--exclude GLOB Extra path to skip, repeatable. node_modules, dist, .next, build, vendor, coverage and *.min.js are always skipped, and so is anything in .gitignore
--max-file-size SIZE Skip larger files and say so (default 1MB)
--quiet, -q Omit the closing "what this tool can't see" lines
--no-color No colours (NO_COLOR is honoured too)
--debug Show tracebacks

Exit codes: 0 nothing at or above --fail-on · 1 findings at or above --fail-on · 2 usage error · 3 internal error.

Suppressions

Every suppression needs a reason. Without one it isn't applied, and the scan tells you.

.delstrike.toml at the root of the scanned folder:

exclude = ["scripts/**"]

[[ignore]]
rule = "SB-POLICY-OPEN"
reason = "Board data is shared by design"

[[ignore]]
rule = "SB-EDGE-JWT-OFF"
path = "supabase/config.toml"
reason = "stripe-webhook verifies the signature"

Inline, on the line or the line above:

// delstrike-ignore SB-EDGE-NOAUTH: called only by pg_cron with a shared secret
-- delstrike-ignore SB-RLS-OFF: lookup table without user data

A .delstrike.toml with a syntax error never hides findings: the scan warns and runs without suppressions.

Output formats

  • text for the terminal.
  • json is a stable contract (schema_version). Each finding has a fingerprint (rule + file + normalized snippet, without line numbers), so you can track it across commits even when lines move.
  • sarif 2.1.0 for GitHub code scanning: findings appear in the repository's Security tab.
  • md to paste in an issue or a PR, or to send to your agency.

In CI: GitHub Action

name: security
on: [push, pull_request]
permissions:
  contents: read
  security-events: write
jobs:
  delstrike-check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: delstrike/delstrike-check@v0.1.0
        with:
          fail-on: high      # critical, high, medium, low, info or none
          # all: "true"      # also findings to verify
          # deps: "true"     # also osv.dev

The code is scanned inside your own CI runner and never sent to us. The job summary shows the Markdown report.

pre-commit

repos:
  - repo: https://github.com/delstrike/delstrike-check
    rev: v0.1.0
    hooks:
      - id: delstrike-check

As a library

from delstrike_check import Options, scan

report = scan("path/to/app", Options(include_all=True))
for f in report.findings:
    print(f.rule_id, f.severity, f.file, f.lines, f.fingerprint())

Use it on your own code

delstrike-check is a read-only linter. Run it on code you own or are authorised to review. If you find an issue in someone else's open-source project, report it privately through their security policy.

Need a human?

A tool finds patterns. It can't tell whether a user can read another user's invoices through your business logic, or whether that open policy is on purpose. CHECKPOINT is a manual review of your app, with every finding verified by hand and fixes ready to paste: delstrike.com/checkpoint.

Development

python -m pip install -e ".[dev]"
python -m pytest
python -m delstrike_check.docs --readme README.md      # refresh the rules table
python -m delstrike_check.docs --out ../site/rules     # rules.json + one page per rule for the website

Zero runtime dependencies, Python 3.11 or later. Each rule has positive and negative fixtures in tests/.

Licence

Apache-2.0. See NOTICE. Security reports: SECURITY.md.

Metadata

Release files for delstrike-check 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for delstrike-check 0.1.0
File Size Uploaded Provenance Actions
delstrike_check-0.1.0.tar.gz 64.1 kB With provenance Details for delstrike_check-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for delstrike-check 0.1.0
File Interpreter ABI Platform Actions
delstrike_check-0.1.0-py3-none-any.whl Python 3 none any Details for delstrike_check-0.1.0-py3-none-any.whl

Total release size: 128.9 kB

Release files / delstrike_check-0.1.0.tar.gz

Download URL delstrike_check-0.1.0.tar.gz
Size 64.1 kB
Tags Source
SHA-256 checksum
How to use checksums
65876a0087a7f54311eb47bf5ba429d064bc965b4237fe49835c671372039cb1
BLAKE2b-256 checksum
How to use checksums
35ec549d3f7d0b1dccc42d97500b6d5e39e015dc500b27fa1d74350ae0501d2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / delstrike_check-0.1.0-py3-none-any.whl

Download URL delstrike_check-0.1.0-py3-none-any.whl
Size 64.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8dd1adf1e04cf3c1a0cad4d1de0b10bb86df40a99070ca0603cddfcf611b5ca6
BLAKE2b-256 checksum
How to use checksums
ebadf7a9306c0f33f6600294544de74487944a17bf56eb8bb7c173ac572a0074
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for delstrike-check 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for delstrike_check-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page