Book Review-- Hacking: The Art of Exploitation, 2nd Edition

By Sandra Henry-Stocker, ITworld.com |  Security, book, hacking Add a new comment

Hacking: The Art of Exploitation, 2nd Edition (Jon Erickson, No Starch Press, 2008) is an intense, thorough and extremely well written book that can take you from basic hacking concepts to building your own security code in a surprisingly short time. It is probably the best book to read if you want a thorough understanding of various hacking techniques, especially if you know enough about programming to put some of what you learn into practice -- not for hacking, I would hope, but to use the same skills for vulnerability testing and the same knowledge for protecting your network.

The book consistently provides clear, yet detailed, explanations. In its eight chapters, it lays a groundwork for understanding the basic methods of hacking (identifying and exploiting weaknesses in deployed code) and follows through with details on how specific flaws lead to specific attacks. The author also presents very useful countermeasures -- those that detect exploits and those that deflect them.

Chapter 1, Introduction, sets the expectations for the rest of the book. It introduces the complex, low-level workings of computers in a way that most high level users are likely to find quite illuminating.

Chapter 2 focuses on programming. Some of this early material may seem more detailed than necessary for those who have been programming for a long time, but it doesn't insult the reader by being too introductory. By the end of the chapter, the reader is already getting his feet wet with sample code and a solid expectation of what the following chapters on methods and means will provide.

Chapter 3 might be said to be the real meat of the text. It introduces all types of hacking exploits from stack and heap buffer overflows, denial of service attack, TCP/IP hijacking, port scanning and more. If these are vague concepts to you, they certainly will no longer be once you finished this book.

Chapter 4 addresses network-related attacks. It starts with basic explanations of OSI layers, sockets and such and then carries through with how network concepts lead to hacking exploits.

Chapters 5 through 7 cover shellcode (the payload in the exploitation of a particular vulnerability), countermeasures and cryptography.

Chapter 8 wraps up the wide and detailed scope of the book with some fundamental take-home messages.

I found the approach of the book, starting with basic explanations of flaws and exploits, moving through programming and then centering on specific exploitation
techniques to be very effective. Some older exploits (like the ping of death) might no longer be cause for concern, but the historical implications of flaws once exploited and eventually thwarted may help the reader to understand how systems and firewalls have evolved as a result. The dissections of hacking techniques are nothing short of excellent.

You can learn such things as how to corrupt system memory and run arbitrary code via buffer overflows and format strings. You will see how to go about outsmarting common security measures used with intrusion detection systems. You will learn how to use a debugger to read processor registers and memory contents. You might even learn to crack certain encryption protocols. Whether you are a sysadmin or a programmer, you are likely to leave this book with a renewed sense of the importance of defensive coding techniques.

The book includes LiveCD -- a complete Linux programming and debugging environment that you can run without modifying your working operating system. This means you can actually debug code, overflow buffers, hijack network connections, get around protections set up to trip you up, exploit cryptographic weaknesses and devise your own hacking tools if you feel like experimenting.

At nearly twice the size of the first edition, this book is a bargain and a must have for anyone who wants to understand the ins and outs of hacking.

Just as the day that I locked myself out of my house put me in an altogether different mindset regarding its penetrability, this book will dramatically change your view of system security.

ITworld LIVE

SecurityWhite Papers & Webcasts

Webcast On Demand

Seven Deadly Sins of Cloud Security (Video)

As cloud computing gains popularity, too few people are aware of the security threats that are emerging. In this short video, experts from HP discuss the latest cloud security threats and explain measures to help overcome them. Hear about the seven deadly sins of cloud security and learn how to avoid becoming a victim of poor security in your cloud environment.Intel and the Intel logo are trademarks of Intel Corporation in the U.S. and/or other countries.

Sponsor: HP & Intel

White Paper

Establishing a Strategy for Database Security is No Longer Optional

The options for securing increasingly valuable databases are very broad and deep, and can be confusing. This research provides an overview of three categories of controls that should be implemented to ensure that enterprise data is protected in the most efficient and effective manner.

White Paper

Database Activity Monitoring Is Evolving

Read the analyst report and learn how you can leverage the core capabilities of a DAP solution for better database security.

White Paper

Protecting Against Database Attacks and Insider Threats: Top 5 Scenarios

Read this new eBook to learn the top five scenarios and essential best practices for preventing database attacks and insider threats.

Webcast On Demand

Distributed Database Security with Real-time Monitoring

View this demo and learn how IBM InfoSphere Guardium database activity monitoring can help protect your sensitive data in distributed DBMS environments with a holistic approach to data security and compliance.

Sponsor: IBM

See more White Papers | Webcasts

Ask a question

Ask a Question