Contributed By Check Point Software Technologies LTD.
DIE is an IDA python plugin designed to enrich IDA`s static analysis with dynamic data. This is done using the IDA Debugger API, by placing breakpoints in key locations and saving the current system context once those breakpoints are hit.
The saved context consist of function arguments and register states, and it is saved upon each function CALL and function RETURN.
DIE takes advantage of IDA`s powerful analysis engine so that when context is taken DIE is fully aware of known function prototypes, data types, structures, unions, arrays and basically every piece of information IDA provides during static analysis.
In order to take this one step further, once context has been saved, DIE attempts to parse the individual data types based on an integrated (and extensible!) value parser framework.
So for example, if the current context has a function argument with type 'CHAR *' DIE will dereference its address and show a human readable ASCII string as value.
If the current context holds a argument with unknown value, DIE will not give up and attempt to guess the value using all relevant parsers.
This parser framework is the real power behind DIE, parser plugins can parse anything from BOOL values to image files to injected code.
The resault is a dynamic databse that holds parsed runtime arguments, which are avilable to the user during static analysis.
Well, yes. I'm glad you asked! These videos show DIE in action, check them out if you want to understand a little bit more about how DIE works.
Bypass Password Protection In which we are going to demonstrate how DIE can be used in order to bypass a (very) simple password protection scheme.
Code Coverage In which we will show you how running DIE before even looking at the static analysis helps with code coverage, indirect calls, and function defenitions.
Querying DieDB In which we will show you how to use DIEDB to quickly locate the Explosive trojan de-obfuscation fuction.
Great, Value parser plugins are the heart of DIE. Without them DIE is practically usless. Check out the value parser writing manual and if your plugin turns out good, share it with the community!
- IDA >= 6.8 (Only Windows version is currently supported)
- Python 2.7
- Simply download DIE and run
pip install -r requirements.txt
from DIE's directory. - Copy the file
die_proxy.py
into IDA plugin directory - Create an enviorment variable named DIEDIR and set it's value to DIE directory.
For the Windows Handle parser plugin, you will also need to install PyWin32 (manually :( )
If for some reason you want to install all the dependencies manually:
- Yapsy - install using
pip install yapsy
or your favorite package manager - Pywin32 - install via
- Sark - If your IDA version < 7.4:
pip install "sark<7.4"
otherwise:pip install -e git+https://github.com/tmr232/Sark.git#egg=Sark
- yaml - install using
pip install pyyaml
- attrdict - install using
pip install attrdict