You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tech-detect: Firebase Hosting reported on a Shopify storefront (false positive) #1448
No firebase string in the homepage HTML or in any of the 19 <script src> files it loads.
Our guess: a Google Cloud signal (for example x-dc: gcp-*) is being matched as Firebase Hosting. We haven't confirmed this.
Expected
No Firebase Hosting on a Shopify storefront. If the GCP signal is the trigger, it identifies Shopify's infrastructure, not the site's host.
Acceptance Criteria
The signal that makes firebase-hosting match on a Shopify storefront is identified and named on this issue (the reporter guesses the x-dc: gcp-* header)
A Shopify storefront with server: cloudflare, Shopify server-timing and x-dc: gcp-* does not report Firebase Hosting
A real Firebase Hosting site (Firebase-specific response header or *.web.app / *.firebaseapp.com host) is still detected
A fixture test covers the Shopify headers (negative) and a Firebase Hosting response (positive)
The corpus check (squirrelscan-53 label) shows no loss of true Firebase Hosting detections
Thanks for the clear repro and the evidence, this is very useful. We added acceptance criteria to the issue and queued it; we will confirm the cause of the signal here before changing the detection.
Confirmed cause: it is not the x-dc header. The firebase-hosting signature had a url-path detector for \.web\.app|\.firebaseapp\.com, and url-path matches the page URL and then the whole page HTML. The storefront's HTML loads a third-party Shopify app's script from a *.web.app host (an app hosted on Firebase Hosting), so the pattern matched there. That says where the app is hosted, not the store. No Firebase header is involved, and the x-dc: gcp-* and server-timing headers were never matched by any Firebase signature.
The fix adds a detector that matches the page's own host name only, moves firebase-hosting to it, and keeps Firebase Hosting's own Vary: x-fh-requested-host signal. A fix PR follows. The same pattern shape exists for a few other hosting signatures; filed as a separate issue.
Verified against main after v0.0.152 (firebase-hosting reads the page's own host). Met and ticked: criteria 1 to 4 (the cause is named, a Shopify storefront with gcp x-dc headers or a third-party *.web.app script is no longer reported, real Firebase Hosting by header or host still is, fixtures for both). Open: criterion 5, the corpus check for no loss of true detections has no result recorded in this issue. Leaving this open until it is posted here.
Corpus evidence, recorded for the last criterion (a 622-site sample, v0.0.152 against v0.0.151): firebase-hosting goes from 74 detections to 72. Both losses were false positives (a third-party script on a *.web.app host, not the site's own host), no true detection was lost. The 23-bundle comparison and 19 real pages show 0 diffs, and all 17 tech-detect test files pass.
Activity
nc9 commentedon Oct 31, 2026
Thanks for the clear repro and the evidence, this is very useful. We added acceptance criteria to the issue and queued it; we will confirm the cause of the signal here before changing the detection.
nik
nc9 commentedon Oct 31, 2026
Confirmed cause: it is not the
x-dcheader. Thefirebase-hostingsignature had aurl-pathdetector for\.web\.app|\.firebaseapp\.com, andurl-pathmatches the page URL and then the whole page HTML. The storefront's HTML loads a third-party Shopify app's script from a*.web.apphost (an app hosted on Firebase Hosting), so the pattern matched there. That says where the app is hosted, not the store. No Firebase header is involved, and thex-dc: gcp-*andserver-timingheaders were never matched by any Firebase signature.The fix adds a detector that matches the page's own host name only, moves
firebase-hostingto it, and keeps Firebase Hosting's ownVary: x-fh-requested-hostsignal. A fix PR follows. The same pattern shape exists for a few other hosting signatures; filed as a separate issue.nik
fix(tech-detect): firebase-hosting reads the page's own host, not *.w…
fix(tech-detect): firebase-hosting host test accepts a trailing dot; …
fix(tech-detect): firebase-hosting reads the page's own host, not *.w…
fix(tech-detect): firebase-hosting host test accepts a trailing dot; …
nc9 commentedon Oct 31, 2026
Verified against main after v0.0.152 (firebase-hosting reads the page's own host). Met and ticked: criteria 1 to 4 (the cause is named, a Shopify storefront with gcp
x-dcheaders or a third-party*.web.appscript is no longer reported, real Firebase Hosting by header or host still is, fixtures for both). Open: criterion 5, the corpus check for no loss of true detections has no result recorded in this issue. Leaving this open until it is posted here.nik
nc9 commentedon Oct 31, 2026
Corpus evidence, recorded for the last criterion (a 622-site sample, v0.0.152 against v0.0.151):
firebase-hostinggoes from 74 detections to 72. Both losses were false positives (a third-party script on a*.web.apphost, not the site's own host), no true detection was lost. The 23-bundle comparison and 19 real pages show 0 diffs, and all 17 tech-detect test files pass.With that, every acceptance criterion is met. Shipped in v0.0.152 (
b4e83ec050b79736), verified against main. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.152nik