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








Flag: Tornado! Hurricane!

Error: Invalid blog entry ID specified.

 Forums >>    >> 

Topic created on: by .


  v01d     July 4, 2008 10:14.20 CDT
> memger: hi,
>
> i\'m looking for people who are interested in testing an IDA plugin which aims to hide the IDA debugger from most common anti-debugging tricks. The idea is to create a rather complete implementation which defeats all known anti-debugging techniques.
> The plugin can be found at http://newgre.net/node/50.
> If you have any suggestions or find bugs, please post here or at my site.
>
> Cheers
> Jan

The plug looks nice have to test it. But I think you have to change the name since there is IDA Stealth plugin and it's created by the author of IDA, no matter that it doesn't work against all the anti-debugging techniques

  memger     July 4, 2008 10:21.47 CDT
> v01d: > memger: hi,
> >
> > i\\\'m looking for people who are interested in testing an IDA plugin which aims to hide the IDA debugger from most common anti-debugging tricks. The idea is to create a rather complete implementation which defeats all known anti-debugging techniques.
> > The plugin can be found at http://newgre.net/node/50.
> > If you have any suggestions or find bugs, please post here or at my site.
> >
> > Cheers
> > Jan
>
> The plug looks nice have to test it. But I think you have to change the name since there is IDA Stealth plugin and it\'s created by the author of IDA, no matter that it doesn\'t work against all the anti-debugging techniques

Ilfak actually knows about this plugin becasue i already posted it in the IDA forum. It didn't seem he was too mad about it ;-)

  nezumi     July 4, 2008 11:49.25 CDT
um, how about this?
JohoR crackme

  memger     July 4, 2008 13:33.14 CDT
> nezumi: um, how about this?
> JohoR crackme

Am i missing something here? If you just pass all exceptions to the application the debugger is not recognized. So this little program rather checks if a debugger is capable of handling exceptions correctly (IDA has some problems with this), rather than a test program for anti-anti-debugging techniques. Correct me if i'm wrong

cheers
Jan

  nezumi     July 4, 2008 15:05.07 CDT
memger
sorry, your plug-in works ok, just my IDA 5.2 crashes on mov fs:[eax], esp/xor eax,[eax], changing EAX content. I removed all plug-ins, but yours and the bug mystically disappeared. guess, conflict with two (or more) plug-ins, I'm trying to find the second "bad" plug-in now. however, without your plug-in everything works fine (as far as if your plug-in is the only plug-in and there is no others). the bug is - EAX is changed to -1, so the rest of the code goes wrong way.

  memger     July 5, 2008 06:22.51 CDT
The plugin still has at least one major bug: modifying the import directory fails with packed executables, so injection of the stealth dll fails, thats why it was tagged alpha ;-)
Will fix it asap.
Knwon bugs and new versions at http://newgre.net/idastealth

  memger     July 6, 2008 06:56.42 CDT
Fixed the bug when using the plugin with a packed executable.

  thECurouZ     July 6, 2008 13:14.01 CDT
I have used Extreme Debugger Detector 0.50 by Hellsp@wn..
there is a bug when try to hide these functions:

-SetUnhandledExceptionFilter
-Detect DRx
-Invalid HANDLE
-GetTickCount
-RDTSC

Cheers.
thE Cur!ouZ.

  memger     July 6, 2008 13:20.12 CDT
> thECurouZ: I have used Extreme Debugger Detector 0.50 by Hellsp@wn..
> there is a bug when try to hide these functions:
>
> -SetUnhandledExceptionFilter
> -Detect DRx
> -Invalid HANDLE
> -GetTickCount
> -RDTSC
>
> Cheers.
> thE Cur!ouZ.

I will address these issues asap. Thx for pointing this out!
Edit: Can you provide me with a download link to this tool?

  thECurouZ     July 6, 2008 14:27.14 CDT
> memger: > thECurouZ: I have used Extreme Debugger Detector 0.50 by Hellsp@wn..
> > there is a bug when try to hide these functions:
> >
> > -SetUnhandledExceptionFilter
> > -Detect DRx
> > -Invalid HANDLE
> > -GetTickCount
> > -RDTSC
> >
> > Cheers.
> > thE Cur!ouZ.
>
> I will address these issues asap. Thx for pointing this out!
> Edit: Can you provide me with a download link to this tool?

http://rapidshare.com/files/127676344/Extreme_Debugger_Detector_0.50.rar.html

  memger     July 12, 2008 19:05.35 CDT
I just released a new version of my stealth plugin at http://newgre.net/idastealth.
The new version is nearly feature complete (the RDTSC driver is still missing, though) and addresses all techniques described in the paper by peter ferrie and some additional techniques which are probably not so common (e.g. handling of DBG_PRINTEXCEPTION_C or NtYieldExecution).
Besides, xADT as well as Extreme Debugger Detector 0.5 are unable to detect the IDA debugger if all options are set (apart from the "find tools complex" test in xADT).
If you find bugs or have any suggestions for additional techniques please contact me.

cheers
jan

  dnix   July 14, 2008 06:25.08 CDT
Should plugin work under IDA running in vmware winXP/2K  guest, just wondered

  memger     July 14, 2008 08:51.35 CDT
> dnix: Should plugin work under IDA running in vmware winXP/2K  guest, just wondered
yes it should work as long as you have rights to write to %IDA_DIR%/cfg directory.

Edit: When started from a guest account you need to make sure that the guest user is able to execute the .plw file, then it works.

  PeterFerrie     July 14, 2008 08:58.10 CDT
> The new version is nearly feature complete (the RDTSC driver is still missing, though) and addresses all techniques described in the paper by peter ferrie

My new paper contains all new tricks.  I'll test the plugin against them when I have some time.

> and some additional techniques which are probably not so common (e.g. handling of DBG_PRINTEXCEPTION_C or NtYieldExecution).

Yes, these are known to me, but for some reason they are not very common.

  memger     July 23, 2008 18:20.03 CDT
I rlsed the first beta version at my site. I guess nearly all publicly known anti-debugging techniques have been implemented so far and the plugin seems to be quite stable. If you feel something is missing or anything doesn't work as it should, pls let me know

cheers
Jan

  memger     September 2, 2008 19:52.38 CDT
Hi everyone,

just wanted to announce that a new version of IDA Stealth along with the complete source code is available from my site. Feedback appreciated :)

Cheers
Jan

  memger     March 25, 2009 17:53.36 CDT
Just posted a new version at my website. Finally IDAStealth includes a RDTSC emulation driver (with source code). Besides, some bugfixes made it into the new version, which you can download here.
If you think something is missing or doesn't work, please let me know.

  memger     December 15, 2009 07:23.00 CST
I just released a new version of IDAStealth (v1.2) at my website. It finally comes with full Themida support. If you find bugs or have suggestions, pls let me know.

Edit: is it possible to change the picture in the download section? It's still an old beta screenshot

  littleuser     December 21, 2009 05:21.22 CST
Lets take a look at GetThreadContextHook from HideDebugger.cpp Why do you use DWORD id = GetCurrentThreadId(); if the thread that gets the context is pointed at by HANDLE hThread? And this thread is not current at all. The same thing with SetThreadContextHook.

  memger     December 21, 2009 06:11.39 CST
you're right this is a bug, I'll fix it for the next rls. thx

  PeterFerrie     December 22, 2009 15:42.28 CST
The thread handle is also insufficient, since many handles can point to the same object, and all of them should return the same information.  You need the thread ID that corresponds to the handle.

  memger     December 22, 2009 16:33.02 CST
> PeterFerrie: The thread handle is also insufficient, since many handles can point to the same object, and all of them should return the same information.  You need the thread ID that corresponds to the handle.

You're quite correct Peter, I'll use NtQueryInformationThread with THREAD_BASIC_INFORMATION to map a given handle to its thread id. It's not implemented yet since I'm very busy recently. Will fix it asap.

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