Repository navigation
Conversation
…ints and a source marker #1263 Signed-off-by: Nik Cubrilovic <[email protected]>
…ml, drop google-cloud-cdn, separate link cap #1263 Signed-off-by: Nik Cubrilovic <[email protected]>
…-closing rel #1263 Signed-off-by: Nik Cubrilovic <[email protected]>
…ders; e2e for header fingerprints #1263 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
feat/local-tech-detection-1263
branch
from
October 30, 2026 09:00
707a15c to
27384a4
Compare
Contributor
Author
|
Landed in v0.0.144 as nik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1263
Nik's split: local detection (free, logged out, the pages the crawl already fetched, no extra requests) and cloud detection (adds the per-domain history). The local scan already existed (
detectLocalTechnologies; #1254 added bundle reading in v0.0.140); this PR reproduces the reporter's case, fixes the real gap it found, fills fingerprint gaps and documents the split.Reproduction and cause
An end-to-end
squirrel audit --http --offline -m 30over a fixture site (WordPress + WooCommerce, Google Tag Manager, Cookiebot, a Cloudflare-served response) reported the CMS, tag manager, consent tool and CDN but not WooCommerce. Cause: with a script list (the home page always has one) ascript-urldetector reads only<script src>values and never the HTML, so a signal that lives in a stylesheet path (/wp-content/plugins/woocommerce/.../woocommerce.css) was invisible. Fix: the shared builder (buildTechInputs, used by the local scan and the cloud payload alike) now also lists the page's<link rel="stylesheet|preload|modulepreload" href>URLs beside its scripts (extractLinkAssetHrefs, at most 40 hrefs a page, URLs over 1000 chars skipped, so worst case ~40 KB a page in the cloud payload; platform asset paths such as/wp-content/plugins/,/wp-content/themes/,/sites/default/files/,/static/version/,/skin/frontend/,/cdn/shop/are listed first, then the rest in document order; with a cap of their own, listed after the scripts so they never push a script out). The other causes of header-only results (page sample, script bodies only for first-party fetched JS, no rendering in--http, no fingerprint) are documented.What changed
packages/audit-engine/src/technologies.ts:extractLinkAssetHrefsand its use inbuildTechInputs.packages/tech-detect/src/fingerprints/stack.ts, written from each product's own host, path, marker or header (no third-party catalog or signature file read or copied; noted in the file header): consent tools Borlabs Cookie, Complianz, Real Cookie Banner, Cookie Notice, consentmanager, Klaro, Axeptio, CookieFirst, Cookie Information, Cookie-Script; tag managers Cloudflare Zaraz, Matomo Tag Manager, Piwik PRO Tag Manager, Commanders Act; CMS and shop Lightspeed eCom, Contao, SilverStripe, Plone, Grav, Odoo, Liferay, Pimcore; CDN Azure Front Door. (Google Cloud CDN was dropped in review: thevia: 1.1 googleheader is also sent by Cloud Run, App Engine and Cloud Functions.) Each needs real markup context (script tag, resource attribute, inline script, anchored meta, header); a post naming all of them and showing their snippets in<pre>matches none.ReportTechnologies.source(local|cloud): set by the CLI, passed through the JSON report, and a local section shows "Detected locally from the crawled pages (no scan history)" instead of a "No changes since last scan" it cannot know (text, markdown and HTML reports). Absent on older reports and unchanged for them.docs/cloud/technologies.mdx(new "Local and cloud scans" section with a comparison table and "Why a result can show little more than headers"; categories table; signature count 438) anddocs/guides/local-audits-cli.mdx(the stale line was already corrected in feat(tech-detect): read first-party script bundles, run detection locally from the same bytes #1254 #1256; now links the split).other.tstofingerprints/helpers.ts, byte-identical to the move in feat(tech-detect): Bolt and WordPress caching, SEO and image plugins and managed hosts #1303, so the two PRs merge cleanly on that file.New icon slugs (private repo needs PNGs in
apps/web/public/tech-icons; none invented)borlabs-cookie,complianz,real-cookie-banner,cookie-notice,consentmanager,klaro,axeptio,cookiefirst,cookie-information,cookie-script,cloudflare-zaraz,matomo-tag-manager,piwik-pro-tag-manager,commanders-act,lightspeed-ecom,contao,silverstripe,plone,grav,odoo,liferay,pimcore,azure-front-door(23 new;google-cloud-cdndropped).Notes for the private repo and merge order
sourcefield also goes into the published report'stechnologies; if the API validates that block strictly, check it at the gitlink bump.Review round (c263f08)
relcheck now splits on whitespace and uses a Set lookup (also handles unquoted attributes).<technologies>now carrysource=and omit first-scan/added/removed for a local section.Review round 2
Link cap 20 to 40 with platform paths first (test: 70 stylesheets, WooCommerce CSS last, still detected); glued
rel=stylesheet/>handled; x-azure-ref comment says it is slightly broader than Front Door; CHANGELOG blank line and test comment fixed.Evidence per fingerprint
Live-confirmed with curl on the product's own site: Contao (generator "Contao Open Source CMS" on contao.org), Plone (
Plone 6 - https://plone.orgon plone.org), Grav (generator "GravCMS" on getgrav.org), Odoo (generator "Odoo" on odoo.com); vendor script hosts answered for consentmanager, Axeptio, CookieFirst (403 to curl, host exists), Cookie Information (uc.js), Cookie-Script (301), Commanders Act (tagcommander), Lightspeed (webshopapp), Matomo cloud (404 on bare path).Documentation-based, NOT verified live:
x-azure-ref(Azure Front Door response header),liferay-portalheader,pimcoremarker, the^1\.1 google$removal rationale, and the remaining consent and tag-manager path or marker signals not listed above. Treat those as medium confidence until a live site is found.Tests
apps/cli/tests/audit/tech-detect-local-stack-1263.test.ts: the end-to-end--http --offline -m 30audit; reports WordPress, WooCommerce, Google Tag Manager, Cookiebot and Cloudflare, withsource: "local"(WooCommerce failed before the fix).packages/audit-engine/tests/tech-link-asset-urls-1263.test.ts,packages/tech-detect/tests/local-stack-fingerprints-1263.test.ts(each fingerprint detected, look-alikes and prose not),packages/report/tests/technologies-source-1263.test.ts.streamed-payload-parity, tech-detect suites andpattern-bounds,streaming-rules-canonical-golden,scripts/test-suites.ts --run rest(2118 pass) and--run report(1029 pass), cli format, lint and tsgo, tsgo on tech-detect, audit-engine, report and core-contracts,make validateindocs/.Docs:
docs/cloud/technologies.mdx,docs/guides/local-audits-cli.mdx. Skill: none.