False Positives, Real Problems: Evaluating Static Analysis Tools
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesisAlternative title
Falska larm, riktiga problem : En utvärdering av statiska kodanalysverktyg (Swedish)
Abstract [en]
Static analysis tools are widely used to detect vulnerabilities in C/C++ code, yet their effectiveness across realistic and synthetic datasets remains underexplored. This thesis systematically evaluates five prominent static analysis tools: Cppcheck, Flawfinder, Semgrep, Clang-Tidy, and Snyk Code. The evaluation was done using two contrasting datasets: the Juliet Test Suite, offering synthetic examples with clearly labeled vulnerabilities, and PrimeVul, providing real-world vulnerable functions paired with their corresponding patches. An evaluation system was implemented, including automated build support across diverse open-source projects, tool output normalization, and metric-based classification of results. Performance was assessed using many metrics, such as Precision, Recall, F1, pair-wise comparative measures, and the Matthews Correlation Coefficient.
The results reveal that all tools perform relatively poorly on the synthetic dataset and really poorly on the realistic dataset. This highlights the need for tool improvement and dataset improvements, as well as the importance of dataset diversity in benchmarking static analysis tools.
Place, publisher, year, edition, pages
2025. , p. 46
Keywords [en]
Static Analysis, Static Analysis tools, Juliet Test Suite, PrimeVul, Cybersecurity
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:liu:diva-214710ISRN: LIU-IDA/LITH-EX-A--25/064--SEOAI: oai:DiVA.org:liu-214710DiVA, id: diva2:1968169
External cooperation
Sectra Communications
Subject / course
Computer Engineering
Presentation
2025-06-10, Alan Turing, Campus Valla, Linköping, 13:15 (English)
Supervisors
Examiners
2025-06-162025-06-122025-06-16Bibliographically approved