{"id":50204978,"url":"https://github.com/Perufitlife/pocketbase-security-skill","last_synced_at":"2026-06-11T16:00:52.270Z","repository":{"id":356732896,"uuid":"1233758764","full_name":"Perufitlife/pocketbase-security-skill","owner":"Perufitlife","description":"Open-source PocketBase security auditor: detects empty rules, the @request.auth.id != trap, true literals. Active probe confirms leaks live.","archived":false,"fork":false,"pushed_at":"2026-05-09T14:33:29.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-09T14:39:24.959Z","etag":null,"topics":["audit","auditor","cli","devsecops","leak","nodejs","pb","penetration-testing","pocketbase","scanner","security","sqlite","typescript","vulnerability"],"latest_commit_sha":null,"homepage":"https://perufitlife.github.io/supabase-security-skill/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Perufitlife.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T10:17:58.000Z","updated_at":"2026-05-09T14:33:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Perufitlife/pocketbase-security-skill","commit_stats":null,"previous_names":["perufitlife/pocketbase-security-skill"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Perufitlife/pocketbase-security-skill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fpocketbase-security-skill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fpocketbase-security-skill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fpocketbase-security-skill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fpocketbase-security-skill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Perufitlife","download_url":"https://codeload.github.com/Perufitlife/pocketbase-security-skill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perufitlife%2Fpocketbase-security-skill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34206492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit","auditor","cli","devsecops","leak","nodejs","pb","penetration-testing","pocketbase","scanner","security","sqlite","typescript","vulnerability"],"created_at":"2026-05-26T01:00:28.056Z","updated_at":"2026-06-11T16:00:52.264Z","avatar_url":"https://github.com/Perufitlife.png","language":"JavaScript","funding_links":[],"categories":["Other tools"],"sub_categories":[],"readme":"# PocketBase Security Auditor\n\n\u003e Audit any PocketBase instance for over-permissive API rules. Get a shareable HTML report with a fix snippet on every finding. **The active probe fetches data anonymously to PROVE leaks live — not just infer them.**\n\n\u003e ▶ **Run it without installing anything →** [apify.com/renzomacar/pocketbase-security-auditor](https://apify.com/renzomacar/pocketbase-security-auditor) (paste PocketBase URL + admin email/password, get HTML report)\n\n\u003e ⚡ 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)\n\n\u003e 🔁 **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.\n\u003e\n\u003e 📦 **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.\n\n\u003e 🪞 **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).\n\n[![npm](https://img.shields.io/npm/v/pocketbase-security?color=red)](https://www.npmjs.com/package/pocketbase-security) ![license](https://img.shields.io/badge/license-MIT-green) ![node](https://img.shields.io/badge/node-%3E%3D18-blue)\n\n\u003e **Sister tools** for other BaaS platforms (same `--discover` flag, all MIT):\n\u003e [supabase-security](https://www.npmjs.com/package/supabase-security) · [appwrite-security](https://www.npmjs.com/package/appwrite-security) · [firebase-security](https://www.npmjs.com/package/firebase-security) · [nhost-security](https://www.npmjs.com/package/nhost-security)\n\n## Why this exists\n\nPocketBase API rules are easy to write and easy to leave too open. Three patterns I see over and over:\n\n- **Empty rule** — leaving `listRule` blank means the collection is fully public. Anyone can list every record without auth.\n- **`@request.auth.id != \"\"`** — looks restrictive but lets ANY logged-in user (including a self-signed-up anonymous one) read or write the entire collection.\n- **`true` literal** — leftover from local dev, evaluates to \"always allow.\"\n\nThis auditor surfaces all three across every collection in one command.\n\n## Install + run\n\n```bash\nnpx pocketbase-security \\\n  --url https://my.pocketbase.io \\\n  --email admin@me.io \\\n  --password $PB_ADMIN_PASS \\\n  --html report.html\n```\n\nOr via env vars:\n\n```bash\nPOCKETBASE_URL=https://my.pb.io \\\nPOCKETBASE_ADMIN_EMAIL=admin@me.io \\\nPOCKETBASE_ADMIN_PASSWORD=$PB_ADMIN_PASS \\\nnpx pocketbase-security --html report.html\n```\n\n## What it checks\n\n| # | Check | Severity |\n|---|---|---|\n| 1 | API rule is empty (collection is fully public for that op) | **CRITICAL** |\n| 2 | API rule is `@request.auth.id != \"\"` (any logged-in user passes) | HIGH |\n| 3 | API rule contains `true` literal (bypasses all checks) | HIGH |\n| 4 | Auth collection has open signup + lax create rule (combo) | HIGH |\n| 5 | OAuth2 provider enabled without redirect URL whitelist | MEDIUM |\n| 6 | Email auth without verification requirement | MEDIUM |\n| 7 | S3 storage with debug-level logging risk | LOW |\n\nEvery finding ships with a fix snippet you paste back into the PocketBase admin UI.\n\n## Active probe\n\nDefault: ON. After identifying a suspect collection (empty rule, permissive auth, dangerous literal), the auditor sends an **anonymous GET** to `/api/collections/{name}/records?perPage=1`. If the request returns data, the finding is marked `confirmed: true` with a sample showing the row count, columns visible, and bytes leaked.\n\nPass `--no-probe` to skip the live fetch (passive mode only, infers from rule metadata).\n\n## Output\n\n- **HTML report** — self-contained (~25KB Tailwind + Chart.js via CDN). Top banner shows X of N suspected leaks confirmed live. Every finding card has a red \"CONFIRMED LEAK\" block when the probe succeeded.\n- **JSON** — full structured findings (default stdout output if no `--html` flag).\n\n## How to get an admin password\n\nYou created one when you initialized PocketBase. If you forgot, reset it via the PB CLI on the host machine: `./pocketbase admin update \u003cemail\u003e \u003cnew-password\u003e`.\n\nThe password is used only for this run's admin auth call (collections endpoint requires admin token). The auditor never persists it.\n\n\n## Want it done for you?\n\nTwo productized services:\n\n- [**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.\n- [**Sandbox-as-a-Service** — $499 / 48h](https://buy.stripe.com/aFa7sLc243Amf0Z5v4cAo0l) — custom partner integration sandbox built for your API.\n\n## Integration pattern reference\n\nSee [`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 `pocketbase-security` integrations.\n\n## Sister AI text tools\n\nIf your team writes outreach, PR descriptions, or social posts with AI, the [aitells](https://aitells.vercel.app) ecosystem catches the fingerprints before they ship:\n\n- [`@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.\n- [`Perufitlife/aitells-action`](https://github.com/Perufitlife/aitells-action) — GitHub Action that scans PR titles/bodies/commits for AI patterns. Posts friendly summary comment.\n- [aitells.vercel.app](https://aitells.vercel.app) — free detector + $19 lifetime humanizer (first 100 buyers)\n\n## License\n\nMIT. Free, open source. Built by [@Perufitlife](https://github.com/Perufitlife).\n\nFor Supabase, see the sibling tool: https://github.com/Perufitlife/supabase-security-skill\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerufitlife%2Fpocketbase-security-skill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPerufitlife%2Fpocketbase-security-skill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPerufitlife%2Fpocketbase-security-skill/lists"}