supabase-pentest
Orchestrate a complete Supabase security audit with guided step-by-step execution and ownership confirmation.
What this skill does
# Supabase Security Audit Orchestrator > ๐ต **RECOMMENDED: USE PLAN MODE FOR COMPLEX AUDITS** > > When your environment supports **Plan Mode**, it is strongly recommended to activate it before starting the audit: > - Use the `EnterPlanMode` tool at the start of the orchestration > - Plan Mode enables better organization of multi-phase audits > - It allows the user to validate the approach before execution > - If Plan Mode is not available, proceed directly with execution > > **Plan Mode provides better traceability and user control over the audit process.** > ๐ด **CRITICAL: PROGRESSIVE FILE UPDATES REQUIRED** > > You MUST write to context files **AS YOU GO**, not just at the end. > - Write to `.sb-pentest-context.json` **IMMEDIATELY after each discovery** > - Log to `.sb-pentest-audit.log` **BEFORE and AFTER each action** > - **DO NOT** wait until a phase or skill completes to update files > - If the audit crashes or is interrupted, all prior findings must already be saved > > **This is not optional. Failure to write progressively is a critical error.** This skill orchestrates a complete security audit of a Supabase-based application, guiding you through each phase with validation checkpoints. ## โ ๏ธ MANDATORY: Progressive Context File Management **BEFORE starting any audit, you MUST:** 1. Create `.sb-pentest-context.json` if it doesn't exist 2. Create `.sb-pentest-audit.log` if it doesn't exist 3. Create `.sb-pentest-evidence/` directory structure 4. Initialize context with target URL and timestamp **DURING execution - WRITE AS YOU GO:** 1. **BEFORE each action** โ Log to `.sb-pentest-audit.log` 2. **AFTER each discovery** โ IMMEDIATELY update `.sb-pentest-context.json` 3. **AFTER each test** โ Save evidence to `.sb-pentest-evidence/` 4. **DO NOT batch writes** โ Each finding must be saved as it's discovered 5. **Verify after each skill** โ Check that ALL files were updated before proceeding ## ๐ SYSTEMATIC DOCUMENTATION REQUIREMENTS > **All tracking files MUST be systematically maintained throughout the entire audit.** ### Required Files (MANDATORY) | File | Purpose | Update Frequency | |------|---------|------------------| | `.sb-pentest-context.json` | Centralized state and findings | After EVERY discovery | | `.sb-pentest-audit.log` | Chronological action log | BEFORE and AFTER every action | | `.sb-pentest-evidence/timeline.md` | Timestamped findings narrative | After EVERY significant finding | | `.sb-pentest-evidence/curl-commands.sh` | Reproducible test commands | After EVERY curl/HTTP request | ### Verification Checklist (Before Each Phase Transition) Before moving to the next phase, the orchestrator MUST verify: - [ ] `.sb-pentest-context.json` contains all discoveries from current phase - [ ] `.sb-pentest-audit.log` has entries for all actions performed - [ ] Evidence files exist in `.sb-pentest-evidence/XX-phase-name/` - [ ] `timeline.md` is updated with any P0/P1/P2 findings - [ ] `curl-commands.sh` contains all HTTP requests made **If any file is missing or incomplete, DO NOT proceed to the next phase.** ### Progressive Write Pattern Each skill MUST follow this pattern: ``` 1. [LOG] Write START entry to audit.log 2. [CONTEXT] Update context.json with "phase_in_progress" 3. [ACTION] Perform the test/scan 4. [EVIDENCE] Save evidence file IMMEDIATELY 5. [CURL] Append curl command to curl-commands.sh 6. [TIMELINE] Update timeline.md if significant finding 7. [CONTEXT] Update context.json with results 8. [LOG] Write COMPLETE entry to audit.log ``` ### Failure Recovery If a skill or phase fails: - All files updated up to the failure point are preserved - The audit can be resumed from the last successful checkpoint - Context file indicates exactly where the audit stopped โ ๏ธ **WHY THIS MATTERS:** - If the audit is interrupted, crashes, or times out, findings up to that point are preserved - Long-running skills must save progress incrementally, not just at the end - Users can monitor progress in real-time by watching the log file **FAILURE TO UPDATE CONTEXT FILES PROGRESSIVELY IS NOT ACCEPTABLE.** Each individual skill is responsible for updating these files **AS IT WORKS**, not just at completion. If a skill does not update the context progressively, the orchestrator must do it immediately after each discovery. ## When to Use This Skill - Running a complete security assessment on a Supabase application - Performing internal security self-assessment before production - Auditing an application after security concerns are raised - Conducting periodic security reviews ## Prerequisites - A public URL of the application to audit - **Authorization to test the target application** (you must own it or have explicit permission) - Internet access to reach the target URL ## Important Security Notice ``` โ ๏ธ AUTHORIZATION REQUIRED Before proceeding, you must confirm: 1. I own this application, OR 2. I have explicit written authorization to perform security testing Unauthorized security testing may violate laws and terms of service. Type "I confirm I am authorized to test this application" to proceed. ``` ## Audit Phases The orchestrator runs these phases sequentially with confirmation between each. > ๐ **REMINDER: After EVERY phase, verify that:** > - `.sb-pentest-context.json` is updated with phase results > - `.sb-pentest-audit.log` has START and COMPLETE entries > - Evidence files are saved to `.sb-pentest-evidence/XX-phase/` > - `timeline.md` reflects any significant findings > - `curl-commands.sh` contains all HTTP requests made ### Phase 0: Initialization Sets up the audit environment and evidence collection. **Pre-Phase Action (if supported):** - **Use `EnterPlanMode`** if the environment supports it - This allows the user to validate the audit approach before execution - If Plan Mode is not available, proceed directly **Actions:** - Create `.sb-pentest-context.json` - Create `.sb-pentest-audit.log` - Create `.sb-pentest-evidence/` directory structure - Initialize `curl-commands.sh` with header - Initialize `timeline.md` with audit start - Log initialization to `.sb-pentest-audit.log` **Skills invoked:** - `supabase-evidence` (initialization) **Verification before proceeding:** - [ ] All 4 tracking files exist - [ ] Evidence directory structure is complete - [ ] User authorization confirmed **Output:** Ready to collect evidence with full directory structure ### Phase 1: Detection Determines if the target uses Supabase and extracts basic information. **Skills invoked:** - `supabase-detect` **Output:** Confirmation of Supabase usage, project URL identified **Evidence saved to:** `.sb-pentest-evidence/01-detection/` ### Phase 2: Key Extraction Scans client-side code for exposed credentials. **Skills invoked:** - `supabase-extract-url` - `supabase-extract-anon-key` - `supabase-extract-service-key` - `supabase-extract-jwt` - `supabase-extract-db-string` **Output:** List of all discovered credentials with severity assessment **Evidence saved to:** `.sb-pentest-evidence/02-extraction/` ### Phase 3: API Audit Tests PostgREST API exposure and RLS policies. **Skills invoked:** - `supabase-audit-tables-list` - `supabase-audit-tables-read` - `supabase-audit-rls` - `supabase-audit-rpc` **Output:** Tables accessible, data exposure assessment, RLS gaps **Evidence saved to:** `.sb-pentest-evidence/03-api-audit/` ### Phase 4: Storage Audit Checks storage bucket configurations and access. **Skills invoked:** - `supabase-audit-buckets-list` - `supabase-audit-buckets-read` - `supabase-audit-buckets-public` **Output:** Bucket inventory, public exposure, accessible files **Evidence saved to:** `.sb-pentest-evidence/04-storage-audit/` ### Phase 5: Auth Audit Analyzes authentication configuration and potential weaknesses. **Skills invoked:** - `supabase-audit-auth-config` - `supabase-audit-auth-signup` - `supabase-audit-auth-users` - `supabase-audit-authenticated` โ **NEW: Creates test user (with consent) to d
Related in Security
mac-ops
IncludedComprehensive macOS workstation operations โ diagnose kernel panics, identify failing drives, audit launchd startup items, decode wake reasons, triage TCC permission denials, manage APFS snapshots, recover from no-boot. Use for: Mac is slow, slow bootup, won't boot, kernel panic, kernel_task hot, mds_stores CPU, photoanalysisd, cloudd, login loop, gray screen, sleep wake failure, drive failing, IO errors, APFS snapshots eating space, Time Machine local snapshots, Spotlight indexing, launchd, LaunchAgent, LaunchDaemon, login items, TCC permissions, Full Disk Access, Screen Recording denied, Gatekeeper, quarantine, com.apple.quarantine, app is damaged, helper tool, /Library/PrivilegedHelperTools, pmset, wake reasons, dark wake, sysdiagnose, panic.ips, DiagnosticReports, configuration profile, MDM profile, remote diagnostics over SSH.
a11y-audit
IncludedRun accessibility audits on web projects combining automated scanning (axe-core, Lighthouse) with WCAG 2.1 AA compliance mapping, manual check guidance, and structured reporting. Output is configurable: markdown report only, markdown plus machine-readable JSON, or markdown plus issue tracker integration. Use this skill whenever the user mentions "accessibility audit", "a11y audit", "WCAG audit", "accessibility check", "compliance scan", or asks to check a web project for accessibility issues. Also trigger when the user wants to verify WCAG conformance or map findings to a specific standard (CAN-ASC-6.2, EN 301 549, ADA/AODA).
erpclaw
IncludedAI-native ERP system with self-extending OS. Full accounting, invoicing, inventory, purchasing, tax, billing, HR, payroll, advanced accounting (ASC 606/842, intercompany, consolidation), and financial reporting. 413 actions across 14 domains, 43 expansion modules. Constitutional guardrails, adversarial audit, schema migration. Double-entry GL, immutable audit trail, US GAAP.
assess
IncludedAssesses and rates quality 0-10 across multiple dimensions (correctness, maintainability, security, performance, testability, simplicity) with pros/cons analysis. Compares against project conventions and prior decisions from memory. Produces structured evaluation reports with actionable improvement suggestions. Use when evaluating code, designs, architectures, or comparing alternative approaches.
spring-boot-security-jwt
IncludedProvides JWT authentication and authorization patterns for Spring Boot 3.5.x covering token generation with JJWT, Bearer/cookie authentication, database/OAuth2 integration, and RBAC/permission-based access control using Spring Security 6.x. Use when implementing authentication or authorization in Spring Boot applications.
code-hardcode-audit
IncludedDetect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning.