# sast-devils-advocate

sast-devils-advocate is a Claude Code skill that challenges SAST vulnerability candidates against the code. Run it with /sast to look for reasons a finding cannot be exploited.

- 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-devils-advocate/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-devils-advocate

## What it does

The skill examines a reported vulnerability and tries to disprove it using the project’s source. It checks whether the cited code and entry point exist, whether the dangerous operation matches the report, and whether validation, types, reachability, or mitigations change the claim. A finding that survives those checks remains a candidate.

PHP checks cover middleware, `php.ini` settings, SQL parameter use, sanitizers, and type constraints. The skill also looks at CI warnings and static-analysis annotations. It needs the project source; what it can establish depends on the code and configuration available to inspect.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/agent-sast-devils-advocate/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-devils-advocate
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/agent-sast-devils-advocate/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-devils-advocate/SKILL.md

## When to use it
- discard a false-positive SAST report using source code
- trace whether an external input can reach a reported function
- find validation or access checks missed by the original analysis
- review a PHP finding against middleware and sanitizers

## Example prompts
- Use `/sast` to challenge the SAST finding in `src/Handler.php`.
- Run `/sast` on this report and trace the path from external input to the risky operation.
- Check this PHP SQL injection claim with `/sast`, including how the query binds its values.

## Similar
- [sast-sca-security-analyzer](https://affpapa.org/en/nevibecode/agents/sast-sca-security-analyzer.md) — subagent · ★ 41430 repo stars
- [Devils Advocate](https://affpapa.org/en/nevibecode/agents/devils-advocate.md) — subagent · ★ 41430 repo stars
- [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-scanning](https://affpapa.org/en/nevibecode/skills/sast-scanning.md) — skill · 415 installs
- [devils-advocate](https://affpapa.org/en/nevibecode/skills/devils-advocate.md) — skill · ★ 1729 repo stars

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
