SamuZai
oalabs
oalabs

patreon


Tracing The Pain Away Introduction

Tooling Setup

To complete the labs you will need the following setup. 

A Note About Malware Analysis

All of the tutorial binaries are benign though they may still trigger anti-malware protections. We strongly advise the following precautions when working with all lab binaries.

TinyTracer Setup

PIN is not redistributable which means TinyTracer should be built from source. There is a very good build tutorial on the GitHub here: https://github.com/hasherezade/tiny_tracer/wiki/Installation#on-windows. 

If you already have a copy of the built TinyTracer you can follow the installation instructions here: https://github.com/hasherezade/tiny_tracer/wiki/Installation#how-to-install.

We strongly recommend building from c:\pin so that the entire directory can simply be copied to the c:\ drive on your VM.

Once the folder has been copied over run the add_menu.reg in order to add your PIN tracer to the context menu. 

Assuming you have used the c:\pin path recommended above the file will be located in c:\pin\source\tools\tiny_tracer\install32_64. The configuration files are also located in this directory.

Once TinyTracer has been installed test tracing a binary by right clicking on it and choosing Run with PIN (Tiny Tracer). This should launch the binary along with a CMD window with some debugging information. The trace file will be saved in the same location as the target binary with the name of the binary and the .tab extension.

DTrace Setup

Comprehensive installation steps for DTrace are provided by Microsoft here: https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/dtrace#installing-dtrace-under-windows 

Symbols

DTrace requires symbols (specifically from ntoskrnl) so these must be setup prior to use. For the following instructions we are assuming the symbol path is c:\symbols, you will need to adjust the path accordingly if you are using a different location.

Tracing The Pain Away Introduction

More Creators