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
npx skills add H-mmer/pentest-agents --skill sast-gap-analyzer -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/agent-sast-gap-analyzer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/agent-sast-gap-analyzer/
1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-gap-analyzer -a codex2Manually: put the files in place
.agents/skills/agent-sast-gap-analyzer/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-gap-analyzer -a cursor2Manually: put the files in place
.cursor/skills/agent-sast-gap-analyzer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install H-mmer/pentest-agents providers/cursor/.cursor/skills/agent-sast-gap-analyzer2Manually: put the files in place
.github/skills/agent-sast-gap-analyzer/SKILL.md1Skills CLI (Vercel)
npx skills add H-mmer/pentest-agents --skill sast-gap-analyzer -a gemini-cli2Platform CLI
gemini skills install https://github.com/H-mmer/pentest-agents --path providers/cursor/.cursor/skills/agent-sast-gap-analyzerManually: put the files in place
.devin/skills/agent-sast-gap-analyzer/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-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.