SyzGen: Automated Generation of Syscall Specification of Closed-Source macOS Drivers
Weiteng Chen, Yu Wang, Zheng Zhang, Zhiyun Qian
Abstract
Kernel drivers are a critical part of the attack surface since they constitute a large fraction of kernel codebase and oftentimes lack proper vetting, especially for those closed-source ones. Unfortunately, the complex input structure and unknown relationships/dependencies among interfaces make them very challenging to understand. Thus, security analysts primarily rely on manual audit for interface recovery to generate meaningful fuzzing test cases. In this paper, we present SyzGen, a first attempt to automate the generation of syscall specifications for closed-source macOS drivers and facilitate interface-aware fuzzing. We leverage two insights to overcome the challenges of binary analysis: (1) iterative refinement of syscall knowledge and (2) extraction and extrapolation of dependencies from a small number of execution traces. We evaluated our approach on 25 targets. The results show that SyzGen can effectively produce high-quality specifications, leading to 34 bugs, including one that attackers can exploit to escalate privilege, and 2 CVEs to date.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
27 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Demystifying the Dependency Challenge in Kernel Fuzzing cites MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation
- Demystifying the Dependency Challenge in Kernel Fuzzing cites Razzer: Finding Kernel Race Bugs through Fuzzing
- Demystifying the Dependency Challenge in Kernel Fuzzing cites kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- Demystifying the Dependency Challenge in Kernel Fuzzing cites DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- Minerva: browser API fuzzing with dynamic mod-ref analysis cites MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation
- MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation cites kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- SoK: Prudent Evaluation Practices for Fuzzing cites Minerva: browser API fuzzing with dynamic mod-ref analysis
- SoK: Prudent Evaluation Practices for Fuzzing cites MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation
- SoK: Prudent Evaluation Practices for Fuzzing cites Razzer: Finding Kernel Race Bugs through Fuzzing
- SoK: Prudent Evaluation Practices for Fuzzing cites Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided Tracing
- Razzer: Finding Kernel Race Bugs through Fuzzing cites DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- KSG: Augmenting Kernel Fuzzing with System Call Specification Generation cites MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation
- KSG: Augmenting Kernel Fuzzing with System Call Specification Generation cites Razzer: Finding Kernel Race Bugs through Fuzzing
- KSG: Augmenting Kernel Fuzzing with System Call Specification Generation cites kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- KSG: Augmenting Kernel Fuzzing with System Call Specification Generation cites DIFUZE: Interface Aware Fuzzing for Kernel Drivers
- Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided Tracing cites kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
- KernelGPT: Enhanced Kernel Fuzzing via Large Language Models cites MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation
- KernelGPT: Enhanced Kernel Fuzzing via Large Language Models cites KSG: Augmenting Kernel Fuzzing with System Call Specification Generation
- KernelGPT: Enhanced Kernel Fuzzing via Large Language Models cites DIFUZE: Interface Aware Fuzzing for Kernel Drivers
Cited by top-tier papers27
- SoK: Prudent Evaluation Practices for FuzzingMoritz Schloegel, Nils Bars, Nico Schiller, Lukas Bernhard et al.S&P 2024 · 69 citations
- KSG: Augmenting Kernel Fuzzing with System Call Specification GenerationHao Sun, Yuheng Shen, Jianzhong Liu, Yiru Xu et al.USENIX ATC 2022 · 45 citations
- KernelGPT: Enhanced Kernel Fuzzing via Large Language ModelsChenyuan Yang, Zijie Zhao, Lingming ZhangASPLOS 2025 · 45 citations
- Minerva: browser API fuzzing with dynamic mod-ref analysisChijin Zhou, Quan Zhang, Mingzhe Wang, Lihua Guo et al.FSE 2022 · 20 citations
- Demystifying the Dependency Challenge in Kernel FuzzingYu Hao, Hang Zhang, Guoren Li, Xingyun Du et al.ICSE 2022 · 15 citations
Builds on13
- kAFL: Hardware-Assisted Feedback Fuzzing for OS KernelsSergej Schumilo, Cornelius Aschermann, Robert Gawlik, Sebastian Schinzel et al.USENIX Security 2017 · 324 citations
- Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee et al.S&P 2019 · 202 citations
- DIFUZE: Interface Aware Fuzzing for Kernel DriversJake Corina, Aravind Machiry, Christopher Salls, Yan Shoshitaishvili et al.CCS 2017 · 195 citations
- MoonShine: Optimizing OS Fuzzer Seed Selection with Trace DistillationShankara Pailoor, Andrew Aday, Suman JanaUSENIX Security 2018 · 180 citations
- Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided TracingStefan Nagy, Matthew HicksS&P 2019 · 156 citations
Related papers
- SyzGen++: Dependency Inference for Augmenting Kernel Driver FuzzingWeiteng Chen, Yu Hao, Zheng Zhang, Xiaochen Zou et al.S&P 2024 · 12 citations
- SyzDescribe: Principled, Automated, Static Generation of Syscall Descriptions for Kernel DriversYu Hao, Guoren Li, Xiaochen Zou, Weiteng Chen et al.S&P 2023
- KextFuzz: Fuzzing macOS Kernel EXTensions on Apple Silicon via Exploiting MitigationsTingting Yin, Zicong Gao, Zhenghang Xiao, Zheyu Ma et al.USENIX Security 2023
- SyzSpec: Specification Generation for Linux Kernel Fuzzing via Under-Constrained Symbolic ExecutionYu Hao, Juefei Pu, Xingyu Li, Zhiyun Qian et al.CCS 2025 · 2 citations
- APICraft: Fuzz Driver Generation for Closed-source SDK LibrariesCen Zhang, Xingwei Lin, Yuekang Li, Yinxing Xue et al.USENIX Security 2021 · 64 citations
