📚 OpenRCE is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.








Flag: Tornado! Hurricane!

 Forums >>  Target Specific - General  >>  Basics of Binary Auditing

Topic created on: June 22, 2005 19:51 CDT by dwarkeeper .

Hi,

I am interested in seeing some article/documentation on doing some basic binary auditing when using IDA Pro. I do have some ideas on it but i think there is a big gap in what people do and i wonder if a common series of steps and examples could be created to help consolidate the ideas.


  trihuynh   June 22, 2005 23:25.57 CDT
First of all, you need to be patience. You do a lot of work and end up with nothing. The faster way is useing IDA with a debugger and then you can gain more insightful information about how things work, doing a poor deadlisting analysis is time consuming.

+ For lowing hanging fruit, you can do an IDA search for bad API calls like strcpy,strcat,...there are some IDA scripts around that can do the job for you automatically. You can google for thoses scripts. You never know if you can end up catching some basic overflow or format string bugs.

+ Another semi low hanging fruit is for signed/unsigned mismatch bug. This can be done by writting a IDA plug-in to do flow analyzing and check the instructions are performed against input data. Too bad, nobody actually publishs such a plug-in so you are on your own for this one.

+ Heap overflows, logic bugs may require more work. Data flow, graph analysis can be used to fasten the process. You can use commerical product from Sabre security or waiting for some free useful tool ie "Process Stalker" which i hope should be published soon (or never ???). However, as fas as I know, these tools won't help if you do driver/kernel tracing. So you may end up have to write your own tool in this case.

The difficulty of reverse engineering tool to find vulnerability is about the extra work that you need to write your tool first before you can even start the bug hunting process. Trust me, it is very time consuming

  pedram     June 23, 2005 11:59.10 CDT
Process Stalker will be released, GPLed, in the next 2 weeks or so. The release will be accompanied with an intro-by-example walkthrough.

  trihuynh   June 23, 2005 15:44.06 CDT
That's sweet. I am looking forward for the release. Thanks !

  peter     June 23, 2005 17:07.38 CDT
I highly recommend reading Reversing: Secrets of Reverse Engineering
It may be what you are looking for, by far in my oppinion the best reversing book out there right now. Its sole focus is on reverse engineering as the name implies.
Peter~

  ryanlrussell     June 23, 2005 17:57.03 CDT
To clarify, by "binary auditing" you mean auditing a binary program for security vulnerabilities?  Because if you mean something more general, then there is more advice to be had beyond what has been given so far.

  2GooD     June 29, 2005 15:15.49 CDT
First of all, define the goal of the "basic binary auditing"?
Second, find ways to automate as much as possible for reaching your goal.

  Sellmi     September 23, 2005 07:17.39 CDT
you can also check out the copy-loop plugin from Dennis Elser...it has bugs but anyway it is a nice idea...

or search for rep* instructions and also for cmp r8,asciiChar

Note: Registration is required to post to the forums.

There are 31,328 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit