https://github.com/Perufitlife/nhost-security-skill
Open-source Hasura/Nhost security auditor: detects anonymous role with open SELECT, user role missing row filter, public introspection. Active anonymous GraphQL probe confirms each leak.
https://github.com/Perufitlife/nhost-security-skill
audit auditor cli devsecops graphql hasura leak nhost nodejs penetration-testing scanner security typescript vulnerability
Last synced: 24 days ago
JSON representation
Open-source Hasura/Nhost security auditor: detects anonymous role with open SELECT, user role missing row filter, public introspection. Active anonymous GraphQL probe confirms each leak.
- Host: GitHub
- URL: https://github.com/Perufitlife/nhost-security-skill
- Owner: Perufitlife
- License: mit
- Created: 2026-05-09T11:48:37.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2026-05-09T14:33:29.000Z (2 months ago)
- Last Synced: 2026-05-09T15:44:25.164Z (2 months ago)
- Topics: audit, auditor, cli, devsecops, graphql, hasura, leak, nhost, nodejs, penetration-testing, scanner, security, typescript, vulnerability
- Language: JavaScript
- Homepage: https://perufitlife.github.io/supabase-security-skill/
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nhost / Hasura Security Auditor
> Audit any Hasura instance (or Nhost project) for permissive role permissions, missing row-level scoping, and public GraphQL leaks. Active probe confirms each leak by sending an anonymous GraphQL query and showing what comes back.
> ▶ **Run it without installing anything →** [apify.com/renzomacar/nhost-security-auditor](https://apify.com/renzomacar/nhost-security-auditor) (paste Hasura endpoint + admin secret, get HTML report)
> ⚡ Want me to run it for you and send back a written report? **$99, 24h delivery →** https://perufitlife.github.io/supabase-security-skill/ (one landing covers all five — Supabase, PocketBase, Appwrite, Hasura, Firebase)
> 🔁 **Want this running on a cron?** [RLS Monitor](https://rls-monitor.vercel.app/) does weekly diff-based scans + email alerts when new findings appear — $29/mo, your keys never leave your CI.
>
> 📦 **Need all 5 BaaS stacks at once?** The [BaaS Security Pack](https://perufitlife.github.io/supabase-security-skill/pack.html) bundles every scanner + sample reports + fix-SQL libraries — one $99 download.
> 🪞 **Sister tool**: [aitells](https://aitells.vercel.app/) detects + rewrites AI fingerprints in your text (em-dashes, "delve", parallel bullets). Free detector + $19 lifetime rewriter at [/rewrite](https://aitells.vercel.app/rewrite).
[](https://www.npmjs.com/package/nhost-security)  
> **Sister tools** for other BaaS platforms (same `--discover` flag, all MIT):
> [supabase-security](https://www.npmjs.com/package/supabase-security) · [pocketbase-security](https://www.npmjs.com/package/pocketbase-security) · [appwrite-security](https://www.npmjs.com/package/appwrite-security) · [firebase-security](https://www.npmjs.com/package/firebase-security)
## Why this exists
Hasura's permission model is powerful but easy to leave too open. The patterns I see most often:
- **`anonymous` role with open SELECT permission** — any unauthenticated request can query the table. Often a leftover from local dev.
- **`user` role with empty filter `{}`** — any signed-up user can read/update/delete every row, ignoring ownership. Should usually be `{ user_id: { _eq: "X-Hasura-User-Id" } }`.
- **SELECT permission with all columns** — exposes sensitive columns (password_hash, internal_notes) the role doesn't actually need.
- **Public schema introspection** — anyone can map your entire data model + permission structure without auth.
## Install + run
```bash
HASURA_ENDPOINT=https://my.hasura.app \
HASURA_ADMIN_SECRET=$ADMIN_SECRET \
npx nhost-security --html report.html
```
For Nhost projects the endpoint is `https://.hasura..nhost.run`.
## What it checks
| # | Check | Severity |
|---|---|---|
| 1 | `anonymous` role has open SELECT permission | **CRITICAL** |
| 2 | `anonymous` role has INSERT/UPDATE/DELETE permission | **CRITICAL** |
| 3 | `user` role has SELECT/UPDATE/DELETE without row-level filter | HIGH |
| 4 | Permission exposes all columns (no allowlist) | MEDIUM |
| 5 | GraphQL introspection enabled for anonymous | MEDIUM |
## Active probe
For every suspect anonymous SELECT permission, the auditor sends an anonymous GraphQL query (`{ (limit: 1) { __typename } }`) and reports `confirmed: true` if rows come back. For introspection, sends `{ __schema { queryType { name } } }` and reports if anonymous can read the schema.
`--no-probe` disables the live fetch.
## License + source
MIT. Open source: https://github.com/Perufitlife/nhost-security-skill
For Supabase, see https://github.com/Perufitlife/supabase-security-skill
For PocketBase, see https://github.com/Perufitlife/pocketbase-security-skill
For Appwrite, see https://github.com/Perufitlife/appwrite-security-skill
## Want it done for you?
Two productized services:
- [**Vibe-code Security Review** — $199 / 48h](https://buy.stripe.com/bJe00jgik4EqdWV2iScAo0n) — I review your AI-generated code (Cursor / Claude / v0 / Bolt) and ship a PDF with fixes ranked by exploitability.
- [**Sandbox-as-a-Service** — $499 / 48h](https://buy.stripe.com/aFa7sLc243Amf0Z5v4cAo0l) — custom partner integration sandbox built for your API.
## Integration pattern reference
See [`rotatepilot-skyx-sandbox`](https://github.com/Perufitlife/rotatepilot-skyx-sandbox) for a live demo of how a partner consumes one of our public REST APIs in a single static page — built 12-may-2026 in response to an aviation-platform partnership inbound. Same JSON-contract / CORS / edge-served approach we use for `nhost-security` integrations.
## Sister AI text tools
If your team writes outreach, PR descriptions, or social posts with AI, the [aitells](https://aitells.vercel.app) ecosystem catches the fingerprints before they ship:
- [`@perufitlife/aitells-mcp`](https://www.npmjs.com/package/@perufitlife/aitells-mcp) — MCP server for Claude Code / Cursor. `detect_ai_tells` + `humanize_text` as native tools.
- [`Perufitlife/aitells-action`](https://github.com/Perufitlife/aitells-action) — GitHub Action that scans PR titles/bodies/commits for AI patterns. Posts friendly summary comment.
- [aitells.vercel.app](https://aitells.vercel.app) — free detector + $19 lifetime humanizer (first 100 buyers)
---
📚 Part of [**Awesome Backend Security Auditors**](https://github.com/Perufitlife/awesome-backend-security) — the full collection of keyless active-probe auditors.