MTSan: A Feasible and Practical Memory Sanitizer for Fuzzing COTS Binaries
Xingman Chen, Yinghao Shi, Zheyu Jiang, Yuan Li, Ruoyu Wang, Haixin Duan, Haoyu Wang, Chao Zhang
摘要
Fuzzing has been widely adopted for finding vulnerabilities in programs, especially when source code is not available. But the effectiveness and efficiency of binary fuzzing are curtailed by the lack of memory (safety) sanitizers. This lack of binary sanitizers is due to the information loss in compiling programs and challenges in binary instrumentation. In this paper, we present a feasible and practical hardwareassisted memory sanitizer, MTSan, for binary fuzzing. MT-San can detect both spatial and temporal memory safety violations at runtime. It adopts a novel progressive object recovery scheme to recover objects in binaries, and uses a customized binary rewriting solution to instrument binaries with the memory-tagging-based memory safety sanitizing policy. Further, MTSan uses a hardware feature, ARM Memory Tagging Extension (MTE) to significantly reduce its runtime overhead. We implemented a prototype of MT-San on AArch64 and systematically evaluated its effectiveness and performance. Our evaluation results show that MT-San could detect more memory safety violations than existing binary sanitizers whiling introducing much lower runtime and memory overhead.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- QuickSafe: Targeted Hardening Against Memory Corruption 引用了 SoK: Sanitizing for Security
- QuickSafe: Targeted Hardening Against Memory Corruption 引用了 Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags
- T-Fuzz: Fuzzing by Program Transformation 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- A Binary-level Thread Sanitizer or Why Sanitizing on the Binary Level is Hard 引用了 RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization
- A Binary-level Thread Sanitizer or Why Sanitizing on the Binary Level is Hard 引用了 SoK: Sanitizing for Security
- QMSan: Efficiently Detecting Uninitialized Memory Errors During Fuzzing 引用了 RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization
- QMSan: Efficiently Detecting Uninitialized Memory Errors During Fuzzing 引用了 SoK: Sanitizing for Security
- RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization 引用了 T-Fuzz: Fuzzing by Program Transformation
- RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization 引用了 SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis
- NanoTag: Systems Support for Efficient Byte-Granular Overflow Detection on ARM MTE 引用了 RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization
- NanoTag: Systems Support for Efficient Byte-Granular Overflow Detection on ARM MTE 引用了 Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags
- Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 SoK: Sanitizing for Security
引用它的顶会 Paper10
- Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory TagsFloris Gorter, Taddeus Kroes, Herbert Bos, Cristiano GiuffridaS&P 2024 · 22 次引用
- A Binary-level Thread Sanitizer or Why Sanitizing on the Binary Level is HardJoschua Schilling, Andreas Wendler, Philipp Görz, Nils Bars 等USENIX Security 2024 · 4 次引用
- NanoTag: Systems Support for Efficient Byte-Granular Overflow Detection on ARM MTEMingkai Li, Hang Ye, Joseph Devietti, Suman Jana 等S&P 2026 · 1 次引用
- QuickSafe: Targeted Hardening Against Memory CorruptionJohannes Blaser, Floris Gorter, Klaus von Gleissenthall, Herbert BosS&P 2026
- QMSan: Efficiently Detecting Uninitialized Memory Errors During FuzzingMatteo Marini, Daniele Cono D'Elia, Mathias Payer, Leonardo QuerzoniNDSS 2025
它引用的 Paper17
- SOK: (State of) The Art of War: Offensive Techniques in Binary AnalysisYan Shoshitaishvili, Ruoyu Wang, Christopher Salls, Nick Stephens 等S&P 2016 · 1,085 次引用
- Keystone: an open framework for architecting trusted execution environmentsDayeol Lee, David Kohlbrenner, Shweta Shinde, Krste Asanovic 等EuroSys 2020 · 381 次引用
- T-Fuzz: Fuzzing by Program TransformationHui Peng, Yan Shoshitaishvili, Mathias PayerS&P 2018 · 326 次引用
- SoK: Sanitizing for SecurityDokyung Song, Julian Lettner, Prabhu Rajasekaran, Yeoul Na 等S&P 2019 · 196 次引用
- RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and SanitizationSushant Dinesh, Nathan Burow, Dongyan Xu, Mathias PayerS&P 2020 · 187 次引用
相关 Paper
- PACMem: Enforcing Spatial and Temporal Memory Safety via ARM Pointer AuthenticationYuan Li, Wende Tan, Zhizheng Lv, Songtao Yang 等CCS 2022 · 30 次引用
- RangeSanitizer: Detecting Memory Errors with Efficient Range ChecksFloris Gorter, Cristiano GiuffridaUSENIX Security 2025
- SpecASan: Mitigating Transient Execution Attacks Using Speculative Address SanitizationSaber Ganjisaffar, Esmaeil Mohmmadian Koruyeh, Jason Zellmer, Hodjat Asghari Esfeden 等ISCA 2025 · 1 次引用
- Tiktag: Breaking ARM's Memory Tagging Extension with Speculative ExecutionJuhee Kim, Jinbum Park, Sihyeon Roh, Jaeyoung Chung 等S&P 2025
- BASTAG: Byte-level Access Control on Shared Memory using ARM Memory Tagging ExtensionJunseung You, Jiwon Seo, Kyeongryong Lee, Yeongpil Cho 等CCS 2025
