Repository navigation
Description
Observed on squirrel v0.0.138.
Problem
--offline is documented as "Run fully offline: skip cloud features, publishing, and telemetry. No request goes to a host outside the audited site". Users running batch audits of sites they do not own reasonably read --offline -C surface as a read-only crawl of the audited site. It is not: the probe intensity is chosen by the audit level, not by --offline.
docs/cli/audit.mdx ("Probing intensity") and docs/configuration/security.mdx ("Rules that probe") say the default is passive for quick and active for surface and full. --offline runs default to quick (so they are passive), but an explicit -C surface or -C full with --offline runs at active. At active, security/graphql-introspection sends up to five GET /graphql?query={__schema{types{name}}} requests and security/graphql-get-mutations sends up to five GET /graphql?query=mutation{__typename} requests, to /graphql, /api/graphql and any GraphQL endpoint discovered in pages and scripts. These go to the audited site, so they do not violate the "no other host" promise, but they are extra requests beyond the crawl that an offline-minded user did not ask for and that can trip a WAF.
Repro: squirrel audit https://example.com -C surface --offline --max-pages 30 against a server that logs requests; observe GET /graphql?query=... and GET /api/graphql?query=... lines. Adding --passive removes them.
Proposal (pick one, or both)
--offlineimplies--probe passiveunless--probeis given explicitly (and the banner says so), or- when an offline run resolves to
activeoraggressive, print a one-line notice naming the probing level and the flag to turn it off, and state in the--offlinerow and the "Fully offline audit" section ofdocs/cli/audit.mdxthat offline does not change probing.
Acceptance Criteria
Maintainer decision: --offline and --passive are separate axes (network scope vs probing); the docs and help are fixed, behaviour is unchanged.
-
docs/cli/audit.mdxdefines the two axes with a 2x2 table, states that-C surface --offlinestill sends the site probes unless--passiveis set, and gives the exact flags for fetching pages only (--offline --passive --disable-discovery-probes). -
docs/configuration/security.mdxanddocs/configuration/crawler.mdxsay offline does not turn probing off and passive does not turn the discovery probes off. - The
--offlineflag help and the shell completion descriptions say it does not imply--passive. - The audit banner already shows the probe level actually used (
Probing active · budget 30s).
Activity
WilliamK112 commentedon Oct 28, 2026
I'd like to take this. I'll implement the first proposed behavior:
--offlinedefaults probing topassivefor surface/full audits unless the user explicitly supplies--probe, while preserving explicitactive/aggressiveoverrides. I'll also expose the resolved probe level in the audit output, update the CLI docs, and add a local-server regression that verifies an offline surface audit sends no GraphQL probe requests.test(cli): cover full-level offline probing squirrelscan#1225
docs(cli): keep offline probe note with its section squirrelscan#1225
nc9 commentedon Oct 30, 2026
Decision (Nik, 2026-10-29): keep --offline and --passive separate. This becomes a docs-and-help-text fix that says plainly that --offline does not imply --passive and gives the exact flag combination for no requests beyond the audited site.
nc9 commentedon Oct 30, 2026
The maintainer chose to keep
--offlineand--passiveseparate and fix the docs instead. The acceptance criteria above are rewritten to match; no behaviour changes.nc9 commentedon Oct 30, 2026
Correction (Nik, 2026-10-29): this supersedes the earlier docs-only note. External PR #1246 is approved: --offline defaults to passive probing, which closes this issue. The follow-up banner notice is tracked in #1311.
nc9 commentedon Oct 30, 2026
Correction (Nik, 2026-10-29): --offline must not imply --passive. The two are kept as separate axes: offline or online says whether the audit uses the cloud and external services, passive or active says how hard it probes the audited site. #1225 becomes a docs and help-text fix that defines both and gives the exact flags for each combination. External PR #1246 is on hold.
nc9 commentedon Oct 30, 2026
Re-scoped by the maintainer:
--offline(network scope) and--probe(scan intensity) stay independent, so--offlinewill NOT imply passive probing (#1246 closed). This issue becomes docs and help clarity:docs/cli/audit.mdxstates plainly that--offlinelimits network scope only, and that the probe level still comes from--probe, the shortcuts, config or the audit level.squirrel audit --helpand shell completions describe--offlinethe same way.docs(cli): probe level source and banner Probing line in the offline/…
docs(cli): discovery probes are one-way; probe help default is the le…
docs(cli): offline and passive are separate axes; exact traffic of a …
docs(cli): agent access probe is a discovery probe; broken-forms row …
docs(cli): offline and passive are separate axes; exact traffic of a …
docs(cli): agent access probe is a discovery probe; broken-forms row …
nc9 commentedon Oct 30, 2026
Shipped in v0.0.144 (commits 3262b5b, b74ed14). Checked every acceptance criterion against current main: the re-scoped docs and help-text criteria: the offline and passive axes section, the flag help and completions, and the banner's Probing line.
nik