supabase-scan 0.0.0-stage → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +36 -2
  3. package/dist/cli.js +1483 -0
  4. package/package.json +41 -3
package/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, Le Trung Son
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -1,3 +1,37 @@
1
- # Temporary Holding Version
1
+ # supabase-scan
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Scan a Supabase project you own for exposed keys, missing RLS, and data
4
+ exposure, from the command line.
5
+
6
+ > Authorized self-audit only. Scan projects you own or are explicitly
7
+ > authorized to test. Not affiliated with or endorsed by Supabase Inc.
8
+
9
+ ## Usage
10
+
11
+ Requires Node 22+. The key comes from the `SUPABASE_SCAN_KEY` env var or stdin,
12
+ never from the command line.
13
+
14
+ ```bash
15
+ SUPABASE_SCAN_KEY="sb_publishable_..." npx supabase-scan https://xxxx.supabase.co
16
+ # or
17
+ echo "sb_publishable_..." | npx supabase-scan https://xxxx.supabase.co --json
18
+ ```
19
+
20
+ Or install it globally:
21
+
22
+ ```bash
23
+ npm i -g supabase-scan
24
+ SUPABASE_SCAN_KEY="..." supabase-scan https://xxxx.supabase.co --tables orders,invoices
25
+ ```
26
+
27
+ Options: `--json`, `--no-color`, `--timeout <ms>` (default 15000),
28
+ `--tables <a,b>`, `--version`. An unknown option is an error, so a mistyped
29
+ flag is never read as the key.
30
+
31
+ Exit codes: `2` if any CRITICAL/HIGH finding, `1` if MEDIUM, `0` otherwise.
32
+
33
+ ## Links
34
+
35
+ - Checks and security model: [GitHub](https://github.com/sown-oss/supabase-security-scanner#what-it-checks)
36
+ - Scan in the browser: [sown-oss.github.io/supabase-security-scanner](https://sown-oss.github.io/supabase-security-scanner/)
37
+ - MCP server: [`supabase-scan-mcp`](https://www.npmjs.com/package/supabase-scan-mcp)