ProofForge 解釋安全掃描器為何應回報「未能判定」而非「通過」,以及對 AI 建構應用的意義
Why a security scanner should say "inconclusive" instead of "pass" (and what that means for AI-built apps)
ProofForge 主張,安全掃描器遇到無法完成的檢查時,應標示為「未能判定」而非「通過」,以免把未測項目誤當成已驗證。其掃描採被動、唯讀方式,最多發出 40 個一般訪客瀏覽器可發出的請求,不登入亦不寫入,因此無法判斷一名用戶能否讀取另一名用戶的資料。
Most security scanners are built to look thorough. A long red list feels like value. For an AI-built app, that is the wrong goal, because the question you actually need answered is smaller: what does my live site hand to every anonymous visitor, and what did the check not look at?
This post explains one design choice we made in ProofForge that most scanners skip: a check that could not run is reported as "inconclusive", never as "pass".
The false "pass" problem
Say a scanner tries to read your Supabase table with your public anon key. Three things can happen:
- It gets rows back. That is a finding.
- It gets a permission error. That is a pass for that table.
- It never reaches the table, because the request timed out, the URL was behind a redirect, or the project ref was not in the bundle.
Case 3 is the dangerous one. Many tools collapse it into a green tick. You then ship, or buy an app, believing something was verified that was never tested.
What "inconclusive" looks like in practice
When ProofForge cannot complete a check, the report says so and names what was skipped. A clean result means "we looked and found nothing public". An inconclusive result means "we did not get to look". Those are different sentences and they should look different.
What the scan does and does not do
- It is passive and read-only. It requests what a normal visitor's browser could request, up to 40 requests.
- It never signs in and never writes anything.
- So it cannot tell you whether user A can read user B's data. That needs two real accounts. We publish a free two-account test for Supabase that runs on your own machine: https://proofforge.live/two-account-test
Saying where the tool stops is part of the product. If a scanner claims it tested auth from the outside without logging in, treat the claim with suspicion.
Why this matters if you are buying an app
On Flippa or Acquire.com, a seller's "we ran a security scan, all clear" is only worth something if you know what the scan covered. Ask for the list of checks that ran, the list that were inconclusive, and the date. A scan with zero inconclusive items on a complex app is more likely to be shallow than perfect.
A quick checklist for any scanner you use
- Does it separate "passed" from "could not test"?
- Does it say whether it signs in?
- Does it list the exact requests or checks it made?
- Can you reproduce one finding by hand in a browser?
If you want to see how this looks on your own deployed site, the free check is at https://proofforge.live. Paid one-time fix reports are $9, $29 and $79, and the free scan does not require them.
來源:DEV Community · dev.to