中文译文(机器翻译 · 原文见下方)

2026年11月,德国安全公司Crissy Field(汉堡)与《德国商报》合作,发表了关于人工智能构建应用程序的研究。这些数字是我构建这个工具的原因,所以它们是第一个,并附有注意事项。 研究人员扫描了Common Crawl中发现的159041个可爱的项目(2025年12月至2026年9月创建的应用程序)。其中,34545个使用Supabase作为后端。24664个网站在页面加载后立即将数据库记录发送到浏览器,无需任何登录或交互。通过使用应用程序本身提供的相同公钥进行进一步的只读请求,研究人员在7403个网站(30%)的10560个表中发现了包含电子邮件地址的记录。最坏的情况是,每个应用程序都是单独的:一家服务提供商暴露了1000多条身份记录(护照号码、到期日期、国籍);一个生活方式论坛曝光了20多万条私人聊天信息和8万条个人资料;一款应用暴露了约28万封客户电子邮件。 诚实地阅读这些数字,因为研究人员对限制是明确的: 八个月前,CVE-2025-48757(2025年3月,CVSS 9.3)已经披露了同一类漏洞:研究人员扫描了1645个Lovable展示网站,发现170个网站的表格可供匿名读取。在那之后,Lovable增加了一个安全扫描仪和一个人工智能安全审查员,并在11月再次大规模曝光。教训不是“运行一次扫描仪”。它是“在每次部署时证明匿名请求返回零行”。 我制作了一个小工具,正是这样做的。它被称为维贝莱克,它是一个零依赖的TypeScript CLI。麻省理工学院许可。它仅从部署的应用程序URL开始,在应用程序已经发布的JavaScript中查找Supabase项目URL和anon键,然后以匿名访问者的身份探测每个表和存储桶。一个命令,一个判断:CLEAN、LEAK或REVIEW,带有JSON报告和基线差异,因此再次打开的封闭表会失败CI。 当人工智能工具在Supabase上构建应用程序时,它会在前端JavaScript中提供一个公钥。这是设计上的:浏览器需要密钥来与数据库通信。站在陌生人和你的桌子之间的唯一一件事是行级安全。如果RLS关闭,或者策略显示“USING(true)”,则anon键会读取整个表,应用程序会在页面加载时将行有益地发送给任何访问者。 没有人检查这个,因为应用程序可以工作。登录页面看起来不错,仪表板加载,数据为正确的用户提供。从应用程序内部看不到故障。只有当你发出与应用程序相同的请求时,你才能看到它,而无需登录,并计算返回的行数。 维贝莱克就是这么做的。它以任何访问者的方式获取应用程序,从附带的JavaScript中提取Supabase URL和anon密钥(每个浏览器下载的代码都是一样的),通过PostgREST OpenAPI文档枚举表,并使用限制在一行的匿名GET探测每个表。它仅存储列名和0/1行可见标志。它从不存储行值。它从不写任何东西:只有GET和HEAD,没有POST,没有RPC调用,没有任何形式的写入。 五个命令:

vibeleak扫描<app-url>[--i-own-tis-app][--out-report.json]
vibeleak探测--url<projecturl>--匿名键<key>[--表a b]
vibeleak检查[--report-report.json][--baseline baseline.json]
vibeleak diff--基线.json[--report-report.json]
vibeleak初始化[--dir.]

scan:获取应用程序URL,收集同源JavaScript(最多10个文件,每个文件2 MB),提取Supabase URL和anon密钥,然后进行探测。如果在附带的捆绑包中发现了“service_role”JWT或“sb_secret_”键,则这是一个关键的查找和探测停止:前端中的管理键使表探测变得毫无意义。probe:具有显式项目URL和匿名密钥的同一引擎,适用于没有公共前端或密钥已知的应用程序。检查:阅读一份报告,将其与基线和vibeleak.json列表进行比较。退出0清除/1泄漏/2输入错误/3复查。一个在基线时干净但现在泄漏的表是一种回归,失败了。diff:将当前报告与基线进行比较:新的泄漏、回归(关闭然后重新打开)和固定的表,每行一行。init:编写一个示例publicTables allolist,failOn)和一个空基线。它从不将密钥写入文件:密钥来自标志或“VIBELEAK_ANON_key”,并且从不记录。 判决规则,按顺序评估: 密码”、“机密”、“ssn”、“护照”、“令牌”、“api_key”、仅名称匹配、从不读取值)-中等,审查。--表-低,复习。 仅扫描您拥有或授权进行书面测试的应用程序。“扫描”和“探测”需要“i-own-tis-app”(或“VIBELEAK_i_own_this_app=1”)。没有它,命令退出2并不发送请求。只接受匿名密钥:在任何请求之前都会拒绝“service_role”或“authenticated”JWT,并且“sb_secret_”密钥永远不会发送到任何地方。 典型的CI流程:

振动扫描https://my-app.example.com--i-own-tis-app-out report.json
vibeleak检查--报告report.json--基线vibeleak.baseline.json--失败
vibeleak diff--基线vibeleak.baseline.json--报告json

上面的GIF是一个针对合成本地设备的真实终端会话:一个假的Lovable风格的应用程序和127.0.0.1上的假PostgREST服务器。没有真正的应用程序,也没有真正的Supabase项目被探索。anon键是一个自签名的合成JWT,行值是假的。 泄漏夹具扫描泄漏:

$vibeleak扫描<app-url>--i-own-tis-app-out report-before.json
扫描http://127.0.0.1:37965 ...
项目:http://127.0.0.1:37965(在附带的JavaScript中找到后缀URL)
anon键:已找到(角色anon)
表:3个通过OpenAPI枚举
订单:0行可见
配置文件:1行可见,列:id、email、passport_no
public_posts:1行可见,列:id、标题、正文(分配:public by
英文原文

In November 2026, German security firm Crissy Field (Hamburg), working with the newspaper Handelsblatt, published research on AI-built apps. The numbers are the reason I built this tool, so here they are first, with the caveats attached.

The researchers scanned 159,041 Lovable projects found in Common Crawl (apps created December 2025 to September 2026). Of those, 34,545 used Supabase as their backend. 24,664 websites sent database records to the browser as soon as the page loaded, without any login or interaction. With further read-only requests using the same public key the app itself ships, the researchers found records containing email addresses in 10,560 tables across 7,403 sites (30%). Worst cases, each a separate app: one service provider exposed more than 1,000 identity records (passport numbers, expiry dates, nationalities); one lifestyle forum exposed more than 200,000 private chat messages and 80,000 profiles; one app exposed about 280,000 customer emails.

Read those numbers honestly, because the researchers are explicit about the limits:

The same class of bug had already been disclosed eight months earlier as CVE-2025-48757 (March 2025, CVSS 9.3): researchers scanned 1,645 Lovable showcase sites and found 170 with tables open to anonymous reads. Lovable added a Security Scanner and an AI Security Reviewer after that, and the exposure repeated at a larger scale in November. The lesson is not "run a scanner once". It is "prove, on every deploy, that an anonymous request returns zero rows".

I built a small tool that does exactly that. It is called vibeleak, and it is a zero-dependency TypeScript CLI. MIT licensed. It starts from only the deployed app URL, finds the Supabase project URL and anon key in the JavaScript the app already ships, then probes each table and storage bucket as an anonymous visitor. One command, one verdict: CLEAN, LEAK, or REVIEW, with a JSON report and a baseline diff so a closed table that opens again fails CI.

When an AI tool builds an app on Supabase, it ships a public anon key in the frontend JavaScript. That is by design: the browser needs the key to talk to the database. The only thing standing between a stranger and your tables is Row Level Security. If RLS is off, or a policy says USING (true), the anon key reads the whole table, and the app helpfully sends the rows to any visitor on page load.

Nobody checks this because the app works. The login page looks right, the dashboard loads, the data is there for the right user. The failure is invisible from inside the app. You only see it when you make the same request the app makes, without logging in, and count the rows that come back.

That is what vibeleak does. It fetches the app the way any visitor does, extracts the Supabase URL and anon key from the shipped JavaScript (the same code every browser downloads), enumerates the tables through the PostgREST OpenAPI document, and probes each one with an anonymous GET limited to one row. It stores column names and a 0/1 rows-visible flag only. It never stores row values. It never writes anything: GET and HEAD only, no POST, no RPC calls, no writes of any kind.

Five commands:

vibeleak scan <app-url> [--i-own-this-app] [--out report.json]
vibeleak probe --url <project-url> --anon-key <key> [--tables a b]
vibeleak check [--report report.json] [--baseline baseline.json]
vibeleak diff --baseline baseline.json [--report report.json]
vibeleak init [--dir .]

scan: fetch the app URL, collect same-origin JavaScript (max 10 files, 2 MB each), extract the Supabase URL and anon key, then probe. If a service_role JWT or sb_secret_ key is found in the shipped bundle, that is a CRITICAL finding and probing stops: an admin key in the frontend makes table probing meaningless.probe: the same engine with an explicit project URL and anon key, for apps with no public frontend or when the key is already known.check: read a report, compare it with a baseline and the vibeleak.json allowlist. Exit 0 CLEAN / 1 LEAK / 2 input error / 3 REVIEW. A table that was clean in the baseline and now leaks is a regression and fails.diff: compare the current report with a baseline: new leaks, regressions (closed then re-opened), and fixed tables, one line each.init: write a sample publicTables allowlist, failOn) and an empty baseline. It never writes a key into a file: keys come from a flag or VIBELEAK_ANON_KEY and are never logged. Verdict rules, evaluated in order:

password, secret, ssn, passport, token, api_key, name match only, values never read) - MEDIUM, REVIEW.--tables) - LOW, REVIEW. Only scan apps you own or are authorised to test in writing. scan and probe require --i-own-this-app (or VIBELEAK_I_OWN_THIS_APP=1). Without it the command exits 2 and sends no request. Only anon keys are accepted: a service_role or authenticated JWT is refused before any request, and an sb_secret_ key is never sent anywhere.

A typical CI flow:

vibeleak scan https://my-app.example.com --i-own-this-app --out report.json
vibeleak check --report report.json --baseline vibeleak.baseline.json --fail-on high
vibeleak diff --baseline vibeleak.baseline.json --report report.json

The GIF above is a real terminal session against synthetic local fixtures: a fake Lovable-style app and a fake PostgREST server on 127.0.0.1. No real app and no real Supabase project was probed. The anon key is a self-signed synthetic JWT, and the row values are fake.

The leaky fixture scans LEAK:

$ vibeleak scan <app-url> --i-own-this-app --out report-before.json
scanning http://127.0.0.1:37965 ...
project: http://127.0.0.1:37965 (Supabase URL found in shipped JavaScript)
anon key: found (role anon)
tables: 3 enumerated via OpenAPI
  orders: 0 row(s) visible
  profiles: 1 row(s) visible, columns: id, email, passport_no
  public_posts: 1 row(s) visible, columns: id, title, body (allowlisted: public by design)
storage buckets: 3
  uploads: object listing allowed
  public-assets: object listing allowed (allowlisted)
  private-files: not listable
findings:
  LEAK: profiles (1 row visible, columns: id, email, passport_no) - anonymous GET returns 1 row(s); table is not allowlisted
  LEAK: uploads - anonymous object listing is allowed; bucket is not allowlisted
verdict: LEAK - an anonymous visitor can read data (exit 1)
exit: 1

Then the fixture is "fixed" (RLS enabled, bucket locked) and the same scan is CLEAN:

$ vibeleak scan <app-url> --i-own-this-app --out report-after.json
scanning http://127.0.0.1:37311 ...
project: http://127.0.0.1:37311 (Supabase URL found in shipped JavaScript)
anon key: found (role anon)
tables: 3 enumerated via OpenAPI
  orders: 0 row(s) visible
  profiles: 0 row(s) visible
  public_posts: 1 row(s) visible, columns: id, title, body (allowlisted: public by design)
storage buckets: 3
  uploads: not listable
  public-assets: object listing allowed (allowlisted)
  private-files: not listable
verdict: CLEAN - anonymous read clean (not a full audit; see Honest limits)

$ vibeleak check --report report-after.json --baseline report-before.json
checking report-after.json against baseline report-before.json ...
public_posts still public by design (allowlisted)
no regressions vs baseline
verdict: CLEAN - anonymous read clean (not a full audit; see Honest limits)

$ vibeleak diff --baseline report-before.json --report report-after.json
private-files: CLEAN -> CLEAN
public-assets: ALLOWLISTED -> ALLOWLISTED
uploads: LEAK -> CLEAN (fixed)
orders: CLEAN -> CLEAN
profiles: LEAK -> CLEAN (fixed)
public_posts: ALLOWLISTED -> ALLOWLISTED
2 fixed, 0 new leaks, 0 regressions

The full transcript (54 lines, real CLI output) and the GIF are in demo/ in the repo. The test suite is 47/47 passing (36 unit + 11 e2e, including consent refusal with zero requests sent, service_role refusal before any request, redaction of row values from reports, and baseline diff regressions). CI is green on Node 20 and 22.

The npm package is not published yet, so for now install from source:

git clone https://github.com/techdevfun/vibeleak.git
cd vibeleak
npm install
npm run build
node dist/cli.js --help

Or link the binary locally:

npm link
vibeleak --help

Requires Node.js 20 or newer, zero runtime dependencies.

Checked 15 November 2026. The wedge is the first row: no other tool starts from only the deployed app URL, extracts the Supabase URL and anon key from shipped JavaScript, and probes anonymously.

| Tool | What it does well | Where it is weak (the wedge for vibeleak) | |---|---|---| | supabase-rls-check (Python CLI, consent-gated; PyPI , v0.6.3 announced 14/11/2026) | probe with an anon key via PostgREST;scan-env finds service_role keys in code;--fail-on for CI; refuses service_role before requesting | Catalog checks need a manual round-trip: export check.sql , paste it into the SQL Editor, export a CSV, then analyse.probe needs the user to supply the project URL and anon key. No baseline diff for anonymous exposure in one command. | | rls-doctor (Node CLI, check /probe /shadow /prove ;npm 0.5.8, published 11/10/2026 ) | Behavioural probe: impersonates app roles in a rolled-back transaction and counts rows per identity; deep catalog analysis (policy OR-combine, WITH CHECK fallback, owner bypass) | Requires DATABASE_URL , a direct Postgres connection. Lovable and vibe-code users usually do not have one. No anon-key-only mode, no start from a deployed app URL, no frontend bundle scan. | | Lovable Security Scanner + AI Security Reviewer (in-platform, added after CVE-2025-48757) | Runs where the app was built | Lovable only. No CI run, no exported evidence, no use for Bolt, v0, or other Supabase apps. Lovable's own docs say the scan does not guarantee complete security. | | Supabase Security Advisor (dashboard) | Flags tables with RLS disabled ( rls_disabled_in_public ) | Dashboard only. No CLI or CI, and it reads the catalog: it never proves what an anonymous request actually returns. |

Honesty first: vibeleak owns a narrow slice, and the rivals are real.

SECURITY DEFINER view or a function with its own RLS behaviour is invisible to an anonymous table probe. vibeleak is the outermost layer: prove what a stranger can read. It complements, not replaces, a catalog audit. Use it as the gate on every deploy, and use the catalog tools for the deeper audit.

GET /storage/v1/object/list/<bucket>), because the tool is read-only by design. Real Supabase object listing is a POST endpoint, so a GET probe can return 405 there. Treat a non-listable result as "not proven listable", not as "proven private". The bucket list itself (GET /storage/v1/bucket) always works. probe --tables with an explicit key when extraction fails. The November 2026 numbers are not a story about one bad app. They are a story about a missing gate: AI writes the app, nobody proves the database is locked, and the app ships. The same bug class was disclosed in March 2025 and repeated at a larger scale eight months later, because a one-off scan does not stop a regression. A gate that runs on every deploy does, if it proves the exact thing an attacker would do: make an anonymous request and count the rows.

If you ship an AI-built app with real user data, prove it is locked before it goes live, and prove it again on every deploy:

github.com/techdevfun/vibeleak

Feedback welcome in the repo issues. The roadmap (probe-from-config mode for check, a real POST storage probe, a tighter demo GIF) is in the README.

原文来源:dev.to