If you want to master the art and science of reverse engineering code with IDA Pro for security R&D or software debugging, this is the book for you. Highly organized and sophisticated criminal entities are constantly developing more complex, obfuscated, and armored viruses, worms, Trojans, and botnets. IDA Pro's interactive interface and programmable development language provide you with complete control over code disassembly and debugging. This is the only book which focuses exclusively on the world's most powerful and popular took for reverse engineering code.
- Reverse Engineer REAL Hostile CodeTo follow along with this chapter, you must download a file called ! DANGER! INFECTEDMALWARE! DANGER! . . . 'nuff said
- Portable Executable (PE) and Executable and Linking Formats (ELF)Understand the physical layout of PE and ELF files, and analyze the components that are essential to reverse engineering
- Break Hostile Code Armor and Write your own ExploitsUnderstand execution flow, trace functions, recover hard coded passwords, find vulnerable functions, backtrace execution, and craft a buffer overflow
- Master DebuggingDebug in IDA Pro, use a debugger while reverse engineering, perform heap and stack access modification, and use other debuggers
- Stop Anti-ReversingAnti-reversing, like reverse engineering or coding in assembly, is an art form. The trick of course is to try to stop the person reversing the application. Find out how!
- Track a Protocol through a Binary and Recover its Message StructureTrace execution flow from a read event, determine the structure of a protocol, determine if the protocol has any undocumented messages, and use IDA Pro to determine the functions that process a particular message
- Develop IDA Scripts and Plug-insLearn the basics of IDA scripting and syntax, and write IDC scripts and plug-ins to automate even the most complex tasks
Inhaltsverzeichnis
1;Front Cover;1 2;Reverse Engineering Code with IDA Pro;4 3;Copyright Page;5 4;About IO Active;6 5;Contributing Authors;8 6;Contents;10 7;Chapter 1: Introduction;14 7.1;An Overview of Code Debuggers ;15 7.2;Summary ;18 8;Chapter 2: Assembly and Reverse Engineering Basics;20 8.1;Introduction ;21 8.2;Assembly and the IA-32 Processor ;21 8.3;The Stack, the Heap and Other Sections of a Binary Executable ;32 8.4;IA-32 Instruction Set Refresher and Reference ;37 8.5;Summary ;48 9;Chapter 3: Portable Executable and Executable and Linking Formats;50 9.1;Introduction ;51 9.2;Portable Executable Format ;51 9.3;Executable and Linking Format ;63 9.4;Summary ;79 10;Chapter 4: Walkthroughs One and Two;80 10.1;Introduction ;81 10.2;Following Execution Flow ;81 10.3;Solutions Fast Track ;97 10.4;Frequently Asked Questions ;98 11;Chapter 5: Debugging;100 11.1;Introduction ;101 11.2;Debugging Basics ;101 11.3;Debugging in IDA Pro ;105 11.4;Use of Debugging while Reverse Engineering ;107 11.5;Heap and Stack Access and Modification ;115 11.6;Other Debuggers ;117 11.7;Summary ;120 12;Chapter 6: Anti-Reversing;122 12.1;Introduction ;123 12.2;Debugging ;123 12.3;Example Overview ;127 12.4;Obfuscation ;129 12.5;Summary ;149 13;Chapter 7: Walkthrough Four;150 13.1;The Protocol Problem ;151 13.2;Protocol Structure ;151 14;Chapter 8: Advanced Walkthrough;178 14.1;Introduction ;179 14.2;Reversing Malware ;180 15;Chapter 9: IDA Scripting and Plug-ins;212 15.1;Introduction ;213 15.2;Basics of IDA Scripting ;213 15.3;IDC Syntax ;214 15.4;Simple Script Examples ;222 15.5;Writing IDC Scripts ;226 15.6;Basics of IDA Plug-ins ;240 15.7;Plug-in Syntax ;244 15.8;Setting up the Development Environment ;245 15.9;Simple Plug-in Examples ;247 15.10;The Indirect Call Plug-in ;269 15.11;Plug-in Development and Debugging Strategies ;314 15.12;Loaders ;320 15.13;Processor Modules ;321 15.14;Third-party Scripting Plug-ins ;321 15.15;Frequently Asked Questions ;323 16;Index;324