scope

scope is a command for coding agents from elementalsouls/Claude-BugHunter. It costs 63 tokens per session (568 once invoked), scanned A, original, MIT.

A command that checks whether a host, URL, or IP address is allowed by an engagement's written security-testing scope. Scope defines which systems may legally be tested.

In plain words
What is it for?
Use it before any HTTP testing to check one or more assets against domain, subdomain, IP-range, or regular-expression scope rules.
Why use it?
It prevents active requests to systems outside the engagement and uses a deny-first check instead of relying on an agent's judgment.

Command

Part of the Claude-BugHunter plugin — 11 skills, 15 commands shipped together

About the project

Claude Code Spec Workflow is a set of Claude Code commands and agents that organizes software work into documented stages for new features and bug fixes. It is for developers who want Claude Code to handle requirements, design, implementation, issue resolution, and verification through repeatable workflows, with the catalogue entries providing the associated commands and agents.

elementalsouls/Claude-BugHunter · 3,853 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/elementalsouls/claude-bughunter/scope
Clone the repo
git clone --depth 1 https://github.com/elementalsouls/Claude-BugHunter

Or install Claude-BugHunter, the plugin that ships this one along with the rest of its 11 skills, 15 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scope

README.md
[![agentmods](https://agentmods.dev/badge/commands/elementalsouls/claude-bughunter/scope.svg)](https://agentmods.dev/commands/elementalsouls/claude-bughunter/scope)
Your own site
<a href="https://agentmods.dev/commands/elementalsouls/claude-bughunter/scope"><img src="https://agentmods.dev/badge/commands/elementalsouls/claude-bughunter/scope.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 568 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00063 $0.00568
Opus 5 $0.00032 $0.00284
Sonnet 5 $0.00013 $0.00114
Haiku 4.5 $0.00006 $0.00057

Measured 5d ago against content hash 4117d3273843, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scope scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • scope — 100% identical, 0 lines differ
commands/scope.md · 52 lines

What it actually says

/scope

The mandatory pre-flight gate. Verify a host or URL is in scope before any active testing. Scope is enforced in code (engine/scope.py), not by LLM judgment — deny wins, default deny.

What This Does

  1. Loads in-scope / out-of-scope patterns from the engagement's scope.md (the hunt scaffold creates it) or from inline patterns.
  2. Checks each asset deterministically with engine/scope.py:
    • apex acme.com → the apex and any subdomain
    • *.acme.com → any subdomain (NOT the bare apex)
    • api.acme.com → that exact host
    • 10.0.0.0/8 → any IP in the CIDR
    • re:^lab[0-9]+\.acme\.io$ → explicit regex (prefix re:)
  3. Prints IN-SCOPE / OUT-OF-SCOPE <reason> and exits non-zero if any asset is out of scope — so it can gate automation.

Usage

/scope api.acme.com
/scope api.acme.com staging.acme.io admin.acme.com

Under the hood, run the deterministic checker directly:

# Against the engagement scope.md (preferred — fill scope.md from the program page first)
python3 engine/scope.py api.acme.com --md ~/Targets/acme/scope.md

# Or with inline patterns (repeat --in-scope / --out-of-scope per pattern)
python3 engine/scope.py api.acme.com evil.com \
  --in-scope acme.com --in-scope '*.acme.io' --out-of-scope admin.acme.com

Rules

  • Run this before any HTTP touch. An OUT-OF-SCOPE result is a hard stop — do not probe the asset.
  • If scope.md is still the empty template ((paste ... here) placeholders), fill it from the program page first; an empty in-scope list = default-deny = everything rejected, which is the safe default.
  • Deny wins: if an asset matches both an in-scope and an out-of-scope rule, it is out of scope.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 52 lines · 0 tokens per session scan A 4117d3273843

Subscribe to this mod's changes

scope is a command published in the GitHub repository elementalsouls/Claude-BugHunter (3,853 stars, last pushed 5d ago), licensed MIT. It adds 63 tokens to every session and 568 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories

bypass-403

Probe a 403/401 endpoint with the most-paid bypass tricks (header injection, path encoding, method swap, WAF fingerprint, vendor-specific). Wraps byp4xx when installed; otherwise runs a built-in matrix of 38+ techniques. Usage: /bypass-403 | /bypass-403 -l.

Awarexone/Agentic-Bug-Hunter · 0 tokens

spray

Password spray with hard guards — typed-hostname confirmation, lockout warning, audit log. Modes: http-form (custom login page), oauth (password grant), o365 + okta (via TREVORspray). Default delay 30min/round + 60s jitter. Usage /spray --mode --users --passes.

Awarexone/Agentic-Bug-Hunter · 0 tokens

web3-audit

Smart contract security audit — runs through 10 bug class checklist (accounting desync, access control, incomplete path, off-by-one, oracle errors, ERC4626, reentrancy, flash loan, signature replay, proxy/upgrade). Applies pre-dive kill signals first. Generates Foundry PoC template for confirmed findings. Usage…

Awarexone/Agentic-Bug-Hunter · 0 tokens

autopilot

Run autonomous hunt loop on a target — scope check → recon → rank surface → hunt → validate → report with configurable checkpoints. Usage: /autopilot target.com [--paranoid|--normal|--yolo].

Awarexone/Agentic-Bug-Hunter · 0 tokens

breach-check

HIBP k-anonymity check on a password wordlist. Enriches each password with its breach count, ranks DESC. Free API (no key), only first 5 chars of SHA-1 sent. Output -> -ranked.txt. Usage /breach-check [--min-count N] [--max-count N] [--with-counts].

Awarexone/Agentic-Bug-Hunter · 79 tokens

recon

Run the full recon pipeline by invoking tools/reconengine.sh — subdomain enum (subfinder + amass + crt.sh + wayback), httpx live host probing with tech detection, nmap port scan, gau URL collection, JS analysis, ffuf directory fuzzing, parameter discovery, config exposure check, CI/CD workflow scan. Outputs to recon/…

Awarexone/Agentic-Bug-Hunter · 0 tokens