Skip to content

Local technology detection for logged-out audits from the pages already crawled #1263

Closed

Description

@deniskern

Summary

Technology detection runs only in cloud audits ("Local audits run the deterministic rules only. The cloud-backed rules (AI analysis, technology detection, browser rendering) need an account and credits", guides/local-audits-cli). Logged out, technologies.items holds only what headers reveal (for example nginx). We need the stack of every audited site (CMS, shop system, tag managers, consent tools, CDNs) to route findings to the right owner, so we run a second detector with the webappanalyzer catalog next to squirrel.

Request

A local, signature-based detection pass for logged-out audits: match headers, cookies, meta tags, script src and HTML patterns from a bundled catalog against the pages the crawl already fetched, no extra requests. The cloud detection can stay the deeper option (script bundles, versions, confidence).

Why

The crawl already holds everything a signature match needs. With it we could drop our own matcher, catalog import and signature file (about 550 lines) and read one technologies block for routing.


Triage

A local, no-HTTP technology scan already exists: detectLocalTechnologies in apps/cli/src/audit/cloud.ts (since #407, shipped by v0.0.80) runs detectReportTechnologiesMulti (packages/audit-engine/src/technologies.ts) over the crawled pages and fetched scripts, using the MIT @squirrelscan/tech-detect package (header, meta, script-url, script-content, html, dom and url-path detectors, about 300 generated fingerprints plus hand-curated per-category files). controllers/audit.ts falls back to it whenever the cloud tech-detect did not run, so a logged-out audit should populate report.technologies with CMS, CDN and tag-manager hits beyond headers. The claim that only header-derived items appear is therefore not accurate as a design statement, but it may be accurate for the reporter's run: --http mode and -m 30 limit what the tech sample and script fetch see (script-content detectors need fetched bodies), and the curated catalog is smaller than webappanalyzer. The docs line quoted (guides/local-audits-cli) is likely stale or misleading and should be corrected. Recommend not importing an external catalog: the fingerprints in this MIT package are first-party research, and that stays the policy. Instead, reproduce against the reporter's site class (Shopify, Storyblok, consent tools), add fingerprints for the gaps with scripts/generate-tech-fingerprints.ts, and fix the docs.

Acceptance Criteria

  • A logged-out squirrel audit --http run on a fixture site with a known CMS, shop system, tag manager and consent tool reports all of them in technologies.items, with a test.
  • The cause of header-only results in --http mode is identified and either fixed or documented (which detectors need fetched scripts).
  • Fingerprints are added for the stack categories the reporter needs (CMS, shop system, tag managers, consent tools, CDNs) where missing, each with a detection test.
  • No third-party catalog data or signature file is copied into the repo; new fingerprints are written from first-party research and noted as such.
  • guides/local-audits-cli docs state that local audits run a free signature-based technology scan and what the cloud scan adds (versions, confidence, cross-scan diff).
  • make validate passes in docs/.
  • scripts/test-suites.ts --run rest passes, and bun test for packages/tech-detect passes by explicit file path.

Activity

  1. added
    enhancement
    size: M
    on Oct 29, 2026
  2. nc9 commented on Oct 29, 2026

    @nc9
    Contributor

    Thanks @deniskern for the report. A local signature-based technology scan already exists and runs on logged-out audits, so we will find out why your --http run only showed header hits, fill fingerprint gaps for the stacks you listed and correct the docs. We keep the fingerprint catalog first-party, so we will add signatures ourselves rather than import an external list. Queued.

  3. added theissue type on Oct 29, 2026
  4. nc9 commented on Oct 29, 2026

    @nc9
    Contributor

    Hi @deniskern, complete coincidence: we have exactly this ready to ship. #1256 (closing #1254) merged today and lands in v0.0.140, due out later today.

    What changes for logged-out audits:

    • Technology detection runs locally from the pages and scripts the crawl already fetched. It makes no extra requests and needs no account.
    • It now also reads first-party JS bundles. Script-only stacks were the main reason logged-out runs showed little more than headers. You can tune how much of each bundle it reads with [tech_detect] bundle_bytes in squirrel.toml (default 64 KB, max 256 KB).
    • Results go in the same technologies block as cloud audits, so you can route on one field.

    The docs line you quoted (guides/local-audits-cli) is out of date. We're fixing it in the same release.

    Once v0.0.140 is out, could you run squirrel self update and re-run your audit, including the --http -m 30 run? If CMS, shop, tag manager or consent tools are still missing for a site class, post it here and we'll add first-party fingerprints for it.

  5. nc9 commented on Oct 30, 2026

    @nc9
    Contributor

    Shipped in v0.0.144 (commits 5ee108f, defe450, a85e52a, afec799). Checked every acceptance criterion against current main: local technology detection for logged-out audits, the header-only cause documented, 24 stack fingerprints written from first-party research, docs for local audits and the cloud scan.

    nik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clienhancementsize: M

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions