The Life of Binaries (OST)

The Life of Binaries (OST)
Free Course
Categories
Effort
Certification
Languages
Recommended, but not required, to have taken Intro x86. Should have general familiarity with compiling executables from languages such as C or C++.
Misc

MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

The Life of Binaries (OST)
A very detailed dive into how binary executable formats work. In particular the PE format used by Windows.

MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

A very detailed dive into how binary executable formats work. In particular the PE format used by Windows.


Topics include but are not limited to:

•Scanning and tokenizing source code.

•Parsing a grammar.

•Different targets for x86 assembly object files generation. (E.g. relocatable vs. position independent code).

•Linking object files together to create a well-formed binary.

•Detailed descriptions of the high level similarities and low level differences between the Windows PE and Linux ELF binary formats. (NOTE: we didn't get to this in the class where the video was recorded, but the materials are in the slides)

•How an OS loads a binary into memory and links it on the fly before executing it.


Along the way we discuss the relevance of security at different stages of a binary’s life, from the tricks that can be played by a malicious compiler, to how viruses really work, to the way which malware “packers” duplicate OS process execution functionality, to the benefit of a security-enhanced OS loader which implements address space layout randomization (ASLR).


Lab work includes:

•Manipulating compiler options to change the type of assembly which is output

•Manipulating linker options to change the structure of binary formats

•Reading and understanding PE files with PEView

•Reading and understanding ELF files with Readelf (NOTE: we didn't get to this in the class where the video was recorded, but the materials are in the slides)

•Using WinDbg and/or GDB to watch the loader dynamically link an executable

•Using Thread Local Storage (TLS) to obfuscate control flow and serve as a basic anti-debug mechanism

•Creating a simple example virus for PE

•Analyze the changes made to the binary format when a file is packed with UPX

•Using the rootkit technique of Import Address Table (IAT) hooking to subvert the integrity of a program’s calls to external libraries, allowing files to be hidden.


Knowledge of this material is recommended, but not required, for future classes such as Rootkits, but is required for Reverse Engineering Malware.





0
No votes yet

MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Free Course
Recommended, but not required, to have taken Intro x86. Should have general familiarity with compiling executables from languages such as C or C++.

MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.