Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add H-mmer/pentest-agents --skill sast-devils-advocate -a claude-code
Open on GitHub

What 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 /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.

How to install sast-devils-advocate

1Skills CLI (Vercel)

npx skills add H-mmer/pentest-agents --skill sast-devils-advocate -a claude-code

2Manually: put the files in place

~/.claude/skills/agent-sast-devils-advocate/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/agent-sast-devils-advocate/

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.

Similar skills

All skills for Security →

From the same set43

The whole set →
business-logic The business-logic subagent probes application workflows for logic flaws, from price tampering to account-takeover paths. Use it when auditing purchases, sign-in flows, or trial limits. CX Codex +1 ★ 1,298repo stars browser-verifier browser-verifier — a subagent that verifies client-side vulnerabilities in a real browser. Takes a curl-based finding and determines whether it executes in the browser. CX Codex +1 ★ 1,298repo stars sast-hunter sast-hunter validates candidate vulnerabilities from static analysis. Builds minimal test cases and runs them under sanitizers like ASan to confirm bugs or reject false alarms. CX Codex +1 ★ 1,298repo stars browser-stealth-agent The browser-stealth-agent subagent drives Camoufox through a local REST server to inspect bot-protected pages, verify client-side bugs, and save evidence. CX Codex +1 ★ 1,298repo stars sast-devils-advocate sast-devils-advocate is a Claude Code subagent that challenges SAST findings by looking for reasons a reported flaw cannot be exploited. Run it with /sast. CX Codex +1 ★ 1,298repo stars pentest-agents-payloads-7 The pentest-agents-payloads-7 rule for Claude Code provides test scenarios for SSRF, parameter injection, prototype pollution, and OAuth flaws during web security audits. CX Codex +1 ★ 1,298repo stars pentest-agents-payloads-1 pentest-agents-payloads-1 is a Claude Code rule that loads an XSS payload reference for pentesting, from basic vectors to WAF bypass via stacked encoding. CX Codex +1 ★ 1,298repo stars pentest-agents-payloads-4 pentest-agents-payloads-4 is a Claude Code rule with examples for reviewing web vulnerabilities, from JWT and deserialization to GraphQL and OAuth. It supports application security assessments. CX Codex +1 ★ 1,298repo stars

Project sponsors

Companies that keep this analytics open