Designing BSD Rootkits and over 450,000 other books are available for Amazon Kindle – Amazon’s new wireless reading device. Learn more

 

or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
32 used & new from $16.99

Have one to sell? Sell yours here
 
   
Designing BSD Rootkits: An Introduction to Kernel Hacking
 
 
Start reading Designing BSD Rootkits on your Kindle in under a minute.

Don’t have a Kindle? Get your Kindle here.

Designing BSD Rootkits: An Introduction to Kernel Hacking (Paperback)

~ Joseph Kong (Author)
Key Phrases: static int load, sysent structure, cdevsw structure, Example Listing, Mon Mar (more...)
4.5 out of 5 stars  See all reviews (4 customer reviews)

List Price: $29.95
Price: $19.77 & eligible for FREE Super Saver Shipping on orders over $25. Details
You Save: $10.18 (34%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 2 left in stock--order soon (more on the way).

Want it delivered Tuesday, March 23? Choose One-Day Shipping at checkout. Details
20 new from $17.68 12 used from $16.99

Formats

Amazon Price New from Used from
Kindle Edition $14.37  
Paperback $19.77  

Frequently Bought Together

Customers buy this book with Rootkits: Subverting the Windows Kernel by James Butler

Designing BSD Rootkits: An Introduction to Kernel Hacking + Rootkits: Subverting the Windows Kernel
  • This item: Designing BSD Rootkits: An Introduction to Kernel Hacking by Joseph Kong

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • Rootkits: Subverting the Windows Kernel by James Butler

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought


Editorial Reviews

Product Description

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 programming
  • Using call hooking to subvert the FreeBSD kernel
  • Directly manipulating the objects the kernel depends upon for its internal record-keeping
  • Patching kernel code resident in main memory; in other words, altering the kernel's logic while it's still running
  • How to defend against the attacks described

    Hack the FreeBSD kernel for yourself!
  • About the Author

    Tinkering with computers has always been a primary passion of author Joseph Kong. He is a self-taught programmer who dabbles in information security, operating system theory, reverse engineering, and vulnerability assessment. He has written for Phrack Magazine and was a system administrator for the City of Toronto.


    Product Details

    • Paperback: 144 pages
    • Publisher: No Starch Press; 1 edition (April 10, 2007)
    • Language: English
    • ISBN-10: 1593271425
    • ISBN-13: 978-1593271428
    • Product Dimensions: 9.1 x 7 x 0.6 inches
    • Shipping Weight: 14.9 ounces (View shipping rates and policies)
    • Average Customer Review: 4.5 out of 5 stars  See all reviews (4 customer reviews)
    • Amazon.com Sales Rank: #385,121 in Books (See Bestsellers in Books)

      Popular in these categories: (What's this?)

      #6 in  Books > Computers & Internet > Operating Systems > BSD
      #89 in  Books > Computers & Internet > Business & Culture > Security

    More About the Author

    Joseph Kong
    Discover books, learn about writers, read author blogs, and more.

    Visit Amazon's Joseph Kong Page

    Inside This Book (learn more)



    What Do Customers Ultimately Buy After Viewing This Item?


    Tags Customers Associate with This Product

     (What's this?)
    Click on a tag to find related items, discussions, and people.
     

    Your tags: Add your first tag
     

     

    Customer Reviews

    4 Reviews
    5 star:
     (2)
    4 star:
     (2)
    3 star:    (0)
    2 star:    (0)
    1 star:    (0)
     
     
     
     
     
    Average Customer Review
    4.5 out of 5 stars (4 customer reviews)
     
     
     
     
    Share your thoughts with other customers:
    Most Helpful Customer Reviews

     
    10 of 10 people found the following review helpful:
    5.0 out of 5 stars Concise, informative, powerful -- a real winner, June 23, 2007
    I loved Designing BSD Rootkits (DBR) by Joseph Kong, and I'm not even a kernel hacker. Rather, I'm an incident responder and FreeBSD administrator. This book is directly on target and does not waste the reader's time. If you understand C and want to learn how to manipulate the FreeBSD kernel, Designing BSD Rootkits is for you. Peer into the depths of a powerful operating system and bend it to your will!

    DBR covers much of the same sorts of material found in the earlier Rootkits: Subverting the Windows Kernel by Greg Hoglund and James Butler, except Kong's book is all about FreeBSD. I actually read the Windows text first, but found Kong's more direct language and examples easier than the Hoglund/Butler text. After reading DBR I have a stronger understanding of each of the main chapters' techniques, i.e., kernel modules, hooking, direct kernel object manipulation, kernel object hooking, run-time kernel memory patching, and detection mechanisms. I particularly liked the author showing his sample rootkit's effectiveness against Tripwire, simply to demonstrate his methods.

    DBR follows another tenet of great books: it credits previous work. Several times in the text Kong says where he learned a technique or what code he's modifying to do his bidding. This should serve as an example to other technical authors. Kong also does not treat his subject matter as a dark art practiced by people in long black coats at Def Con. He is professional and mentions where certain techniques like run-time kernel memory patching are used by commercial operating systems for "hot patching," as happens with Windows.

    I have nothing bad to say about this book, although to get the absolute full learning experience it helps to know C programming, some assembly, and FreeBSD kernel internals. The Design and Implementation of the FreeBSD Operating System by McKusick and Neville-Neil (another excellent book) is helpful preparatory reading. The fact that Kong provided all of his source code for download is also very much appreciated. Bravo! I look forward to your next book.
    Help other customers find the most helpful reviews  
    Was this review helpful to you? Yes No


     
    5 of 5 people found the following review helpful:
    4.0 out of 5 stars Enjoyable primer on system kernel penetration, May 29, 2007
    By Nils Valentin (Tokyo, Japan) - See all my reviews
    --- DISCLAIMER: This is a requested review by No Starch Press, however any opinions expressed within the review are my personal ones. ---


    This enjoyable readable book gradually and very systematically evolves around hacking the kernel of a BSD system.

    Chapter 1: Loadable Kernel Modules 22p.
    Chapter 2: Hooking 13p.
    Chapter 3: Direct Kernel Object Manipulation 20p.
    Chapter 4: Kernel Object Hooking 4p.
    Chapter 5: Run-Time Kernel Memory Patching 27p.
    Chapter 6: Putting It All Together 26p.
    Chapter 7: Detection 8p.

    Its written in a style that allows also non-developers to grasp the main procedures and steps involved for modifying a systems kernel (assuming the attacker got access to a privileged system account).

    Chapters 1 to 5 explain the several methods for modifying the kernel.

    While the book is divided into 7 chapters, its most value really is the Chapters 6 which has many of those WoW effects included.

    All or most technics described of chapters 1-5 will be used in chapter 6 for show casing how to circumvent an HIDS. Here is where all learned technics finally come all together.

    So the reader dabbles with the author from an initial "simple" idea of bypassing an HIDS from one issue to the next. First the system call is hooked, so technically its kind of working, but then we realize that in order to make it perfect we need to hide the just created file (which contains the execution redirection routine). So the next obvious step is to hide the file so we dont leave a footprint on the system, just to realize that we need to hide the KLD (Dynamic Kernel Linker). So now everything is hidden but we forgot about the change of the /sbin directories access/ modification and change time, so we have to go after that too...

    Its technically very interesting to learn how the author approaches the issues involved in order to avoid being detected by the HIDS or commands the user might use. That the author is technically on top of things is also shown f.e. by some info included in the book which is already referring to FreeBSD 7.

    To get the most out of the book you ideally have programming knowledge of C, assembly etc. and debugging software systems. So I think its most valuable to system administrators, developers and security consultants.

    Help other customers find the most helpful reviews  
    Was this review helpful to you? Yes No


     
    6 of 9 people found the following review helpful:
    4.0 out of 5 stars Fun and informative, May 16, 2007
    I don't do a lot with BSD nowadays.. a lot of software customers want is only for Linux, and although sometimes it could be ported, the customers seem to want Linux. However, I cut my teeth on old SunOS, so bsdisms are familiar and friendly to me.

    Working through this book was fun and informative. You can download sources from [....]

    The concepts apply equally well to Linux, of course, and I also realized that some of the areas explored come up in ordinary application work and especially in system troubleshooting, so this isn't entirely about subverting systems for evil purpose.

    Help other customers find the most helpful reviews  
    Was this review helpful to you? Yes No

    Share your thoughts with other customers: Create your own review
     
     
     
    Most Recent Customer Reviews

    5.0 out of 5 stars A perfect programmer's guide.
    Collections strong in web design and programmer's guides know that rootkits have a negative image - but DESIGNING BSD ROOTKITS provides all the information on how to overcome any... Read more
    Published on July 7, 2007 by Midwest Book Review

    Only search this product's reviews



    Customer Discussions

    This product's forum
    Discussion Replies Latest Post
    No discussions yet

    Ask questions, Share opinions, Gain insight
    Start a new discussion
    Topic:
    First post:
    Prompts for sign-in
     


    Active discussions in related forums
    Search Customer Discussions
    Search all Amazon discussions
       



    So You'd Like to...


    Create a guide


    Look for Similar Items by Category


    Look for Similar Items by Subject

     

    Feedback

    If you need help or have a question for Customer Service, contact us.
     Would you like to update product info or give feedback on images?
    Is there any other feedback you would like to provide?

    Your comments can help make our site better for everyone.


    Your Recent History

     (What's this?)

    After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.