Same Code, Different Findings: An Empirical Study of Run-to-Run Instability in Rule-Based and LLM-Based Security Scanners
Security scanners in CI/CD pipelines are believed to give the same answers for the same code. When a finding disappears, it is treated as fixed, and when a scan stage finds no blocking vulnerabilities, the build proceeds to production. This study tests that assumption. It ran 350 rule-based scans of 12 projects with Opengrep and CodeQL under normal, low-memory and busy-CPU conditions, and scanned 172 labelled cases five times each with four LLMs. For the rule-based scanners, resource budgets silently change the results: in one project, 32% of the findings appear and disappear across runs of the same commit ID. This study shows that when LLM-based scanners are added as a build step in CI/CD, for 3 out of the 4 models, between 28.2% and 91.1% of the findings do not occur across same runs; setting the temperature to 0 reduces but doesn't remove the variation, and new models are no longer accepting a temperature setting. Unstable LLM findings are more likely to be off-target noise, even on novel code. One scan recovers only 39–98% of the findings of five scans, and keeping only findings reported in all five runs raises the share of true positives at almost no loss of recall. Inconsistency means opposite things for the two types of scanners: a lost detection for the rule-based engines and noise for the LLMs. These results call for CI build gates that treat incomplete scans as failures, and for remediation tracking that does not treat a missing finding as a fix.
Authors
- Naga Raju Doddi
Publication Details
- Journal
- International Journal of Computer Trends and Technology
- Published
- 2026-11-23
- DOI
- https://doi.org/10.14445/22312803/ijctt-v74i9p105
- Primary Topic
- Web Application Security Vulnerabilities
- Type
- article
- Field-Weighted Citation Impact
- 0.00