Design of Anti-debugging Based on Hardware Virtualization Technology for Software Protection
- Author
- YiTengFei
- Advisor
- LiangALei , QiZhengWei
- School
- Shanghai Jiaotong University
- Major
- Software Engineering
- Classification
- TP311.53 Software Maintenance
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 119
- Citations
- 1
Abstract
Debugging techniques commonly used in the software development process to do dynamic real-time analysis, but it also often use malicious code. Now, with the increasingly high demand for software protection, anti-debugging techniques as an important part of software protection technology, but also more and more important, has appeared in the memory-based differences in anti-debugging techniques, anti-debugging techniques based on system differences and CPU-based anti-debugging techniques, and so on. Despite these anti-debugging techniques using the principle is different, but they have a common drawbacks that is running in Ring 0 or more layers, the malicious code is still based on a different type of anti-tune technology carried out corresponding operation, thus reached to prevent anti-debugging purposes . The birth of the limitations of the traditional anti-debugging techniques, hardware virtualization technology, making it possible for people to carry out the research and development of software protection to create a higher than traditional operating system-level virtual machine management (VMM) provides a broad prospect . Article has designed a lightweight, anti-debugging software protection framework based on hardware virtualization technology LAHF (Light-Weight and Anti-debugging Framework Based on Hardware Virtualization Technology). Hardware virtualization technology is based on chip processor virtualization technology, which run directly in hardware, the VMM system-level virtual machine, not only can effectively provide security and isolation, and can code for Ring 0 level and above implementation of monitoring. In order to improve the scalability and versatility of the framework, this article its done concise hierarchical design and interface package, and drive in the form of directly applied to the X86 architecture and 32-bit Windows XP environment, so that the dynamic install and uninstall . This topic focuses on how to use hardware virtualization technology monitoring and identification of the debugger, which is herein hardware virtualization anti-debugging techniques. The technology focuses on how to identify an act debugging behavior, and technology application does not affect the continued implementation of the original program. In this paper, by analyzing the Windows debugging mechanism, take full advantage of hardware virtualization technology brings convenience, succeeded in finding a satisfactory anti-debugging ideas and achieve. In addition, the single reality of the scope of application of the various anti-debugging tools, anti-debugging framework developed in this paper on the Windows platform for a variety of debugger monitoring. Next, in order to prevent malicious code detection and attack, using hardware virtualization technology for LAHF design self-behind module. Since Hide technologies include a copy of the page table and page table deceive two parts. Page table replication is LAHF copy of the operating system kernel mode page table of contents to create a set of private page table. Page table spoofing is to make the operating system by modifying the operating system kernel configuration page table to find the actual physical address, the address is not actually real physical address. Finally, anti-debugging capabilities for LAHF from the hide experimental prototype system capacity and a lot of impact on the system. The experimental results show that the actual address space of LAHF operating systems and common debugger can not be detected and anti-debugging a variety of common debugger. In addition, the results of performance tests control LAHF impact on system performance is within 5%. Ultimately, successfully providing an efficient and secure anti-debugging framework based on hardware virtualization technology LAHF, it runs in Ring 0 layer, at the same time play the role of anti-debugging, transparent to the operating system and the debugger. This way, LAHF can allow users to to to detect abnormal debugging behavior, and do not have to worry about the find and destroy malicious code. In addition, it is structured architecture design ready for further development.
Table of contents
Abstract 5-7
abstract 7-11
first chapter 11-16
1.1 Background 11-12 < br /> 1.2 Research 12-15
1.2.1 software security Research 12-13
1.2.2 virtual machine technology Research 13 - 15
1.3 subject objectives and contents the thesis 1.4 15
architecture 15-16
the second LAHF architecture design 16-34 <br / > 2.1 LAHF Architecture Overview 16-17
2.2 Intel The VT-x technology introduced 17-22
nbsp 2.2.1 Introduction; 17-19
2.2.2 virtual machine control structure VMCS 19-22
the VMM layer 2.3 LAHF introduced 22-26
2.3.1 several important data structures 22 -23
2.3.2 LAHF load the boot process 23-26
2.4 VMM and hardware interaction 26-27
2.5 will join anti-debugging module and self-behind module LAHF framework 27-29
2.5.1 LAHF internal architecture description 27-29
2.5.2 VMM added anti-debugging module 29
2.5 .3 VMM self-behind module 29
of 2.6 BluePill projects Introduction 29-33
2.6.1 driver loading process 30-31
2.6 .2 Exit process 31-33
2.7 Chapter Summary 33-34
Chapter LAHF anti-debugging software protection design 34-48
3.1 the debugger introduced the 34-37
3.1.1 User Mode The debugger the 3.1.2 kernel debugger 34-35
35
3.1.3 system-level debugger 35-36
3.1.4 software simulation debugger 36-37
3.2 has anti-debugging techniques introduced 37-40 <br / > 3.3 LAHF anti-debugging model 40-44
3.3.1 targeting of monitoring 40-42
the 3.3.2 LAHF anti-debugging ideas 42-44
3.4 LAHF self-behind module design 44-47
3.5 Chapter Summary 47-48
the Chapter LAHF prototype system experimental analysis 48-57
4.1 Experimental prototype 48-49
4.1.1 two-machine debugging prototype 48
4.1.2 stand-alone debugging prototype 48-49
4.2 anti-debugging the ability to detect 49-52
4.3 from hidden experimental 52-55
4.4 performance test 55-56
4.5 Chapter Summary 56-57 the
fifth chapter summarizes and Prospects 57-59
5.1 This article summarizes 57
5.2 Future Prospects of 57-59
Reference 59-61
Acknowledgements 61-62
studying for a master's degree during the period have been published or accepted papers 62-64
Related dissertations
- The Research on VMM-based Rootkit Detection and Protection Model
- Research of Web Browser Security System Based on Hypervisor Architecture
- The Research and Apply of Program Protection Technique
- Research on Technique of BIOS Trojan Detection
- Research and Implementation of Malware Analysis Tool Based on Virtualization
- IAT encryption packed program of study
- SMART-VMM: The Design and Implementation of Virtual Machine Monitor Based on VT-x
- Research and Application of Video and Multimedia Content Management System
- Hardware Virtualization Assisted Security Monitor for Cross-Platform Protection
- File Protection System Research Based on Hardware Assisted Virtualization