[Paper Review] SoK: Sanitizing for Security
This paper presents a systematic taxonomy of sanitizers—dynamic program analysis tools that detect security vulnerabilities by observing actual program execution. It evaluates their effectiveness in finding memory safety bugs, performance overhead, compatibility, and trade-offs, advocating for improved metadata standards, hardware support, and broader adoption in low-level systems.
The C and C++ programming languages are notoriously insecure yet remain indispensable. Developers therefore resort to a multi-pronged approach to find security issues before adversaries. These include manual, static, and dynamic program analysis. Dynamic bug finding tools --- henceforth "sanitizers" --- can find bugs that elude other types of analysis because they observe the actual execution of a program, and can therefore directly observe incorrect program behavior as it happens. A vast number of sanitizers have been prototyped by academics and refined by practitioners. We provide a systematic overview of sanitizers with an emphasis on their role in finding security issues. Specifically, we taxonomize the available tools and the security vulnerabilities they cover, describe their performance and compatibility properties, and highlight various trade-offs.
Motivation & Objective
- To address the growing need for effective, precise, and deployable security testing in C/C++ systems, where undefined behavior and memory corruption are common.
- To clarify the distinction between sanitizers and exploit mitigations, emphasizing that sanitizers target vulnerability detection rather than runtime attack prevention.
- To identify key challenges in sanitizer deployment, including performance overhead, false positives, and limited compatibility with low-level software.
- To guide future research and engineering efforts by analyzing existing tools, their coverage of security vulnerabilities, and their design trade-offs.
Proposed method
- Conducting a comprehensive survey and taxonomy of existing sanitizers, categorizing them by vulnerability class, detection mechanism, and deployment context.
- Analyzing performance and compatibility characteristics of major sanitizers, including AddressSanitizer (ASan), MemorySanitizer (MSan), and others, based on empirical and implementation data.
- Evaluating the trade-offs between precision, performance, and false positive tolerance, particularly in contrast to exploit mitigations like CFI and DEP.
- Proposing design improvements such as unified metadata storage schemes to enable multi-sanitizer composition and reduce overhead.
- Surveying hardware-assisted approaches (e.g., Intel MPX, ARM tagging) to reduce runtime cost and improve compatibility.
- Investigating the feasibility and challenges of extending sanitizers to low-level software, including kernels and bare-metal systems.
Experimental results
Research questions
- RQ1How do sanitizers differ in their detection capabilities, performance overhead, and compatibility with standard C/C++ code and libraries?
- RQ2What are the key trade-offs between precision, false positive tolerance, and runtime performance in sanitizer design?
- RQ3Why is AddressSanitizer the most widely adopted sanitizer despite the existence of more precise alternatives?
- RQ4What are the main barriers to deploying multiple sanitizers simultaneously, and how can they be overcome?
- RQ5How can hardware support improve the efficiency, precision, and portability of sanitizers in production and low-level systems?
Key findings
- AddressSanitizer (ASan) dominates in deployment due to its strong compatibility with standard C/C++ semantics and partial instrumentation, despite higher memory overhead.
- Sanitizers detect vulnerabilities at the precise location of buggy code, unlike exploit mitigations that detect deviations only during exploitation.
- False positives are tolerable in sanitizers because they are used pre-deployment, whereas exploit mitigations must have zero false positives to avoid program termination.
- Current sanitizers cannot be composed due to incompatible metadata storage and pointer representation schemes, requiring multiple test runs.
- Hardware support such as ARM virtual address tagging and Intel MPX can reduce performance overhead and improve compatibility, especially for low-level systems.
- Extending sanitizers to kernels and bare-metal systems is feasible but limited by high memory overhead, especially on 32-bit platforms.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.