sast-devils-advocate — Claude Code skill for SAST review
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.
no license ★ 1,298 updated 2026-06-12
npx skills add H-mmer/pentest-agents --skill sast-devils-advocate -a claude-codeWhat sast-devils-advocate 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.
What it helps with
- 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 for the agent
- Use
/sastto challenge the SAST finding insrc/Handler.php. - Run
/saston 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.
How to install sast-devils-advocate
1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-devils-advocate -a claude-code2Manually: put the files in place
~/.claude/skills/agent-sast-devils-advocate/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/agent-sast-devils-advocate/
1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-devils-advocate -a codex2Manually: put the files in place
.agents/skills/agent-sast-devils-advocate/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-devils-advocate -a cursor2Manually: put the files in place
.cursor/skills/agent-sast-devils-advocate/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install H-mmer/pentest-agents providers/cursor/.cursor/skills/agent-sast-devils-advocate2Manually: put the files in place
.github/skills/agent-sast-devils-advocate/SKILL.md1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-devils-advocate -a gemini-cli2Platform CLI
gemini skills install https://github.com/H-mmer/pentest-agents --path providers/cursor/.cursor/skills/agent-sast-devils-advocateManually: put the files in place
.devin/skills/agent-sast-devils-advocate/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about sast-devils-advocate
How do I install sast-devils-advocate in Claude Code?
Run npx skills add H-mmer/pentest-agents --skill sast-devils-advocate -a claude-code. The skill file is placed at ~/.claude/skills/agent-sast-devils-advocate/SKILL.md.
What does sast-devils-advocate do?
It tests SAST vulnerability candidates against the source code, looking for reasons a report is false, such as an unreachable path, existing validation, or incorrect type analysis.
How do I run sast-devils-advocate?
Use /sast to examine a vulnerability candidate against the project source.