OASIS SARIF v2.1.0 Static Taint Dataflow Lattices, Abstract Interpretation & Call-Graph CVE Reachability
Package-level dependency scanners flood engineering teams with hundreds of transitive CVEs whose vulnerable functions are never linked or invoked, while naive grep rules miss multi-hop untrusted input flows. Combining finite-height taint lattices with linear-time call-graph reachability separates exploitable paths from dead transitive code locally.
1. Monotone Taint Transfer Functions & Kildall (1973) Worklist Fixpoints
Under Cousot & Cousot (1977) abstract interpretation over control-flow graph G = (B, E), each SSA value maps into lattice L = {Bottom, Untainted, Tainted, Top} with join operator lub. Sanitizers (such as parameterized SQL bindings or strict integer parsers) reset abstract state to Untainted, while unvalidated sinks trigger a witness alert whenever in_state[sink_arg] >= Tainted:
IN[b] = lub_{p in pred(b)} OUT[p]
OUT[b] = gen_taint[b] lub (IN[b] \ sanitize[b])
// Termination bound (Kildall, 1973):
Max lattice ascents <= height(L) * |SSA_Values| * |B| ==> guaranteed polynomial convergence2. OASIS SARIF v2.1.0 Source-to-Sink threadFlows & Stable Fingerprinting
OASIS SARIF v2.1.0 serializes multi-file taint traces as ordered codeFlows[].threadFlows[].locations[] steps from HTTP/CLI source through intermediate call edges to sensitive sink, pairing each result with line-shift-resilient partialFingerprints:
fingerprint = SHA256(ruleId || enclosingSymbolFQN || normalizedSinkASTTokens || windowHash_k5)
// Refactoring lines above enclosingSymbolFQN leaves fingerprint invariant across Git commits3. Tarjan (1972) Strongly Connected Components & VEX Triage
Given static call graph G_call = (F, E_call) and entrypoint root set R_entry, Tarjan (1972) depth-first numbering partitions F into strongly connected components in O(|F| + |E_call|) time. When SCC(f_vuln) is unreachable from SCC(R_entry) (and reflection/dlopen edges are absent), ECMA-424 CycloneDX 1.6 VEX records state: "not_affected" with justification: "code_not_reachable".
4. Private-LOC Cloud SAST Metering vs Flat Local Workstation Economics
Compare private-LOC-metered cloud static analysis and fragmented DevSecOps SaaS stacks against flat local-first analysis below, or audit a CycloneDX 1.6 manifest right now in /tools/sbom-cra-auditor.
Document strict SHA-256 CSP, HSTS preload, and zero third-party ad-tracker compliance.
SARIF 2.1.0 Taint Lattices & Call-Graph CVE Reachability — FAQ
Direct answers on Cousot & Cousot (1977) fixpoint termination, SARIF partialFingerprints, Tarjan (1972) SCC VEX reachability, and dynamic-dispatch caveats.
- Why does Cousot & Cousot (1977) monotone taint propagation guarantee termination over loops?
- Over a finite-height product lattice L^V mapping each program variable v in V to {Bottom, Untainted, Tainted, Top} of height h = 3, monotone transfer functions f_node paired with Kildall (1973) worklist join iterations can ascend at most 3 * |V| times per basic block, reaching a unique least fixpoint in polynomial steps without executing untrusted binaries.
- How do OASIS SARIF v2.1.0 partialFingerprints survive line-number shifts during refactoring?
- Instead of keying findings on brittle (file, line) coordinates that churn whenever imports or comments are inserted above a sink, SARIF v2.1.0 computes rolling context hashes over normalized token streams and enclosing AST symbol scopes inside result.partialFingerprints, preserving baseline suppressions across commits.
- How does Tarjan (1972) SCC call-graph reachability justify CycloneDX 1.6 VEX code_not_reachable?
- Condensing mutually recursive call-graph cycles into a Directed Acyclic Graph via Tarjan (1972) strongly connected components in O(|V| + |E|) time lets forward reachability from exported binary entrypoints test whether any path touches the vulnerable function symbol—supporting deterministic CycloneDX 1.6 VEX not_affected (code_not_reachable) triage when disjoint.
- Is static taint or SBOM reachability analysis a substitute for formal compliance certification or legal advice?
- No. Dynamic reflection, native FFI dlopen calls, and runtime configuration still require defense-in-depth testing and qualified counsel; Destiny provides informational security engineering software, not legal advice or third-party certification.