Various tips
- Malware often checks the flag field within the
ProcessHeapstruct, by seeing ifHEAP_GROWABLEbit 2 is set (debugged).ForceFlagsis usually compared w/ 0, so!0if debugged. - Can raise debugger exceptions like
DBG_CONTROL_C,DBG_CONTROL_BREAK, orDBG_RIPEVENTwithRaiseException,RtlRaiseException, orNtRaiseExceptionto attach debugger if the malware’s own exception handlers fail to take control.