Lune

FSE2024顶会

Finding and Understanding Defects in Static Analyzers by Constructing Automated Oracles

Weigang He, Peng Di, Mengli Ming, Chengyu Zhang, Ting Su, Shijie Li, Yulei Sui

摘要

Static analyzers are playing crucial roles in helping find programming mistakes and security vulnerabilities. The correctness of their analysis results is crucial for the usability in practice. Otherwise, the potential defects in these analyzers (e.g., implementation errors, improper design choices) could affect the soundness (leading to false negatives) and precision (leading to false positives). However, finding the defects in off-the-shelf static analyzers is challenging because these analyzers usually lack clear and complete specifications, and the results of different analyzers may differ. To this end, this paper designs two novel types of automated oracles to find defects in static analyzers with randomly generated programs. The first oracle is constructed by using dynamic program executions and the second one leverages the inferred static analysis results. We applied these two oracles on three state-of-the-art static analyzers: Clang Static Analyzer (CSA), GCC Static Analyzer (GSA), and Pinpoint. We found 38 unique defects in these analyzers, 28 of which have been confirmed or fixed by the developers. We conducted a case study on these found defects followed by several insights and lessons learned for improving and better understanding static analyzers. We have made all the artifacts publicly available at https://github.com/Geoffrey1014/SA_Bugs for replication and benefit the community.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Interrogation Testing of Program Analyzers for Soundness and Precision Issues 引用了 GrayC: Greybox Fuzzing of Compilers and Analysers for C
  • Interrogation Testing of Program Analyzers for Soundness and Precision Issues 引用了 Statfier: Automated Testing of Static Analyzers via Semantic-Preserving Program Transformations
  • Constraint-Based Test Oracles for Program Analyzers 引用了 GrayC: Greybox Fuzzing of Compilers and Analysers for C
  • Constraint-Based Test Oracles for Program Analyzers 引用了 Statfier: Automated Testing of Static Analyzers via Semantic-Preserving Program Transformations
  • Fuzzing Processing Pipelines for Zero-Knowledge Circuits 引用了 GrayC: Greybox Fuzzing of Compilers and Analysers for C
  • Fuzzing Processing Pipelines for Zero-Knowledge Circuits 引用了 Interrogation Testing of Program Analyzers for Soundness and Precision Issues
  • Fuzzing Processing Pipelines for Zero-Knowledge Circuits 引用了 Constraint-Based Test Oracles for Program Analyzers
  • Fuzzing Processing Pipelines for Zero-Knowledge Circuits 引用了 Statfier: Automated Testing of Static Analyzers via Semantic-Preserving Program Transformations
  • Arguzz: Testing zkVMs for Soundness and Completeness Bugs 引用了 Interrogation Testing of Program Analyzers for Soundness and Precision Issues
  • Arguzz: Testing zkVMs for Soundness and Completeness Bugs 引用了 Fuzzing Processing Pipelines for Zero-Knowledge Circuits
  • Statfier: Automated Testing of Static Analyzers via Semantic-Preserving Program Transformations 引用了 An empirical study on the effectiveness of static C code analyzers for vulnerability detection
  • Statfier: Automated Testing of Static Analyzers via Semantic-Preserving Program Transformations 引用了 Context-aware in-process crowdworker recommendation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper8

  1. Interrogation Testing of Program Analyzers for Soundness and Precision IssuesDavid Kaindlstorfer, Anastasia Isychev, Valentin Wüstholz, Maria ChristakisASE 2024 · 2 次引用
  2. Constraint-Based Test Oracles for Program AnalyzersMarkus Fleischmann, David Kaindlstorfer, Anastasia Isychev, Valentin Wüstholz 等ASE 2024 · 2 次引用
  3. Arguzz: Testing zkVMs for Soundness and Completeness BugsChristoph Hochrainer, Valentin Wüstholz, Maria ChristakisUSENIX Security 2026 · 2 次引用
  4. Fuzzing Processing Pipelines for Zero-Knowledge CircuitsChristoph Hochrainer, Anastasia Isychev, Valentin Wüstholz, Maria ChristakisCCS 2025 · 1 次引用
  5. Statically Discover Cross-Entry Use-After-Free Vulnerabilities in the Linux KernelHang Zhang, Jangha Kim, Chuhong Yuan, Zhiyun Qian 等NDSS 2025

它引用的 Paper5

  1. An empirical study on the effectiveness of static C code analyzers for vulnerability detectionStephan Lipp, Sebastian Banescu, Alexander PretschnerISSTA 2022 · 99 次引用
  2. GrayC: Greybox Fuzzing of Compilers and Analysers for CKarine Even-Mendoza, Arindam Sharma, Alastair F. Donaldson, Cristian CadarISSTA 2023 · 52 次引用
  3. Context-aware in-process crowdworker recommendationJunjie Wang, Ye Yang, Song Wang, Yuanzhe Hu 等ICSE 2020 · 23 次引用
  4. Statfier: Automated Testing of Static Analyzers via Semantic-Preserving Program TransformationsHuaien Zhang, Yu Pei, Junjie Chen, Shin Hwei TanFSE 2023 · 15 次引用
  5. Precise Sparse Abstract Execution via Cross-Domain InteractionXiao Cheng, Jiawei Wang, Yulei SuiICSE 2024 · 6 次引用

相关 Paper

  1. ECSTATIC: An Extensible Framework for Testing and Debugging Configurable Static AnalysisAustin Mordahl, Zenong Zhang, Dakota Soles, Shiyi WeiICSE 2023 · 7 次引用
  2. Testing Static Taint Analyzers with Equivalence Modulo TaintMaria Christakis, Anastasia Isychev, Samuel Pilz, Florian Tesarek 等ISSTA 2026
  3. AURC: Detecting Errors in Program Code and DocumentationPeiwei Hu, Ruigang Liang, Ying Cao, Kai Chen 等USENIX Security 2023
  4. Detecting Memory-Related Bugs by Tracking Heap Memory Management of C++ Smart PointersXutong Ma, Jiwei Yan, Wei Wang, Jun Yan 等ASE 2021 · 10 次引用
  5. On the Real-World Effectiveness of Static Bug Detectors at Finding Null Pointer ExceptionsDavid A. Tomassi, Cindy Rubio-GonzálezASE 2021 · 24 次引用
黄昏的海面,两侧是细线勾勒的悬崖