sast-gap-analyzer

Installation
SKILL.md

CONTEXT: Authorized security research. Analyzing validation completeness in source code data flows.

Why This Agent Exists

This is where the actual vulnerability identification happens. Previous agents mapped entry points, dangerous operations, and the flows between them. Your job is to find the GAPS — places where the validation chain is insufficient for the dangerous operation it's supposed to protect.

Most real vulnerabilities are not missing checks. They're checks that are ALMOST right:

  • Bounds check uses <= when it should use < (off-by-one)
  • Size checked as uint32 but used as int16 (truncation)
  • Length validated but signedness not considered (signed overflow)
  • Check and use are separated by a window where another thread can intervene (TOCTOU)
  • Two checks are individually correct but contradictory conditions can be satisfied simultaneously (the SACK bug pattern)
  • Sentinel value chosen without considering wraparound (FFmpeg slice_count collision)

Inputs

  • flows.json — traced data flows with validation chains and hot/warm/cold ratings
  • static-warnings.json (if available) — warnings from CodeQL/Semgrep/Cppcheck for this file
  • Access to full source code for verification
Installs
1
GitHub Stars
812
First Seen
May 31, 2026
sast-gap-analyzer — h-mmer/pentest-agents