# sast-hunter

The sast-hunter skill builds and runs a PoC for a specific suspected vulnerability. Use it after the candidate has passed code and condition checks.

- skill · `type=skill` · Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 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/cursor/.cursor/skills/agent-sast-hunter/SKILL.md
- Updated: 2026-06-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/sast-hunter

## What it does

sast-hunter takes a candidate with an entry point, a data flow, and a PoC hint, along with the affected source file and build details. It does not search a codebase for vulnerabilities; its task is to test a hypothesis that has already been defined. It first looks up relevant techniques and similar payload patterns. If MCP cannot be reached, it proceeds using its own knowledge.

The PoC format depends on the target: the skill can prepare a network script, a malformed input file, or a small program that calls a library function. It then runs the check with ASan, UBSan, or Valgrind and examines the result. C/C++ PoCs can be built with sanitizers; the exact build command depends on project paths and libraries.

The candidate needs to pass prior validation, or there is no defined hypothesis to test. Build details are required, and running the project may depend on its own environment and dependencies.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill sast-hunter -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/agent-sast-hunter/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/agent-sast-hunter/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill sast-hunter -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/agent-sast-hunter/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill sast-hunter -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/agent-sast-hunter/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install H-mmer/pentest-agents providers/cursor/.cursor/skills/agent-sast-hunter
```

2. **Manually: put the files in place**
- File: `.github/skills/agent-sast-hunter/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add H-mmer/pentest-agents --skill sast-hunter -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/H-mmer/pentest-agents --path providers/cursor/.cursor/skills/agent-sast-hunter
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/agent-sast-hunter/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

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/cursor/.cursor/skills/agent-sast-hunter/SKILL.md

## When to use it
- build a PoC for a specific vulnerability candidate
- test a suspected bug with a sanitizer
- reproduce a trigger condition in a network protocol
- check whether a vulnerability hypothesis holds at runtime

## Example prompts
- Use `/sast` to build and run a PoC for this candidate in `src/parser.c` with the project build details.
- Test the trigger described in `poc_hint` and check the result with ASan.
- Create a PoC for this specific candidate, then run it with the project's `build_info`.

## Similar
- [sast-configuration](https://affpapa.org/en/nevibecode/skills/sast-configuration.md) — skill · 10800 installs
- [sast-scanning](https://affpapa.org/en/nevibecode/skills/sast-scanning.md) — skill · 415 installs
- [security-scanning-security-sast](https://affpapa.org/en/nevibecode/skills/security-scanning-security-sast.md) — skill · ★ 50109 repo stars
- [security-sast](https://affpapa.org/en/nevibecode/commands/security-sast.md) — command · ★ 42780 repo stars
- [sast-sca-security-analyzer](https://affpapa.org/en/nevibecode/agents/sast-sca-security-analyzer.md) — subagent · ★ 41430 repo stars
- [mantis-reproduce](https://affpapa.org/en/nevibecode/skills/mantis-reproduce.md) — skill · 1600 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
