SecurityTubeBeta
Watch ... Learn ... Contribute
securitytube home
securitytube videos
securitytube questions
securitytube news
securitytube tools
divider
upload video on SecurityTube
 
 
Video Categories:

Inline Function Hooking by Rootkits

 
 

This is Part 2 of the rootkits primer created by Corey from WatchGuard. Begin by watching Part 1, if you have not done so already. In this video Corey dives deeper into how rookits work under the hood. There are many techniques a rootkits use in the wild to cover their presence. These include - Import address table (IAT) hooks, system service descriptor table (SSDT) hooking, writing layered filter drivers, direct kernel object manipulation and inline function hooking.

The Hacker Defender rootkit uses inline function hooking to hide itself and its activites from the user. Inline function hooking is more advanced than IAT or SSDT hooking. Instead of replacing pointers in a table, which we will show in a later article is easy to detect, an inline function hook replaces several bytes in the original function. Usually the rootkit adds an unconditional jump from the original function to the rootkit code. Many Windows API functions begin with a standard preamble. For an inline function hook, the rootkit saves the original bytes in the function it is overwriting in order to preserve the same functional behavior. Then, it overwrites a portion of the original with a jump to the rootkit code. Notice that the rootkit can safely overwrite the first five bytes of the function because that is the same amount of space required for many types of jumps or for a call instruction, and it is on an even instruction boundary. Now the rootkit can jump to the original code plus some offset and modify what the original operating system function returned. Inline function hooking has many legitimate uses as do most rootkit techniques. Microsoft Research first documented inline function hooking at a conference. Today, Microsoft has expanded its usage far beyond just research. They have titled it "hot patching," which allows a system to be patched without rebooting.

This video described the inline function hooking process in the context of the Hacker Defender Rootkit in detail. Thanks to SecuMania.org for posting these videos. Enjoy!


 

 
Related Videos from: Rootkit Basics
divider
You are Viewing this Video Now!
3096 views
4392 views
2693 views
5843 views
3829 views

Author
Vivek-Ramachandran

Vivek Ramachandran is a security evangelist and has been working in computer security related fields for the past 7 years. In 2007, Vivek spoke at world renowned conferences Defcon (WEP Cloaking Exposed) and Toorcon (The Caffe Latte Attack). The discovery of the Caffe Latte Attack was covered by CBS5 news, BBC online, Network World etc news agencies.In 2006, Vivek was announced as one of winners of the Microsoft Security Shootout contest held in India among 65,000 participants. He has also been a recipient of a Team Achievement at Cisco Systems for his work on 802.1x and Port Security modules on the Catalyst 6500 switches. Currently he spends all of his time maintaining Security- Freak.Net , SecurityTube.Net and is the co-founder of Axonize. Vivek, is a Bachelor in Electronics and Communications Engineering from the prestigious Indian Institute of Technology, Guwahati.You can contact him at vivek[at]securitytube.net

 
©2007 Freak Labs