RealVuln: Benchmarking Rule-Based, General-Purpose LLM, and Security-Specialized Scanners on Real-World Code
John Pellew, Faizan Raza

TL;DR
RealVuln is an open-source benchmark comparing different types of security scanners on real-world Python code, revealing a clear performance hierarchy among rule-based, general-purpose, and security-specialized tools.
Contribution
This paper introduces RealVuln, the first comprehensive benchmark that evaluates and ranks various security scanners on real-world code, including a new open-source dataset and scoring methodology.
Findings
Security-specialized scanner Kolega.Dev leads in F3 score
General-purpose LLM Claude Sonnet 4.6 outperforms rule-based tools
Three-tier ranking hierarchy is consistent across metrics
Abstract
How do security scanners perform on real-world code? We present RealVuln, the first open-source benchmark comparing Rule-Based SAST, General-Purpose LLMs, and Security-Specialized scanners on 26 intentionally vulnerable Python repositories (educational and Capture-The-Flag applications) with 796 hand-labeled entries (676 vulnerabilities, 120 false-positive traps). We test 15 scanners (3 Rule-Based SAST, 10 General-Purpose LLM, 2 Security-Specialized) and rank them by F3 score (beta=3, weighting recall 9x over precision). A clear three-tier ranking emerges under all metrics. Under F3, the Security-Specialized scanner Kolega.Dev (73.0) leads, followed by the best General-Purpose LLM, Claude Sonnet 4.6 (51.7), which in turn scores nearly 3x higher than the best Rule-Based tool, Semgrep (17.7). Under F1, Sonnet 4.6 leads (60.9) with Kolega.Dev at 52.4. Rankings within tiers shift with beta,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
