DescriptionWhether you want to learn how to develop a robust, full-featured rootkit or you're looking for effective ways to prevent one from being installed on your network, this hands-on resource provides you with the tools you'll need. Expert developer Ric Vieler walks you through all of the capabilities of rootkits, the technology they use, steps for developing and testing them, and the detection methods to impede their distribution.
This book provides the detailed, step-by-step instructions and examples required to produce full-featured, robust rootkits. Presented in modular sections, source code from each chapter can be used separately or together to produce highlyspecific functionality. In addition, Vieler details the loading, configuration, and control techniques used to deploy rootkits. All ancillary software is fully detailed with supporting source code and links to the compilers, utilities, and scripts necessary to build and run every example provided.
What you will learn from this book
- Complete coverage of all major rootkit technologies: kernel hooks, process injection, I/O filtering, I/O control, memory management, process synchronization, TDI communication, network filtering, email filtering, key logging, process hiding, device driver hiding, registry key hiding, directory hiding and more
- Complete coverage of the compilers, kits, utilities, and tools required to develop robust rootkits
- Techniques for protecting your system by detecting a rootkit before it's installed
- Ways to create modular, commercial grade software
Who this book is for
This book is for anyone who is involved in software development or computer security.
Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
Chapter 1: Tools.
How Do I Build a Rootkit?
The Microsoft Driver Development Kit.
Microsoft Visual VC++ 2005 Express.
Microsoft Software Developers Kit.
Debugging Tools for Windows.
Other Tools to Consider.
What to Keep Out.
Chapter 2: A Basic Rootkit.
Alternate Data Streams.
Installing Your Rootkit.
Testing Your Rootkit.
Chapter 3: Kernel Hooks.
The System Call Table.
Kernel Memory Protection.
Defining a Hook Function.
What to Hook?
Csr — Client Server Run Time.
Dbg — Debug Manager.
Etw — Event Tracing for Windows.
Ki — Kernel (must be called from Kernel).
Ldr — Loader Manager.
Pfx — ANSI Prefix Manager.
Rtl — Runtime Library.
Zw — File and Registry.
The Problem with Hooking.
Chapter 4: User Hooks.
Finding a Specific Dynamic Link Library.
Defining a Hook Function.
The Trampoline Function.
Using Ghost to Block PGP Encoding.
Chapter 5: I/O Processing.
The Console Application.
Handling IO within the Device Driver.
Injected Function Programming.
Testing I/O Control.
Chapter 6: Communications.
The Transport Driver Interface.
Initiating the Connection.
Running the Example.
Chapter 7: Filter Drivers.
Inserting a Filter Driver.
Chapter 8: Key Logging.
A Keyboard Filter.
Threading and Synchronization.
Interpreting Key Codes.
Testing the Example.
Chapter 9: Concealment.
Registry Key Hiding.
Chapter 10: E-mail Filtering.
Microsoft Outlook E-mail Filtering.
Installing an Outlook Client Filter.
Testing the Outlook Client Extension.
Lotus Notes E-mail Filtering.
Installing a Lotus Notes Client Filter.
Testing the Lotus Notes Client Extension.
Chapter 11: Installation Considerations.
Intended Installation Software.
End User License Agreements (EULAs).
ZwSetSystemInformation with SystemLoadAndCallImage.
Installing onto Machines That Visit Your Website.
Removing the Traces of an Installation.
Testing Your Installation Techniques.
Chapter 12: Ghost Tracker.
Chapter 13: Detecting Rootkits.
What to Do with a Detected Rootkit.
Chapter 14: Preventing Rootkits.
Operating System Updates.
Free Personal Firewalls.
Other Personal Firewalls.
Host-based Intrusion Prevention Systems.
Blocking Unexpected Operations.
Rootkit Prevention Techniques.
Appendix A: Freeware.
|13||Error in Text,On page 13 of Professional Rootkits , inside the last paragraph before the configManager.h section, in the first sentence, the word rootkit is misspelled as rookit .|
|16||Error in Text,On page 16 of Professional Rootkits , inside of figure 2-2, on the last comment line, the word and is misspelled as amd .|
|39||Error in Text,CrsNewThread|
|320||Error in Text,CrsNewThread|