Questions tagged [anti-debugging]

Any techniques or tricks used to prevent, mitigate or detect an attempt to run the software within a debugging environment.

References for anti-debugging:

  • Peter Ferrie's “Ultimate” Anti-Debugging Reference (PDF, 147 pages) contains many anti-debugs, whether they're hardware or API based...
  • Walied Assar's blog shows his researches, which are focused on finding new anti-debugs.

other (maybe redundant) resources:

137 questions
6
votes
1 answer

How to attach debugger to app if it has protection against attaching?

Sometimes I've tried to attach Ollydbg to applications those have some protection against debuggers, but I have never coded any of these applications and did not see this protection in many applications... So it looks like it is not hard to bypass…
Wiggler Jtag
  • 261
  • 3
  • 6
3
votes
0 answers

Weird anti-debugging mechanism

I am trying to grasp an anti-debugging trick used in this program. Upon attaching any debugger (x64dbg, VEH debugger) the software crashes after about 2 seconds. x64dbg shows me that the following instruction causes an exception: After stepping…
3
votes
1 answer

Self modifying codes

Recently I have found the article Using UPX as a Security Packer. Here, UPX is patched, after decompressing, also restores some overwritten bytes. This way, if somebody decompresses the binary with upx -d in order to analyse it, will obtain a…
robert
  • 887
  • 2
  • 12
  • 28
2
votes
3 answers

ZwQueryInformationThread - what is it exactly?

By analyzing a piece of assembly code of a Trojan, I found a string "ZwQueryInformationThread". I assume that it is an anti-debugging technique because the process terminates after hitting that line. But, I could not find any good explanation for…
user3097712
  • 1,541
  • 1
  • 25
  • 44
1
vote
0 answers

BSWAP and CMP as obfuscation for Anti-Debugging?

I am trying to attach debug a program that has an "anti-debug" feature on it. When stepping through, it seems to step through a maze of call and jmp commands that eventually just loop around. The loop only happens when stepping line by line and I…
Chemistpp
  • 133
  • 1
  • 4
1
vote
0 answers

Debugged process not break on breakpoint

I launch a game process then I suspend the process and restore the hooks in ntdll.dll then I attach debugger to the process and resume the process. Next I see debugger catch the 0xC0000005(access violation) exception on thread [DbgUiRemoteBreakin]…
1
vote
2 answers

Finding call trace of a crashing executable with anti-debugging techniques

The application I target has terribly annoying anti-debugging techniques. With x32dbg and ScyllaHide with the following configuration, the application exits immediately as soon as a breakpoint is hit, whether it is a software or hardware…
shavit
  • 111
  • 2
1
vote
2 answers

What is the reason for INT 0x2D byte scission?

What is the reason behind the byte scission (the next immediate byte following "int 2d" is skipped) behaviour when executing INT 0x2D? I came across this article http://www.drdobbs.com/monitoring-nt-debug-services/184416239 but still cannot…
xyz
  • 173
  • 1
  • 6
1
vote
1 answer

Detect Debugger exploring Stack

I am interested in the following technique to detect if a debugger is attached or not. http://spareclockcycles.org/2012/02/14/stack-necromancy-defeating-debuggers-by-raising-the-dead/ However I tried the examples and they don't seem to work. Do the…
fred26
  • 319
  • 1
  • 11
0
votes
1 answer

Is that message mean the program has an anti-debugger?

When trying to debug a program using the x64dbg and in a specific step, the following problem happens: Is that mean that the program has an anti-debugger? if not, why when debugging the program and in a specific step that problem happen?
Lion King
  • 269
  • 1
  • 7
0
votes
1 answer

Bypassing anti-debugging

I'm trying to RE Stardew Valley to write cheats for it. The problem is that when I trace the pointers for my health/energy/etc... back more than one level the game crashes. It probably has some kind of anti-debugging checks in it. I looked into it a…
3asssains
  • 111
  • 4
  • 8
-2
votes
1 answer

Anti-Reverse Question on implementing a Shellcode

I am trying to make things harder for someone to reverse my code. I think that implementing a shellcode following this article could work for my case. How can I access (or share) global variables in the shellcode I am loading? I assume you can pass…
fred26
  • 319
  • 1
  • 11