Skip to main content
subagent CX Codex

sast-devils-advocate — Claude Code subagent for SAST review

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.

no license ★ 1,298 updated 2026-06-12

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/sast-devils-advocate.md
Open on GitHub

What sast-devils-advocate does

sast-devils-advocate examines a vulnerability candidate and tries to disprove it by tracing the code, external input paths and checks around the dangerous operation. A finding remains open if the subagent cannot refute it.

It checks types and exploitation conditions, and considers mitigations and existing static-analysis results. For PHP findings, it also examines items such as middleware, input filters and prepared SQL queries. The project needs to contain the code being reviewed.

What it helps with

  • dismiss a false-positive SAST finding
  • trace whether an external input can reach a vulnerable path
  • find a missed check in a call chain
  • assess whether protections or runtime conditions block exploitation
  • review a PHP finding against filters and middleware

Example prompts for the agent

  • Check this SAST finding and look for reasons it cannot be exploited.
  • Trace external input to the dangerous operation and check for missing validation.
  • Review this PHP finding against middleware, input filters and SQL parameters.

How to install sast-devils-advocate

Manually: put the files in place

.claude/agents/sast-devils-advocate.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about sast-devils-advocate

How do I install sast-devils-advocate in Claude Code?

Add .claude/agents/sast-devils-advocate.md to the project.

What does sast-devils-advocate do?

It challenges SAST vulnerability candidates and searches for evidence that a finding is not exploitable. If it cannot refute the finding, it remains open.

How do I run sast-devils-advocate?

Run it with /sast.

Similar subagents

All subagents for Security →

From the same set43

The whole set →
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 skill that challenges SAST vulnerability candidates against the code. Run it with /sast to look for reasons a finding cannot be exploited. 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 pentest-agents-chain-table pentest-agents-chain-table is a Claude Code rule that directs security audit agents to chain verified vulnerabilities into exploit paths. CX Codex +1 ★ 1,298repo stars

Project sponsors

Companies that keep this analytics open