Skip to main content
skill CX Codex

sast-gap-analyzer — Claude Code skill: what it does, how to install

sast-gap-analyzer analyzes traced data flows to uncover validation gaps in source code. Catches incomplete boundary checks, type mismatches, and race conditions before risky operations.

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-gap-analyzer -a claude-code
Open on GitHub

What sast-gap-analyzer does

The skill evaluates traced data flows supplied in flows.json alongside warning lists like static-warnings.json from CodeQL, Semgrep, or Cppcheck. It spots flaws inside validation logic that looks correct on the surface. These include off-by-one boundary comparisons, integer truncation across differing variable widths, time-of-check to time-of-use gaps, and cleanup paths that bypass filters.

For PHP targets, the analyzer flags pattern-specific risks such as loose comparisons on token hashes, path traversal via stream wrappers, and edge-case bypasses in URL validation. This analyzer requires the Opus model because tracking contradictory interaction states across components exceeds the reasoning capacity of smaller models.

What it helps with

  • identify incomplete boundary checks before memory write calls
  • detect validation bypasses caused by integer type truncation
  • locate race conditions between access verification and resource consumption
  • inspect PHP path normalization and URL filter logic for bypass flaws

Example prompts for the agent

  • /sast examine flows.json to detect missing boundary checks across the parser
  • /sast compare static-warnings.json with traced data flows in the request handler

How to install sast-gap-analyzer

1Skills CLI (Vercel)

npx skills add H-mmer/pentest-agents --skill sast-gap-analyzer -a claude-code

2Manually: put the files in place

~/.claude/skills/agent-sast-gap-analyzer/SKILL.md

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

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about sast-gap-analyzer

How do I install sast-gap-analyzer in Claude Code?

Run npx skills add H-mmer/pentest-agents --skill agent-sast-gap-analyzer -a claude-code in your terminal.

What does sast-gap-analyzer do?

It reviews traced data flows in source code to find incomplete, missing, or bypassable validation steps guarding dangerous operations.

What inputs are required to run this skill?

It requires flows.json containing traced data flows, direct access to the source tree, and accepts optional static findings in static-warnings.json.

Similar skills

All skills for Security →

From the same set43

The whole set →
report-writer report-writer turns vulnerability findings into bug bounty submissions, penetration test reports, or technical write-ups. Use it when findings need clear evidence, impact, and remediation. CX Codex +1 ★ 1,298repo stars sast-danger-mapper sast-danger-mapper catalogs hazardous source code operations using pattern matching without speculating on exploitability. CX Codex +1 ★ 1,298repo stars sast-danger-mapper sast-danger-mapper — a subagent that finds dangerous operations in source files: memory handling, type casts, arithmetic at trust boundaries, resource deallocation. CX Codex +1 ★ 1,298repo stars report-writer The report-writer subagent for Claude Code compiles vulnerability findings into reports for pentests, bounty submissions, and technical writeups. CX Codex +1 ★ 1,298repo stars sast-gap-analyzer sast-gap-analyzer — a subagent for Claude Code, Cursor and other IDEs that identifies where validation chains break down — missing, insufficient or bypassable checks. Detects bugs between code fragments that each look correct in isolation. CX Codex +1 ★ 1,298repo stars dast-devils-advocate dast-devils-advocate — a skill that catches inflated vulnerabilities in DAST reports. CX Codex +1 ★ 1,298repo stars dast-devils-advocate dast-devils-advocate — an adversarial subagent that questions DAST findings, reruns PoC commands, flags publicly accessible data, and lowers inflated severity ratings before you submit reports. CX Codex +1 ★ 1,298repo stars ssti-hunter ssti-hunter is a Claude Code skill that investigates server-side template injection (SSTI). It activates for user-controlled templates, rule engines, and rendered messages. CX Codex +1 ★ 1,298repo stars

Project sponsors

Companies that keep this analytics open