# pentest-agents-mistakes

pentest-agents-mistakes is a rule that collects 11 mistakes agents make in security testing, from hallucinated paths to fake PoCs. Read it before a vulnerability hunt.

- 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-mistakes.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-mistakes

## What it does

This is a registry of real failures. Each rule came from a session where an agent wasted time, got corrected, or shipped a weak finding. The top 11 cover the essentials: save artifacts to disk, never invent file paths, validate before reporting, use a real browser for WAF and JavaScript checks, prove impact with actual data not theory, test sibling endpoints and fields, match CVSS version to the platform, read policy before the first request, only call a finding CONFIRMED when you have a working PoC on the live target, recalibrate after correction.

One rule stops a common trap: satisfying gate checkers with markers instead of evidence. If writing a string clears a gate but no real work happens, the gate fails. Other rules flag sneakier problems: re-asking for credentials or tokens that are already in session memory, listing findings when asked to rank them, using placeholder usernames like `researcher` when the real identity is in `policy.md`.

## Install

### GitHub Copilot (native platform)

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

### Claude Code

**Manually: put the files in place**
- File: `.claude/rules/pentest-agents-mistakes.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-mistakes.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-mistakes.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/pentest-agents-mistakes.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-mistakes.instructions.md

## When to use it
- Distinguish a real proof of impact from a fingerprint or chain of inference
- Keep findings persisted so the next session doesn't re-discover everything
- Pick the right CVSS scoring system for each bug bounty platform
- Break the pattern when the same mistake repeats
- Stop agents from gaming checklists with fake markers instead of work

## Example prompts
- Read pentest-agents-mistakes at the start of `/hunt` on a new scope
- If an agent repeats the same mistake twice, point it to the relevant rule
- Verify credentials and test accounts are loaded into session memory before kicking off a recon phase

## Similar
- [supabase-pentest](https://affpapa.org/en/nevibecode/skills/supabase-pentest.md) — skill · 748 installs
- [cairn-ai-pentest](https://affpapa.org/en/nevibecode/skills/cairn-ai-pentest.md) — skill · 378 installs
- [net-pentest](https://affpapa.org/en/nevibecode/skills/net-pentest.md) — skill · ★ 106 repo stars
- [web-pentest](https://affpapa.org/en/nevibecode/skills/web-pentest.md) — skill · 722 installs
- [pentest-toolkit-pro-html](https://affpapa.org/en/nevibecode/skills/pentest-toolkit-pro-html.md) — skill · 344 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
