Book Image

Binary Analysis Cookbook

By : Michael Born
Book Image

Binary Analysis Cookbook

By: Michael Born

Overview of this book

Binary analysis is the process of examining a binary program to determine information security actions. It is a complex, constantly evolving, and challenging topic that crosses over into several domains of information technology and security. This binary analysis book is designed to help you get started with the basics, before gradually advancing to challenging topics. Using a recipe-based approach, this book guides you through building a lab of virtual machines and installing tools to analyze binaries effectively. You'll begin by learning about the IA32 and ELF32 as well as IA64 and ELF64 specifications. The book will then guide you in developing a methodology and exploring a variety of tools for Linux binary analysis. As you advance, you'll learn how to analyze malicious 32-bit and 64-bit binaries and identify vulnerabilities. You'll even examine obfuscation and anti-analysis techniques, analyze polymorphed malicious binaries, and get a high-level overview of dynamic taint analysis and binary instrumentation concepts. By the end of the book, you'll have gained comprehensive insights into binary analysis concepts and have developed the foundational skills to confidently delve into the realm of binary analysis.
Table of Contents (12 chapters)

Making IA-32 system calls on Linux

Now that we have a very rudimentary understanding of IA-32 registers and instructions, we can move on to the next very interesting topic when it comes to assembly. That is, how do we make system calls on Linux in our assembly programs? If you're into shellcode, know what a reverse shell is, and have used commercial or open-source tools to generate shellcode of this nature, then this recipe will help you to develop your own. We won't necessarily develop a reverse shell in this recipe; instead, we will go over the necessary knowledge for you to accomplish that kind of task. Believe me, I would enjoy writing a book on various techniques to weaponize assembly for the benefit of those who, like me, gravitate toward the offensive side of information security. Nonetheless, what you will learn in this recipe will definitely serve you well and...