Skip to content

--offline does not imply passive probing: -C surface --offline still sends GraphQL probe GETs #1225

Closed

Description

@nc9

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)

  • --offline implies --probe passive unless --probe is given explicitly (and the banner says so), or
  • when an offline run resolves to active or aggressive, print a one-line notice naming the probing level and the flag to turn it off, and state in the --offline row and the "Fully offline audit" section of docs/cli/audit.mdx that 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.mdx defines the two axes with a 2x2 table, states that -C surface --offline still sends the site probes unless --passive is set, and gives the exact flags for fetching pages only (--offline --passive --disable-discovery-probes).
  • docs/configuration/security.mdx and docs/configuration/crawler.mdx say offline does not turn probing off and passive does not turn the discovery probes off.
  • The --offline flag 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

  1. added
    enhancement
    size: S
    on Oct 28, 2026
  2. added theissue type on Oct 28, 2026
  3. WilliamK112 commented on Oct 28, 2026

    @WilliamK112
    Contributor

    I'd like to take this. I'll implement the first proposed behavior: --offline defaults probing to passive for surface/full audits unless the user explicitly supplies --probe, while preserving explicit active/aggressive overrides. 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.

  4. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    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.

  5. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    The maintainer chose to keep --offline and --passive separate and fix the docs instead. The acceptance criteria above are rewritten to match; no behaviour changes.

  6. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    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.

  7. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    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.

  8. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Re-scoped by the maintainer: --offline (network scope) and --probe (scan intensity) stay independent, so --offline will NOT imply passive probing (#1246 closed). This issue becomes docs and help clarity:

    • docs/cli/audit.mdx states plainly that --offline limits network scope only, and that the probe level still comes from --probe, the shortcuts, config or the audit level.
    • squirrel audit --help and shell completions describe --offline the same way.
    • The run banner's Probing line already shows the level in effect, and the docs point to it.
  9. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    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

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

    enhancementsize: S

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions