← Lab /Security & privacy

Many SAST design assumptions are invalid, limiting detection despite performance gains

The causal assumptions underlying SAST tools are often false and reduce detection capability

Security & privacy arXiv 19 Aug 2026 Measurement Prototype evidence

Published as “CauSec: Unboxing the Causal Drivers of Static Vulnerability Analysis Performance”

Why it matters

SAST designers should empirically test each design assumption for their specific tool, as assumptions that hold for one detector may not hold for another.

Summary

Reporting alerts from third-party libraries reduces precision for some crypto detectors (e.g., CogniCrypt drops by 28.3 percentage points, CodeQL by 5.7 points) but actually improves precision for others (CryptoGuard +4.3 points, Semgrep +10.9 points). The CAUSEC framework formalizes SAST design assumptions as causal hypotheses and uses causal inference to test them, showing that tool design acts as an effect modifier. The evidence is strong: causal estimates are largely stable across multiple refutation tests, though a few estimates (CryptoGuard) are sensitivity-limited. The study is based on a manually labeled ground-truth of 57,038 alerts from 558 Android apps.

What they found 4

  1. Reporting alerts from third-party code can lead to an estimated precision drop of 0.283 in CogniCrypt after controlling for confounders.

    “Finding 7 (F7) - Reporting alerts from third-party code can lead to an estimated precision drop of 0.283 in CogniCrypt, after controlling for confounders.”

  2. The assumption that reporting third-party library alerts decreases precision holds for CogniCrypt and CodeQL, but not for CryptoGuard and Semgrep.

    “Finding 8 (F8) - The assumption that reporting thirdparty library alerts decreases precision holds for CogniCrypt and CodeQL, but not for CryptoGuard and Semgrep.”

  3. The causal effect of reporting third-party library alerts is heterogeneous across both library families and SASTs.

    “Finding 9 (F9) - The causal effect of reporting thirdparty library alerts is heterogeneous across both library families and SASTs.”

  4. CAUSEC’s adjusted effect estimates are largely stable across the refutation tests, supporting robustness of the main empirical findings.

    “Finding 10 (F10) - CAUSEC’s adjusted effect estimates are largely stable across the refutation tests, supporting the robustness of the main empirical findings under the specified causal model.”

Caveats 5

  • For CryptoGuard and Semgrep the causal estimate is positive, indicating a precision increase rather than a decrease.
  • CryptoGuard’s EQ1 estimate is sensitive to the placebo refuter and changes sign with an alternative estimator, suggesting the positive effect is not robust.
  • Manual analysis and labeling: One researcher with three years of experience ... we cannot completely eliminate the possibility of human error or subjective judgment.
  • Internal validity: Our causal estimates depend on the appropriateness of the structural causal models and backdoor adjustment sets specified in CAUSEC. Therefore, the reported effects should not be interpreted as assumptionfree causal effects; rather, they are adjusted effect estimates whose validity depends on the specified DAG, measured confounders, and identification assumptions.
  • External validity: We evaluate CAUSEC on crypto-API misuse detection in Android using 558 Android apps ... the empirical results may not generalize to other SAST tools, platforms, or industrial codebases.

What’s new here 4

  • Introduces a formal abstraction (security assumption) to capture SAST design assumptions.
  • Applies causal inference (SCM, backdoor adjustment, PSM) to evaluate those assumptions rather than simple correlation.
  • Provides a reusable framework (CAUSEC) that includes robustness refutation tests for causal estimates.
  • Demonstrates that the same assumption can have opposite effects across different tools, highlighting effect modification.