# pentest-agents-hunting

The pentest-agents-hunting rule structures security hunting around scope, practical impact, and attack chains. It helps an agent drop weak leads and investigate confirmed bugs more deeply.

- rule · `type=rule` · Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Cline · ★ 1298 repo stars
- Author: H-mmer
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/H-mmer/pentest-agents/tree/HEAD/providers/copilot/.github/instructions/pentest-agents-hunting.instructions.md
- Updated: 2026-06-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/pentest-agents-hunting

## What it does

The rule applies across the project. Before testing, it directs the agent to read the program’s scope limits and judge whether an attacker could cause real harm without unusual actions from a user. A finding with no practical consequence, such as a standalone open redirect, should be set aside.

Automation is reserved for reconnaissance; hands-on testing is used to investigate vulnerabilities. The rule favors understanding one target in depth, checking sibling API endpoints, and looking for related flaws after confirming an initial bug. It also sets limits on unproductive searches: change direction when progress stalls, and investigate a possible second bug before writing up the first.

Scope matters here. An out-of-scope request can put access at risk. Before reporting exposed data, check whether a visitor can already see it through the web interface; for a leaked API key, test what that credential can access.

## Install

### GitHub Copilot (native platform)

**Manually: put the files in place**
- File: `.github/instructions/pentest-agents-hunting.instructions.md` — The applyTo field sets which files it applies to

### Claude Code

**Manually: put the files in place**
- File: `.claude/rules/pentest-agents-hunting.md` — The paths frontmatter field limits the files: move applyTo from the source into paths

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/pentest-agents-hunting.mdc` — Frontmatter: description, globs, alwaysApply. Move applyTo from the source into globs, or the rule will not attach on its own

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/pentest-agents-hunting.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/pentest-agents-hunting.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/H-mmer/pentest-agents/tree/HEAD/providers/copilot/.github/instructions/pentest-agents-hunting.instructions.md

## When to use it
- discard leads with no practical security impact
- check whether testing stays within the authorized scope
- inspect related API endpoints for access-control flaws
- extend a confirmed bug into a higher-impact attack chain
- verify the permissions granted by a leaked API key

## Example prompts
- Check this finding against pentest-agents-hunting and assess whether it could cause real harm.
- Compare my requests with the testing scope and suggest another endpoint to inspect.
- Look for related endpoints and test whether this vulnerability can form part of an attack chain.

## Similar
- [pentest-agents-bug-bounty-framework](https://affpapa.org/en/nevibecode/skills/pentest-agents-bug-bounty-framework.md) — skill · 1300 installs
- [security-pentest-planner](https://affpapa.org/en/nevibecode/skills/security-pentest-planner.md) — skill · 297 installs
- [supabase-pentest](https://affpapa.org/en/nevibecode/skills/supabase-pentest.md) — skill · 748 installs
- [web-pentest](https://affpapa.org/en/nevibecode/skills/web-pentest.md) — skill · 722 installs
- [cairn-ai-pentest](https://affpapa.org/en/nevibecode/skills/cairn-ai-pentest.md) — skill · 378 installs
- [pentest-checklist](https://affpapa.org/en/nevibecode/skills/pentest-checklist.md) — skill · 336 installs

From the same set: [h-mmer/pentest-agents](https://affpapa.org/en/nevibecode/by/h-mmer/pentest-agents.md) — 43 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
