-
-
Notifications
You must be signed in to change notification settings - Fork 386
Anti Debug Protection
ID: anti debug
Preset: Minimum
Availability:
This protection prevents the assembly from being debugged or profiled.
-
mode
: This parameter define the used anti debug engine. Supported values are:-
safe
: ConfuserEx would detect debugger/profiler using managed API (default) -
win32
: ConfuserEx would detect debugger/profiler using unmanaged WinAPI (Incompatible with OS other than Windows) -
antinet
: ConfuserEx would detect debugger/profiler using antinet by @0xd4d (Produces unverifiable modules, incompatibile with Mono)
-
<protection id="anti debug">
<argument name="mode" value="win32" />
</protection>
It's in general only useful to apply this protection to the main assembly of an application. It can be applied to all assemblies, but this may add some additional CPU load to the application as the protection code will maintain an dedicated thread to monitor for a debugger. If the protection is applied to multiple assemblies, there will be as many monitoring threads.
This protection only provides a minimal amount of additional protection, as it can be quite easily be removed by applications like dnspy by @0xd4d.
The protection can be safely applied to applications and is very unlikely to cause runtime issues or trigger false positives in anti virus scanners.