Jump to ratings and reviews
Rate this book

Designing BSD Rootkits: An Introduction to Kernel Hacking

Rate this book
Though rootkits have a fairly negative image, they can be used for both good and evil. Designing BSD Rootkits arms you with the knowledge you need to write offensive rootkits, to defend against malicious ones, and to explore the FreeBSD kernel and operating system in the process. Organized as a tutorial, Designing BSD Rootkits will teach you the fundamentals of programming and developing rootkits under the FreeBSD operating system. Author Joseph Kong's goal is to make you smarter, not to teach you how to write exploits or launch attacks. You'll learn how to maintain root access long after gaining access to a computer and how to hack FreeBSD. Kongs liberal use of examples assumes no prior kernel-hacking experience but doesn't water down the information. All code is thoroughly described and analyzed, and each chapter contains at least one real-world application. Included:

144 pages, Paperback

First published April 9, 2007

13 people are currently reading
189 people want to read

About the author

Joseph Kong

6 books2 followers
Joseph Kong is a system administrator from Toronto, Ontario, Canada. His interests include computer security, reverse code engineering, and system programming.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
19 (37%)
4 stars
22 (43%)
3 stars
10 (19%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 4 of 4 reviews
Profile Image for Hugh Smalley.
48 reviews
September 14, 2016
Designing BSD Rootkits introduces the fundamentals of programming and developing rootkits under the FreeBSD operating system. In addition to explaining rootkits and rootkit writing, the book aims to inspire readers to explore the FreeBSD kernel and gain a better understanding of the kernel and the FreeBSD operating system itself. Written in a friendly, accessible style and sprinkled with geek humor and pop culture references, the author favors a "learn by example" approach that assumes no prior kernel hacking experience.

Though rootkits have a fairly negative image, they can be used for both good and evil. "Designing BSD Rootkits" arms you with the knowledge you need to write offensive rootkits, to defend against malicious ones, and to explore the FreeBSD kernel and operating system in the process.


Organized as a tutorial, "Designing BSD Rootkits" will teach you the fundamentals of programming and developing rootkits under the FreeBSD operating system. Author Joseph Kong's goal is to make you smarter, not to teach you how to write exploits or launch attacks. You'll learn how to maintain root access long after gaining access to a computer and how to hack FreeBSD.


Kongs liberal use of examples assumes no prior kernel-hacking experience but doesn't water down the information. All code is thoroughly described and analyzed, and each chapter contains at least one real-world application.


Included: The fundamentals of FreeBSD kernel module programmingUsing call hooking to subvert the FreeBSD kernelDirectly manipulating the objects the kernel depends upon for its internal record-keepingPatching kernel code resident in main memory; in other words, altering the kernel's logic while it's still runningHow to defend against the attacks described


Hack the FreeBSD kernel for yourself!

Profile Image for Michael Grube.
2 reviews2 followers
February 20, 2023
Decent book for baby's first kernel module rootkit. Does its job. Great for beginners.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.