Skip to content

crawler: let users turn off the pre-crawl discovery probes (swagger.json/openapi.json get the audit IP banned by fail2ban) #409

Description

@nc9

A user reports audits failing on servers that run a common fail2ban "sensitive files" jail. Before the crawl starts, every audit requests a fixed set of discovery paths. The requests for /swagger.json and /openapi.json match the jail, the server bans the auditing IP, and every request after that gets connection refused. The audit fails after the first page.

Reproduced on 0.0.98: five /.well-known/* requests did not trigger a ban. swagger.json and openapi.json did.

--rule-exclude ax does not help. The probes run inside the crawler, before any rule runs, whether or not a rule will read their results.

What runs before the first page

About 28 extra requests to the root origin on every audit, besides robots.txt and sitemaps:

Probe Requests
/llms.txt, /llms-full.txt 2
markdown negotiation: / with Accept: text/markdown, /index.md 2
well-known and agent files (list below) 20, sent at the same time
/ fetched as a browser, GPTBot and Claude-User 3
RSL licensing: /robots.txt plus any license docs it links 1+
The 20 well-known and agent-file paths

/.well-known/mcp/server-card.json, /.well-known/mcp.json, /.well-known/mcp, /.well-known/mcp-server, /.well-known/agent-card.json, /.well-known/agent-skills/index.json, /.well-known/api-catalog, /openapi.json, /swagger.json, /api/openapi.json, /.well-known/oauth-authorization-server, /.well-known/oauth-protected-resource, /AGENTS.md, /agents.md, /.well-known/agents.md, /docs/AGENTS.md, /ai-plugin.json, /.well-known/ai-plugin.json, /.well-known/llms.txt, /docs/llms.txt

All 20 go out at once and bypass the per-host throttle, so per_host_concurrency = 1 and per_host_delay_ms (the settings we recommend for crawling a sensitive host politely) do not slow them down.

Proposal

  1. A switch to turn them all off: [crawler] discovery_probes = false in squirrel.toml, plus --no-discovery-probes for a single run. robots.txt and sitemap discovery keep running, because the crawl needs them.
  2. Follow the rule selection. If every rule that reads a probe's results is excluded (--rule-exclude ax, rules.disable), skip that probe with no extra setting.
  3. When a probe does not run, the rules that depend on it say "not checked". They never report the file as missing.
  4. Discovery probes respect the per-host throttle, like every other request.

Acceptance Criteria

  • with [crawler] discovery_probes = false, an audit sends no request to any path listed above, and robots.txt and sitemap discovery still run
  • --no-discovery-probes does the same for one run and overrides the config value
  • excluding every rule that reads a probe (for example --rule-exclude ax) skips that probe with no other setting
  • a rule whose probe did not run reports "not checked", never "missing", and is not counted as a failure
  • discovery probes obey per_host_concurrency and per_host_delay_ms
  • the docs list the pre-crawl requests and show how to turn them off
  • the squirrelscan skill (squirrelscan/skills, skills/squirrelscan/SKILL.md) covers the switch: when an audit fails after the first page with connection refused or a sudden block, the agent reruns with --no-discovery-probes or sets [crawler] discovery_probes = false

Activity

  1. added
    enhancement
    P1
    size: S
    on Sep 23, 2026
  2. self-assigned this
    on Sep 23, 2026
  3. added theissue type on Sep 23, 2026
  4. nc9 commented on Sep 23, 2026

    @nc9
    ContributorAuthor

    related is the draft probe intensity work for detecting security issues - audit runs fail on this because of WAFs and network firewalls.

    add documentation on authenticating squirrelscan

  5. nc9 commented on Sep 23, 2026

    @nc9
    ContributorAuthor

    --no-discovery-probes does the same for one run and overrides the config value

    ensure we're consistent in the cli and config on disable / enable vs yes / no (disable would be preferred)

  6. added 3 commits that reference this issue on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1enhancementsize: S

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions