Lune

CCS2021顶会

SyzGen: Automated Generation of Syscall Specification of Closed-Source macOS Drivers

Weiteng Chen, Yu Wang, Zheng Zhang, Zhiyun Qian

摘要

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.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Demystifying the Dependency Challenge in Kernel Fuzzing 引用了 MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation
  • Demystifying the Dependency Challenge in Kernel Fuzzing 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
  • Demystifying the Dependency Challenge in Kernel Fuzzing 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
  • Demystifying the Dependency Challenge in Kernel Fuzzing 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
  • Minerva: browser API fuzzing with dynamic mod-ref analysis 引用了 MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation
  • MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
  • SoK: Prudent Evaluation Practices for Fuzzing 引用了 Minerva: browser API fuzzing with dynamic mod-ref analysis
  • SoK: Prudent Evaluation Practices for Fuzzing 引用了 MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation
  • SoK: Prudent Evaluation Practices for Fuzzing 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
  • SoK: Prudent Evaluation Practices for Fuzzing 引用了 Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided Tracing
  • Razzer: Finding Kernel Race Bugs through Fuzzing 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
  • KSG: Augmenting Kernel Fuzzing with System Call Specification Generation 引用了 MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation
  • KSG: Augmenting Kernel Fuzzing with System Call Specification Generation 引用了 Razzer: Finding Kernel Race Bugs through Fuzzing
  • KSG: Augmenting Kernel Fuzzing with System Call Specification Generation 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
  • KSG: Augmenting Kernel Fuzzing with System Call Specification Generation 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
  • Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided Tracing 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
  • KernelGPT: Enhanced Kernel Fuzzing via Large Language Models 引用了 MoonShine: Optimizing OS Fuzzer Seed Selection with Trace Distillation
  • KernelGPT: Enhanced Kernel Fuzzing via Large Language Models 引用了 KSG: Augmenting Kernel Fuzzing with System Call Specification Generation
  • KernelGPT: Enhanced Kernel Fuzzing via Large Language Models 引用了 DIFUZE: Interface Aware Fuzzing for Kernel Drivers
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper27

  1. SoK: Prudent Evaluation Practices for FuzzingMoritz Schloegel, Nils Bars, Nico Schiller, Lukas Bernhard 等S&P 2024 · 69 次引用
  2. KSG: Augmenting Kernel Fuzzing with System Call Specification GenerationHao Sun, Yuheng Shen, Jianzhong Liu, Yiru Xu 等USENIX ATC 2022 · 45 次引用
  3. KernelGPT: Enhanced Kernel Fuzzing via Large Language ModelsChenyuan Yang, Zijie Zhao, Lingming ZhangASPLOS 2025 · 45 次引用
  4. Minerva: browser API fuzzing with dynamic mod-ref analysisChijin Zhou, Quan Zhang, Mingzhe Wang, Lihua Guo 等FSE 2022 · 20 次引用
  5. Demystifying the Dependency Challenge in Kernel FuzzingYu Hao, Hang Zhang, Guoren Li, Xingyun Du 等ICSE 2022 · 15 次引用

它引用的 Paper13

  1. kAFL: Hardware-Assisted Feedback Fuzzing for OS KernelsSergej Schumilo, Cornelius Aschermann, Robert Gawlik, Sebastian Schinzel 等USENIX Security 2017 · 324 次引用
  2. Razzer: Finding Kernel Race Bugs through FuzzingDae R. Jeong, Kyungtae Kim, Basavesh Shivakumar, Byoungyoung Lee 等S&P 2019 · 202 次引用
  3. DIFUZE: Interface Aware Fuzzing for Kernel DriversJake Corina, Aravind Machiry, Christopher Salls, Yan Shoshitaishvili 等CCS 2017 · 195 次引用
  4. MoonShine: Optimizing OS Fuzzer Seed Selection with Trace DistillationShankara Pailoor, Andrew Aday, Suman JanaUSENIX Security 2018 · 180 次引用
  5. Full-Speed Fuzzing: Reducing Fuzzing Overhead through Coverage-Guided TracingStefan Nagy, Matthew HicksS&P 2019 · 156 次引用

相关 Paper

  1. SyzGen++: Dependency Inference for Augmenting Kernel Driver FuzzingWeiteng Chen, Yu Hao, Zheng Zhang, Xiaochen Zou 等S&P 2024 · 12 次引用
  2. SyzDescribe: Principled, Automated, Static Generation of Syscall Descriptions for Kernel DriversYu Hao, Guoren Li, Xiaochen Zou, Weiteng Chen 等S&P 2023
  3. KextFuzz: Fuzzing macOS Kernel EXTensions on Apple Silicon via Exploiting MitigationsTingting Yin, Zicong Gao, Zhenghang Xiao, Zheyu Ma 等USENIX Security 2023
  4. SyzSpec: Specification Generation for Linux Kernel Fuzzing via Under-Constrained Symbolic ExecutionYu Hao, Juefei Pu, Xingyu Li, Zhiyun Qian 等CCS 2025 · 2 次引用
  5. APICraft: Fuzz Driver Generation for Closed-source SDK LibrariesCen Zhang, Xingwei Lin, Yuekang Li, Yinxing Xue 等USENIX Security 2021 · 64 次引用
黄昏的海面,两侧是细线勾勒的悬崖