|

How to conduct authorized security testing with Claude Code? First install 83 skills, then stay within scope

How to conduct authorized security testing with Claude Code? First install 83 skills, then stay within scope

Author’s note: Claude-BugHunter authorized security testing tutorial. The walkthrough goes like this: first define the authorized scope, then install it either through a plugin or by copying, run the workflow end to end in a local practice range, and finally check the report against a checklist. It also covers how to use—and what it costs—across the Opus 5.5, Sonnet 5.5, and Haiku 5.5 tiers.

People just getting into SRC and crowdsourced security testing often hit the same wall: the tool is installed, but they’re not sure which targets they can test and which ones they can’t. Developers who want to run a security self-check on their own website have another worry: the AI going off track and accidentally touching third-party services. This article is about the Claude Code skill pack that auto-loads by topic and how to get it running within a clearly authorized scope.

This isn’t an “install it and you’ll start finding bugs” sales pitch. The skill pack can help you structure the workflow and suggest verification steps, but it won’t make authorization-boundary calls for you, and it doesn’t guarantee you’ll find anything. What follows covers four steps: define scope, install the skill, practice in a range, and review the report. Along the way, I’ll also touch on how to choose a model and keep costs under control.

What you’ll get: By the end of this article, you’ll have two installation paths, an authorization scope checklist, step-by-step instructions for running the full workflow in a local practice range, a price comparison across the three model tiers, and a report review checklist.

claude-code-authorized-security-testing-claude-bughunter-en-image-0


Key Points for Authorized Security Testing with Claude Code

Let’s start with a table that lays out the main thread of this article. Order matters: scope always comes before installation, and review always comes before submission.

Key point Description Value
Define the authorized scope first Write out a checklist covering domains, IP ranges, accounts, allowed test types, time windows, prohibited items, and contacts Avoid going out of bounds and have documentation to point to if something goes wrong
Then install the skill pack Plugin installation (recommended) or copy-based installation via git clone; HackerOne account optional Either method gets you the same set of skills and commands
Get the lab environment working first Walk through a practice environment such as DVWA, OWASP Juice Shop, or Hacker101 Get familiar with the workflow without trial and error on a real project
Choose models by phase Haiku 5.5 for organizing, Sonnet 5.5 as the main workhorse, Opus 5.5 for review Keep token consumption from the Agent’s long context under control
Human review of the report Check scope, reproduction, impact, evidence, and remediation recommendations item by item; redact PII The deliverable can stand up to client or platform review

What Is Claude-BugHunter? Start With the Repo’s Own Description

Claude-BugHunter is an open-source Claude Code skill pack on GitHub at github.com/elementalsouls/Claude-BugHunter. It uses the MIT license, and its primary language is Python. According to GitHub API data, as of 2026-11-23 the repo had 17,897 stars and 1,977 forks. It was created on 2026-05-05, its most recent push was on 2026-11-22, and it has 17 open issues.

According to the GitHub README and the official site’s description, it includes 83 skills, 15 slash commands, and also comes with test project folder scaffolding and Burp MCP integration. At the directory level, skills/ contains 83 skill entries and commands/ contains 15 slash command files, including commands directly tied to the workflow such as scope, triage, validate, and report. Note that the latest release is v2.1 from 2026-06-05; the release notes lag behind the main branch, so the counts in the directories should be based on main.

claude-code-authorized-security-testing-claude-bughunter-en-image-1

What Automatic Skill Loading Means for Authorized Security Testing

The most unusual part of this skill pack is that it “loads automatically by topic.” The README’s original wording means: describe what you’re testing in natural language, and the relevant skills load automatically—no need to call them by name. That lowers the barrier for newcomers quite a bit, but it also introduces a risk: if you casually say something unclear, the model may load skills you didn’t intend to use.

So in authorized security testing with Claude Code, your description itself is a control mechanism. Before you say anything, spell out who the target is, how far your authorization extends, and what must not be touched. That’s far more effective than correcting things after the fact. The official site also states that the validation checkpoints included in the skill pack trigger automatically when things are unclear, but that’s only a fallback—you still have to define the scope yourself.


Why You Need to Define Scope First for Authorized Security Testing with Claude Code

The official site is pretty direct about who this is for: the skill pack is only meant for assets you own or are authorized to assess—including in-scope bug bounty programs, penetration tests with signed rules of engagement (RoE), CTF competitions, and your own labs. Any target that doesn’t fall into one of those categories shouldn’t show up in your Claude Code session.

In practice, I recommend writing the scope into a text file, putting it in the testing project folder, and having Claude Code read it first every time you start a session. The table below is an authorization scope checklist you can copy as-is.

Scope item What to spell out Common oversights
Domains and subdomains Allowed root domains, subdomain lists, or wildcard rules Assuming “the root domain is in scope” means “all subdomains are in scope”
IP ranges Authorized IPs or network ranges Shared cloud IPs may have other customers behind them
Test accounts Test accounts provided by the project owner and their privilege levels Testing with your own real account or someone else’s account
Allowed test types Testing methods explicitly allowed by the program rules Ignoring clauses like “no automated scanning” in the program
Time window Start and end dates and time slots when testing is allowed Continuing to run after authorization expires
Prohibited items Assets, features, and actions explicitly excluded Third-party services, payment channels, etc. getting included by default
Contacts Contacts and channels to use when you go out of scope or hit an anomaly Not knowing who to contact when you find an out-of-scope issue

If you’re doing a self-check on your own website, you should write this checklist too. Pay special attention to third-party services your site depends on—like CDNs, object storage, and third-party login. They aren’t yours, and you shouldn’t include them in testing just because they’re “attached to my website.”

claude-code-authorized-security-testing-claude-bughunter-en-image-2


Claude Code Authorized Security Testing Quick Start

The steps below follow the order you’d run them in the terminal. This assumes you’ve already installed Claude Code and can start a session normally.

Step 1: Configure model access for Claude Code

By default, Claude Code connects to Anthropic’s official service, but you can point it at an API gateway instead. Using APIYI (apiyi.com) as an example, follow the instructions at docs.apiyi.com/scenarios/programming/claude-code and set two environment variables in your terminal: export ANTHROPIC_AUTH_TOKEN=sk-你的令牌 and export ANTHROPIC_BASE_URL=https://api.apiyi.com. Note that Claude Code uses the root domain here—don’t add /v1.

If you also write Python scripts for supporting tasks like report formatting, those use the OpenAI-compatible interface. In that case, the base_url should be https://api.apiyi.com/v1. The two addresses serve different purposes, and mixing them up is the most common configuration mistake.

When you create a token in the APIYI (apiyi.com) dashboard, we recommend choosing the ClaudeCode group for Claude Code use cases. It comes with a 5% discount by default (you pay 95% of the listed price), and you can stack top-up bonus credit on top. Also, if startup gets stuck at the official website’s authorization flow, you can skip it by writing {"hasCompletedOnboarding": true} to ~/.claude.json.

🚀 Quick start: First, use the free trial credit for new users on APIYI (apiyi.com) to get Claude Code connected. Once you’ve confirmed it can hold a normal conversation, install the skills pack—this can save you half the troubleshooting detours.

Step 2: Pick One of Two Installation Paths

Both paths install the same set of skills and commands. The difference is where the skills live and how you update them.

Comparison Plugin install (recommended) Copy install
Entry point Inside a Claude Code session System terminal
Key commands /plugin marketplace add elementalsouls/Claude-BugHunter, then /plugin install claude-bughunter@elementalsouls git clone https://github.com/elementalsouls/Claude-BugHunter.git, cd Claude-BugHunter, bash scripts/install.sh
Where skills live Loaded under the claude-bughunter: namespace, not copied into ~/.claude/ Written to local config by the install script
Windows Same as above pwsh ./scripts/install.ps1
Multiple harnesses Claude Code only bash scripts/install.sh --all --burp-mcp
Best for Claude Code-only users who want clean isolation People who want to read the source, modify skills, or run several harnesses at once

The nice thing about the plugin install is that it doesn’t pollute your existing ~/.claude/ directory, and uninstalling is clean. The copy install suits people who want to read through the skill files before deciding whether to use them — which is actually a good habit for security learners: you should know what the thing you’re installing will make the model do. According to the README, besides Claude Code it also supports OpenCode, OpenAI Codex CLI, Hermes Agent, and Google AntiGravity.

Step 3: Should You Fill In the HackerOne Account?

During installation, you’ll be asked for a HackerOne API username and token. This is optional and is only used by HackerOne MCP to read your private programs and your own reports.

Leaving it blank won’t get in the way: all the skills, commands, and public MCP tools (such as duplicate report search and program scope lookup) will still work. If you’re new to this, leave it blank for now and add it later when you actually join a HackerOne private program. And don’t casually paste the token into a chat session or screenshot.

Step 4: Run the Full Workflow Once in a Local Practice Lab

The README lists DVWA, OWASP Juice Shop, Hacker101, and authorized programs as its practice and validation targets. For your first run, pick a practice lab you can start locally, deploy it according to its official docs, and make it listen only on localhost so traffic never leaves your machine.

Then create a test project folder and put the scope list from the previous section in it. The scope is the address and port of the local lab. Once Claude Code is running, don’t start with “Test this for me.” Instead, say something like this: “The target for this session is only the OWASP Juice Shop practice instance running on localhost on this machine. Use the scope list in the project folder as the source of truth for scope. Do not access any address outside that scope. Please read the scope list first and repeat it back to confirm.”

After the scope is confirmed, move through the workflow: start by using the scope-related commands to lock down the scope. When you hit results that are hard to judge, hand them to triage and validate for severity classification and validation. Finally, use report to generate a report draft. After one full run, go back through the session log and check whether the model tried to access any out-of-scope address. That’s the metric most worth watching during the practice phase.

Step 5: Switch Models by Stage

In Claude Code, you can use /model to switch models. You don’t need to run the most expensive model throughout the practice stage—allocating by task weight is more sensible.

Model Input (per 1M tokens) Output (per 1M tokens) Cache read (per 1M tokens) Best for Available platform
claude-haiku-5-5 $0.1 (≤100K tier) / $0.5 (>100K tier) $0.5 / $2.5 $0.01 / $0.05 Organizing scope lists, summarizing logs, formatting reports APIYI apiyi.com
claude-sonnet-5-5 $2 $10 $0.1 Primary model for cyber range workflows, day-to-day analysis, and validation APIYI apiyi.com
claude-opus-5-5 $4 $20 $0.2 Complex judgment, final report review APIYI apiyi.com

The prices above come from the APIYI model pricing master list at docs.apiyi.com/models; data updated 2026-11-22 09:58 (UTC+8). Opus 5.5 supports the chat and messages endpoints, and available groups include ClaudeCode, Claude_Reverse, Claude_Enterprise, Default, and SVIP.

claude-code-authorized-security-testing-claude-bughunter-en-image-3

There’s one cost-related point you need to know upfront: APIYI’s official docs explicitly warn that long-context tasks like writing code and deep Agent exploration can consume a lot on pay-as-you-go billing—a $5 top-up might not even cover one deep research run. Security testing Agent sessions fall squarely into this category, and the context keeps growing with each validation step. If your usage is heavy and you can connect directly to the official site, the docs also suggest considering a subscription plan, which is more cost-effective.

💰 Cost optimization: During the practice stage, set Sonnet 5.5 as the default, switch to Opus 5.5 only for final review, and hand organizing-type tasks to Haiku 5.5. On APIYI apiyi.com, use a ClaudeCode group token at 5% off; pay-as-you-go billing is also easier to reconcile.


Claude Code Authorized Security Testing Report Review Checklist

Auto-loading the skill doesn’t mean it automatically digs up vulnerabilities. The model’s conclusions may be false positives, the reproduction steps may be missing a link in the chain, and the impact may be overstated — all of that needs a human to verify. The report ultimately goes to three parties: the project team, the platform team, and the future you who comes back to check the records.

Review Item What to Check What to Do If It Fails
Scope Is every finding’s target on the scope list? Delete it or flag it separately — stop and ask the point of contact first
Reproduction Can a third party follow the steps and reproduce it? Fill in the prerequisites, account permissions, and environment details
Impact Is the impact description backed by evidence, or is it exaggerated? Write only what you can prove; label speculation separately
Evidence Are the screenshots and request logs complete and matched to the finding? Re-collect the evidence; delete anything unrelated to this finding
Remediation Recommendations Are they specific and actionable? Rewrite them for the project’s tech stack — avoid vague generalities
PII Redaction Are names, phone numbers, emails, tokens, etc. in the evidence masked? Redact everything before delivery
Unverified Items Are they listed separately and kept out of the confirmed results? Move them into an “Unverified” subsection and explain why

There’s also one hard rule: if you find an out-of-scope issue during testing, stop and confirm with the project’s point of contact instead of casually digging deeper. When you wrap up, write the test scope, start and end times, confirmed findings, and unverified items into the deliverable so the client or platform can review it easily.


Frequently Asked Questions

Q1: What is Claude-BugHunter?

It’s a Claude Code skill pack for authorized security testing, open-sourced on GitHub under the MIT license. According to the repo’s own description, it ships with 83 skills and 15 slash commands, and skills load automatically based on the topic you describe. The maintainers state it’s only for assets you own or are authorized to test.

Q2: How is doing authorized security testing with Claude Code different from a traditional scanner?

Traditional scanners run batches of fixed rules. Paired with a skill pack, Claude Code feels more like a conversational assistant that organizes steps and suggests verification based on what you describe. Its strength is process organization and report writing, but its judgment can be wrong — which is exactly why you need a clearly stated scope and human review.

Q3: What’s the current version and update cadence of Claude-BugHunter?

The latest release is v2.1, published on 2026-06-05, but the main branch keeps moving: the most recent push was 2026-11-22, and the directory has already grown to 83 skills. The release notes lag behind main, so if you want the newest content, use the plugin or clone the main branch.

Q4: What scenarios are a good fit for authorized security testing with Claude Code?

– **SRC and bug bounty beginners**: practice process and report writing on DVWA, Juice Shop, and Hacker101
– **Developer self-checks**: run a documented review of websites and test environments you own
– **Authorized penetration projects**: help organize evidence and reports in projects covered by a signed RoE
– **CTF competitions**: assist with analysis within the limits the challenge rules allow

Q5: How do I connect Opus 5.5 / Sonnet 5.5 / Haiku 5.5 to Claude Code through an API?

1. Register at APIYI (apiyi.com) and select the ClaudeCode group when creating a token (5% off by default)
2. Set `ANTHROPIC_AUTH_TOKEN` to your token and `ANTHROPIC_BASE_URL` to `https://api.apiyi.com`
3. Launch Claude Code and use `/model` to switch to the model you need

When helper scripts go through the OpenAI-compatible interface, use `https://api.apiyi.com/v1` as the base_url.

Q6: What do I lose if I don’t fill in a HackerOne account?

You only lose the HackerOne MCP’s ability to read private programs and your own reports. All skills, commands, and public tools — duplicate report search, program scope lookup, and so on — keep working normally.

Q7: What are the known limitations or things to watch out for?

– **No guaranteed findings**: automatic skill loading only helps organize the process; conclusions need human verification
– **Cost**: long-context agent tasks burn tokens fast — the maintainers warn that $5 may not cover a single deep investigation
– **Upstream policy**: APIYI is a gateway, not a model host, so upstream content policies, rate limits, and outages pass straight through, and some requests may be rejected upstream
– **Scope responsibility**: legal and compliance responsibility for going out of bounds rests with the user — the tool can’t take that on for you

Q8: Beyond the practice range, when is it OK to touch real projects?

Meet at least three conditions: you’ve run the full process end to end on a practice range and can independently review the report; you have a written scope of authorization in hand; and you know who to contact when something goes wrong. Miss any one of them, and stay on the range.


Claude Code Authorized Security Testing: Key Takeaways

  • Scope first: Before you start, write down the domains, IPs, accounts, test types, time window, prohibited items, and contact list
  • Two install paths: The plugin install is clean and isolated; the copy install makes it easy to read the source code and run multiple harnesses
  • Account optional: HackerOne credentials only affect reading private projects — beginners can leave them blank
  • Practice in a lab first: Get the workflow running in DVWA, Juice Shop, and Hacker101 before you touch real authorized projects
  • Divide the models’ work: Haiku 5.5 for organizing, Sonnet 5.5 as the workhorse, Opus 5.5 for review — this keeps long-context costs under control
  • Easy access: Connect through the ClaudeCode group on APIYI apiyi.com, 5% off by default
  • Human sign-off: Check the report item by item — scope, reproduction, impact, evidence, remediation, redaction

Summary

Doing authorized security testing with Claude Code isn’t about how many skills you’ve installed — it’s about the order of the process:

  1. Define scope first: The scope list is the boundary of the whole test, and the basis you fall back on when something goes wrong
  2. Then install the skills: Plugin or copy — either one. Add a HackerOne account later if you need it
  3. Get it working in a lab: Familiarize yourself with the auto-loading behavior in a local practice environment and check whether it shows any tendency to go out of scope
  4. Review the report: What the model gives you is a draft; the deliverable has to be checked item by item by a human

Claude-BugHunter lowers the barrier to organizing a testing workflow, but boundary awareness and review skills are something only you can build. My suggestion: first get Claude Code connected on APIYI apiyi.com using the free trial credits, run the first round in a local lab with Sonnet 5.5, and then decide on your model division of labor and budget.


📚 References

  1. GitHub – Claude-BugHunter: Open-source repository for the skill pack

    • Link: github.com/elementalsouls/Claude-BugHunter
    • Notes: The README covers installation, practice targets, and the skill catalog; the details come from the repository’s own description
  2. Claude-BugHunter official site: Scope of use and licensing statement

    • Link: elementalsouls.github.io/Claude-BugHunter
    • Notes: Explicitly lists which asset types you can use and explains the verification stages
  3. APIYI model price master list: Claude 5.5 series pricing and tiers

    • Link: docs.apiyi.com/models
    • Notes: Input, output, and cache-read pricing for Opus 5.5, Sonnet 5.5, and Haiku 5.5
  4. APIYI Claude Code integration docs: Environment variables and tier configuration

    • Link: docs.apiyi.com/scenarios/programming/claude-code
    • Notes: ANTHROPIC_BASE_URL, token tiers, and cost reminders

Author: APIYI Tech Team
Technical discussion: If you have questions about Claude Code integration or billing, feel free to reach us through the APIYI homepage at apiyi.com. More resources are available in the docs.apiyi.com documentation center.

Similar Posts