Longitudinal Analyses of SAST Tools: A CodeQL Case Study
Publish this paper in The AIPR Journal
Are you an author? Turn this AI review into a permanent, citable journal entry with a cover, open comments, and Scholar metadata.
AIPR assessment
Problem difficulty: hard and competitive. SAST evaluation is a mature, noisy, and partially saturated space, and the paper tackles it under realistic conditions, large codebases, many versions, and multiple languages. The strengths reinforce one another: the longitudinal framing is genuinely useful, the empirical scale is large, and the practical interpretation around locality and version instability is easy to transfer to real CI workflows. The main weaknesses are partly coupled: selection bias
Abstract
Open-source software (OSS) pipelines rely on automated static analysis tools to prevent the introduction of vulnerabilities in code. However, there is limited understanding of the efficacy of these tools across the OSS ecosystem over time. In this paper, we introduce a novel method to evaluate static application security testing (SAST) tools through longitudinal measurements and perform the largest academic study of CodeQL -- the most prevalent static analysis tool from GitHub -- on OSS codebases. We apply our apparatus on 114 versions of CodeQL over time on 3993 CVEs from 1622 repositories to measure key properties of the tool, culminating in more than 20 billion lines of code analyzed. First, we measure its effectiveness, i.e., its ability to detect vulnerabilities before they are fixed. Then, we determine whether these detections were actionable through two measures of the distance between findings and vulnerability location either over the entire codebase or within the vulnerable file. Finally, we study the stability of CodeQL by examining how vulnerability detections hold across versions and the evolution of CodeQL on the accuracy-precision trade-off. We find that CodeQL identifies a total of 171 CVEs, and that for 83 of them, a CodeQL version prior to the fix could detect it. Such detections are in general actionable if findings are triaged across files, as for 50% of the 171 detections, more than 50% of findings in the vulnerable file are located in the vulnerable location. Finally, we show that CVE detections are not monotonic across versions as 21 CVEs were no longer detected following a version change and 17 that were never redetected. Our study shows that using SAST tools is a matter of best practice as they prevent numerous vulnerabilities from being introduced, but that developers should be aware of changes that may leave blind spots in detections upon updates of the tool.
Score Breakdown
More from this week
- \(\mathit{SB}(3,n)\) has no Hamiltonian cycle when \(n\) is even: a sign-of-permutation proof, with extension to all odd \(m\equiv 3\pmod 4\)
- Space as a spectroscopic laboratory: High-resolution spectroscopy of the [\(^{13}\)C II] hyperfine structure with SOFIA/upGREAT
- Statistical inference with belief functions: A survey
- AERO-VIS: Asynchronous Event-based Real-time Onboard Visual-Inertial SLAM
- Deterministically finding an element of large order in \(\mathbb{Z}_N^*\)