Download issue 35 here

Transcript
Compiling is a rather destructive process. Starting with code written in a relatively understandable language for a human being, one ends up with a huge
collection of instructions in a format that’s easy to digest for a computer
processor. Although both are representations of the same problem and will
produce the same result, a lot of high-level information is lost in the process.
Binary reverse engineering is the process
through which the original information is recovered (to some extent) from this large collection of simple CPU instructions.
Needless to say, this is an extremely complex
task and, as researchers, we need as much
help as we can get if we want to be able to
successfully accomplish it. In this article we
will focus on an invaluable tool, namely the
Dynamic Binary Instrumentation (DBI).
To be precise, DBI is not actually a tool but a
method - an approach for attacking the problem. DBI frameworks expose a rich API that
can be used to write our own tools in the classical sense of the word. The purpose of these
tools is to analyze and even modify the behavior of a program by injecting small pieces of
code into it at runtime.
www.insecuremag.com
Through this article I will be using Intel’s PIN
Framework but there are many others. Some
of them have been out there for a long time
and are still actively developed. Just look up
Valgrind, DynamoRIO or Intel PIN (to name a
few) on your favorite search engine.
PIN is my framework of choice
So what is PIN and why am I using it for this
article? PIN is Intel’s DBI framework. By leveraging its comprehensive API we will be able
to inject arbitrary C/C++ code into a running
process.
The fact that Intel is behind it reassures me
that this project won’t (probably) be discontinued in the near future. Along the same lines,
there is a lot of documentation and support
groups on the web.
51