Research on Key Technologies for Detection and Exploitation of Windows Kernel Vulnerabilities
- Author
- NiTao
- Advisor
- WangQingXian
- School
- PLA Information Engineering University
- Major
- Applied Computer Technology
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 2
- Citations
- 0
- Windows Kernel Drivers
- DeviceloControl Mechanism
- Fuzzing Testing
- TaintAnalysis
- Vulnerability Exploitation
Abstract
The DeviceIoControl mechanism is the key communication mechanism of user mode and kernel mode in Windows system. In this thesis, Kernel driver vulnerabilities of this mechanism is focused, including the detection and the exploitation of these vulnerabilities. To detect the DeviceIoControl vulnerabilities, fuzzing testing is the main technology in recent public researches, which is a black-box testing in essence and lack of the dynamic information of kernel drivers, leading to a blindness in testing. Besides, the analysis and summary of vulnerability pattern is insufficient. The exploitation of kernel vulnerabilities is different from the user mode, as the particularity of kernel mode. With the appearance of the latest exploitation mitigation technology, higher challenge is proposed in the research of exploitation techonology. In this thesis, these problems is researched, the major contents include:1. Analyse the public kernel DeviceIoControl vulnerabilities, sum the WTVTA (Write Tainted Value to Tainted Address) vulnerability pattern up, introduce the traditional static taint analysis technology into kernel drivers, define the tainted input and the propagation path in kernel drivers, propose a new static detection algorithm based on WTVTA pattern. By detecting the MS11-062vulnerability, validate the effectiveness of the new algorithm.2. Design and realize a new testing frame for kernel drivers, propose a new heuristic static algorithm to search all testing interfaces. The testing program is deployed in a virtual machine, thus the monitoring is achieved via communication between the console and the testing program. During the testing, dynamic information of kernel drivers is collected and guide the generation of the following testing cases. Kernel drivers of4famous antivirus software is chosen to apply a real testing and the result proves that the coverage of testing interfaces, the effectiveness of testing cases and the efficiency are better than traditional testing technologies. Four undiscovered vulnerabilities are found in this testing.3. Sum the exploitation technologies of WTVTA vulnerability up, including the hijacking of control flow and the construction of kernel shellcode. Besides the latest exploitation mitigation technologies are researched to find out how they truncate the traditional exploitation path. At last, new exploitation technologies are proposed against the mitigation to achieve a privilege escalation.
Table of contents
Summary 4-5
ABSTRACT 5-6
directory 6-8
catalog 8-9
Table recorded 9-10
first chapter 10-18
1.1 research background and significance 1.2 Status domestic and foreign research 10
10-14
1.2.1 kernel vulnerability detection technology research 11-13
1.2.2 kernel exploit technology research 13-14
1.3 main content and achievements 14-15
1.4 papers organizational structure 15-18
the second chapter studies the static vulnerability detection techniques for WTVTA mode 18-30
2.1 WTVTA kernel mode vulnerability analysis 18-23
2.1.1 WTVTA mode kernel vulnerabilities case 18-22
2.1.2 WTVTA mode kernel vulnerability signatures 22-23
2.2 WTVTA mode kernel DeviceIoControl vulnerability detection algorithm 23-27
2.2.1 algorithm basic definition 23-24
2.2.2 calculation function does not move point 24-26
2.2.3 vulnerability mode decision 26-27
2.3 experimental testing and results analysis 27-29
2.4 chapter Summary 29-30
dynamic Fuzzing testing technology Research Chapter kernel driver 30-52
3.1 overall testing framework 30
3.2 interface information capture technology research 30-36
3.2.1 dynamic capture technology 31
3.2.2 case analysis and critical issues 31-32
3.2.3 static capture technical 32-36
3.3 test case generation technology research 36-45
3.3.1 check constraint information collection 36-40
3.3.2 external test vectors to obtain 40-43
3.3.3 variability fuzzy heuristic rules 43-44
3.3.4 feedback test case generation 44-45
3.4 kernel-based fuzzing test technology for communication research 45-47
3.4.1 nbsp sent to the kernel driver test ; 46
3.4.2 console to communicate with the test procedures process 46-47
3.5 experimental data and analysis 47-51
3.5.1 experimental environment 47-48
3.5.2 Interface capture contrast test 48-49
3.5.3 comparison test case generation 49-50
3.5.4 underreporting rate of false positives test 50
3.5 .5 DeviceIoControl real kernel vulnerability security testing 50-51
3.6 Summary 51-52
The fourth chapter in the Windows kernel exploit technology research 52-68
4.1 kernel DeviceIoControl exploit technology 52-56
4.1.1 rewrite HalDispatchTable jump 52-53
4.1.2 rewrite the GDT and LDT table to add a call gate 53-55
4.1.3 kernel mode ShellCode construction 55-56
4.2 kernel exploit mitigation analysis 56-61
4.2.1 DEP kernel upgrade 56-58
4.2.2 kernel ASLR enhance 58
4.2.3 enable SMEP 58-60
4.2.4 NULL Page protection 60
4.2.5 other exploit mitigation techniques 60-61
4.3 kernel exploit mitigation techniques against 61-66
4.3.1 Dispatch jump table using the driving jump 62-63
4.3.2 use Windows ACL descriptor mention the right 63-66
4.4 Summary 66 -68
Conclusion 68-72
Thanks 72-74
References 74-78
Author Biography 78