Techniques Based on Virtual Machine in Anti-Rootkit
- Author
- ZhangJiSheng
- Advisor
- ZhouXueHai
- School
- University of Science and Technology of China
- Major
- Computer System Architecture
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 196
- Citations
- 0
Abstract
A rootkit is a hacker successfully invade the system used to maintain the system's superuser privileges and hide traces of a tool. According to the level of running rootkit can be divided into the application layer and kernel-level rootkit rootkit. Currently, the application layer rootkit detection technology is relatively mature , but not yet back to good kernel-level rootkit tool. The main reason is kernel-level rootkit has the authority and anti-rootkit module can achieve as high privileges . This article first analyzes the principle of kernel-level rootkit attacks , and then based on anti-rootkit module permissions than a kernel-level rootkit high this principle , this paper lguest virtual machine is designed and implemented for the Linux operating system kernel anti-rootkit modules. In this module implements access control mechanisms such as : Apart from a trusted operating system kernel code snippet above, from other parts of the code that does not allow the client kernel is write protected memory area ; except from a trusted operating system kernel code snippet above, from other parts of the code is not allowed out of the virtual machine being monitored client privilege register write operation ; being protected or that portion of memory to be monitored include guest operating system core kernel code segment , kernel read-only data segment , as well as important exception table segment becomes rootkit targeting global data ; being protected or monitored register now includes IDTR, GDTR, SYSENTER_EIP_MSR and debug registers, etc. we are protected by clearing the memory area shadow page table _PAGE_RW bit memory area to achieve the write protection , by intercepting privileged register write operation hypercall realize registers write protected. Experimental results show that this prototype system implemented in the kernel rootkit anti linux2.6 have a good performance but only a little performance loss .
Table of contents
Abstract 4-5
ABSTRACT 5-11
Chapter 1 Introduction 11-15
1.1 Background 11-12 < br /> 1.1.1 rootkit defined 11
1.1.2 rootkit development history 11-12
1.2 Research 12-13
1.2. an anti-rootkit status 12
1.2.2 virtual machine with anti-rootkit research 12-13
1.3 thesis work 13
1.4 Thesis Organization 13-15
Chapter 2 Linux system calls and LKM 15-24
2.1 Linux system calls 15-20
2.1.1 System Calls Overview 15-16
2.1.2 system call service function, the system call number and system call table 16
2.1.3 software interrupt int / iret way 16 -18
2.1.4 sysenter / sysexit way 18-20
2.2 Linux kernel module 20-22
2.2.1 loadable kernel module mechanism 20-21
2.2.2 loadable kernel module structure 21-22
2.3 Chapter Summary 22-24
Chapter 3 rootkit attacks principle 24-47
3.1 application-level rootkit attack principle 24
3.1.1 binary kit 24
3.1.2 library kit 24
3.2 kernel-level rootkit 24
3.3 attack system calls 24-32
3.3.1 to attack the system call table 24-26
3.3. 2 attack system call entry function 26-30
3.3.3 attack system call services function 30-32
3.4 attacks interrupt descriptor table 32 <br / > 3.5 Attack exception table __ex_table 32-39
3.5.1 Linux kernel exception table __ex_table presence of background 33-34
3.5.2 page fault exception 34-35
3.5.3 exception table __ex_table realization 35-37
3.5.4 on page fault exception table __ex_table abnormal use 37-38
3.5.5 using the exception table __ex_table attack ideas 38-39
3.6 through debug registers attacks 39-46
3.6.1 x86 processors debug registers 39-42
3.6.2 Attacks 42-46
3.7 kernel-level rootkit existing forms 46
3.8 Chapter Summary 46-47
Chapter 4 prototype system design and implementation 47-59
4.1 overall idea 47-50
4.1.1 X86 virtualization half program lguest 47-48
4.1.2 shadow page table 48
4.1.3 general framework 48-49
4.1.4 is monitoring section write protection to achieve 49
4.1.5 memory area to be monitored organization 49-50
4.2 increases type LHCALL_MARKRO of hypercall 50-51 <br / > 4.2.1 hypercall LHCALL_MARKRO increase 51
4.2.2 hypercall LHCALL_MARKRO given opportunity 51
4.3 Linux kernel stack system processes the acquisition 51-52 < br /> 4.4 IDTR, GDTR register write operation monitoring 52-53
4.5 important global data processing 53-54
4.5.1 __ mointor__ attribute modifier introduction 53-54
4.5.2. monitor section introduces 54
4.6 function call chain for 54-56
4.7 writes legally verified algorithm 56-58
4.8 instruction simulation 58
4.8.1 Directive simulate the reasons 58
4.8.2 instruction simulation realization 58
4.9 Chapter Summary 58-59
Chapter 5 prototype system verification and performance evaluation, optimization 59-66
5.1 prototype system hardware and software environment 59
5.2 Anti-rootkit experimental results have been 59-60
5.3 calltrace algorithm lguest the performance optimization 60-61
5.3.1 optimization theory 60
5.3.2 precise time measurement method 60
5.3.3 Performance optimization results 60-61
5.4 prototype overall system performance 61-64
5.4.1 virtbench performance testing procedures 61-62
5.4.2 kernel configuration option CONFIG_FRAME_POINTER impact on performance 62-63
5.4.3 prototype system virtbench performance test results and analysis 63-64
5.5 Chapter Summary 64-66
Chapter 6 Full Summary 66-68
6.1 Job Summary 66-67
6.2 follow-up prospects 67-68
References 68-71
papers published during the reading and made research 71-72
Thanks 72
Related dissertations
- Research on Kernel Rootkit Detection and Protection Based on Android Platform
- Kernel mode of Android system based on Rootkit
- Research on Key Technology of Device Virtualization
- The Research on Virtual Machine Based-on Xen
- Research on Performance and Availability Evaluation Methods of Virtualization Systems
- Research on Key Technologies of On-demand Deployment of Virtual Machines in Distributed Environments
- A Virtual Machine Environment Based on Xen
- Research and Implementation of HIPS -technology Based File Access Control Between Host and Virtual Machine
- Under Linux kernel-level Rootkit detection protection mechanism
- Based SmartVMM of I / O architecture design and implementation
- Research of the Rootkit Based on Linux Kernel
- Research on Technology of CPU Virtualization Based on VT-x
- VM-based security monitoring studies
- Research on Performance Monitoring Technique of Cluster Management of the Virtual System
- Research and Implementation of Rootkit Detection System Based on.NT
- Research on Attacks and Prevention Technology Based on ARP and PPPoE
- Based on I/O Performance of Virtual Machine Resource Scheduling Algorithm Research
- Feature Extraction and Classification Based on Supspace Analysing and Its Applications
- Applications and Research on Possibilistic Fuzzy Kernel Clustering Algorithm Based on Sample-feature Weighted
- Transplantation of Embedded Linux Operating System Based on S3C6410