<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
alizainx/intelligence-systems-skills/codeql-semgrep-taint-verification
──Details
PublishedOctober 21, 2026 at 06:28 PM
Content Hashsha256:8e4f3cb1656fe49d...
Git SHA5d098c90c1e6
──Files
Files (1 file, 1.8 KB)
SKILL.md1.8 KBactive
SKILL.md · 26 lines · 1.8 KB

version: "1.0.0" name: codeql-semgrep-taint-verification id: ISS-100 token_budget: 700 chain_with: [zero-injection-context-parsers, spatial-temporal-memory-mitigations, ssa-construction-dominance-frontier] description: "Static application security testing (SAST), interprocedural Source-to-Sink taint dataflow analysis, dominator sanitizer verification, and variant hunting."


codeql-semgrep-taint-verification (ISS-100)

1. First-Principles Invariant

  • All-Paths Sanitizer Dominance Law: An untrusted taint source $s \in \text{Sources}$ reaching a sensitive sink $k \in \text{Sinks}$ is safe iff along EVERY executable interprocedural CFG path $\pi = (s, \dots, k)$, there exists a verified context-matching sanitizer node $z \in \pi$ that strictly post-dominates $s$ relative to $k$.

2. Fast-Pass Low-Token Protocol (Web & Coding Agents)

  • Write structural AST/SSA queries (Semgrep/CodeQL style) that match semantic dataflow (TaintTracking::Configuration) rather than brittle regexes.

3. Zero-Bug & Zero-Vulnerability Guards

  1. Whenever a bug or CVE is found, abstract its root cause into a structural query (Source -> Missing Guard -> Sink) and sweep the entire repository for unpatched variants.
  2. Audit numeric bounds guards for signedness bypasses (if (len < MAX) where len is signed int passed to memcpy(..., (size_t)len)).
  3. Audit error-handling paths for missing return/goto statements (fallthrough after logging an auth/validation failure) and double-release defects.
  4. Track taint propagation through container insertions (map[k] = tainted), string builders, and async task closures.
  5. Maintain a zero-warning SAST gate in CI where every rule has positive (ruleid:) and negative (ok:) regression test annotations.

4. Verification Gate

  • python3 -c 'import ast; ...'
All versions