KSG: Augmenting Kernel Fuzzing with System Call Specification Generation

被引:0
|
作者
Sun, Hao [1 ]
Shen, Yuheng [1 ]
Liu, Jianzhong [1 ]
Xu, Yiru [1 ]
Jiang, Yu [1 ]
机构
[1] Tsinghua Univ, Beijing, Peoples R China
来源
PROCEEDINGS OF THE 2022 USENIX ANNUAL TECHNICAL CONFERENCE | 2022年
关键词
D O I
暂无
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Kernel fuzzing is a dynamic testing technique that has successfully found numerous kernel vulnerabilities. However, existing kernel fuzzers, such as Syzkaller, depend on system call specifications to generate test cases. Writing such specifications requires an immense amount of domain knowledge while being extremely laborious. Meanwhile, automated generation of the specification is still an open problem due to the complexity of the kernel, including entry function extraction and input type identification. As a result, the current amount of system call information is insufficient to test the entire kernel code base thoroughly. Syzkaller covers an average of 38% of Linux kernel code with current Syzlang specifications for a prolonged time of fuzzing. In this paper, we propose KSG to generate system call specifications for kernel fuzzers automatically. First, it utilizes probe-based tracing to extract entry functions accurately. Then, it uses path-sensitive analysis to collect precise input types and range constraints in each execution path of entry functions. Based on the aforementioned information, KSG generates specifications in the domain language Syzlang, which is used by most kernel fuzzers. We evaluated KSG on several versions of the Linux kernel. It automatically generated 2433 unique specifications. Leveraging the newly generated specifications, Syzkaller and Moonshine achieved coverage improvements of 22% and 23% respectively. Furthermore, our approach assisted fuzzers to discover 26 previously unknown bugs, where 13 and 6 bugs were fixed and assigned with CVEs, respectively.
引用
收藏
页码:351 / 365
页数:15
相关论文
共 50 条
  • [31] Formal Specification for Compiler Based Test Case Generation of Embedded Real-Time System
    Chen, Yong
    He, Yanxiang
    Xu, Chao
    Wu, Wei
    Liu, Jianbo
    BUSINESS, ECONOMICS, FINANCIAL SCIENCES, AND MANAGEMENT, 2012, 143 : 643 - 650
  • [32] Embedded software generation from system level specification for multi-tasking embedded systems
    Kwon, KiSeun
    Yi, YoungMin
    Kim, DoHyung
    Ha, SoonHoi
    ASP-DAC 2005: PROCEEDINGS OF THE ASIA AND SOUTH PACIFIC DESIGN AUTOMATION CONFERENCE, VOLS 1 AND 2, 2005, : 145 - 150
  • [33] A specification-based adaptive test case generation strategy for open operating system standards
    Watanabe, A
    Sakamura, K
    PROCEEDINGS OF THE 18TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, 1996, : 81 - 89
  • [34] PROTOTYPING A CALL SYSTEM FOR STUDENTS OF JAPANESE USING DYNAMIC DIAGRAM GENERATION AND INTERACTIVE HINTS
    Waple, Christopher
    Tsubota, Yasushi
    Dantsuji, Masatake
    Kawahara, Tatsuya
    INTERSPEECH 2006 AND 9TH INTERNATIONAL CONFERENCE ON SPOKEN LANGUAGE PROCESSING, VOLS 1-5, 2006, : 821 - +
  • [35] Automatic generation of finite state automata for detecting intrusions using system call sequences
    Wee, K
    Moon, B
    COMPUTER NETWORK SECURITY, 2003, 2776 : 206 - 216
  • [36] EV-Call 120: A new-generation emergency medical service system in China
    Xie, Puguang
    Deng, Liling
    Ma, Yu
    Deng, Wuquan
    JOURNAL OF TRANSLATIONAL INTERNAL MEDICINE, 2024, 12 (02) : 209 - 212
  • [37] Deep4MalDroid: A Deep Learning Framework for Android Malware Detection Based on Linux Kernel System Call Graphs
    Hou, Shifu
    Saas, Aaron
    Chen, Lifei
    Ye, Yanfang
    2016 IEEE/WIC/ACM INTERNATIONAL CONFERENCE ON WEB INTELLIGENCE WORKSHOPS (WIW 2016), 2016, : 104 - 111
  • [38] Prof-gen: Practical Study on System Call Whitelist Generation for Container Attack Surface Reduction
    Kim, Sungjin
    Kim, Byung Joon
    Lee, Dong Hoon
    2021 IEEE 14TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING (CLOUD 2021), 2021, : 278 - 287
  • [39] Knowledge structure of form specification of the next generation GPS information system - art. no. 63585B
    Lu Wenlong
    Liu Xiaojun
    Jiang Xiangqian
    Xu Zhengao
    Sensors, Automatic Measurement, Control, and Computer Simulation, Pts 1 and 2, 2006, 6358 : B3585 - B3585
  • [40] Integral olive kernel elaboration with electricity generation, compared with actual system of obtaining olive virgin oil.
    Jurado, AO
    Carnicero, JMP
    Peragón, FC
    GRASAS Y ACEITES, 2004, 55 (03) : 303 - 311