Advanced debugging techniques
Nick (everdox) <everdoxgmailcom> Thursday, March 7 2013 09:02.54 CST


This article explains how from user-mode we can use NtSetInformationProcess to install an InstrumentationCallback which we can use to monitor access to the following callbacks, without actually hooking them in memory.

This member only exists in x64 versions of windows.

LdrInitializeThunk
KiUserExceptionDispatcher
KiRaiseUserExceptionDispatcher
KiUserApcDispatcher
KiUserCallbackDispatcher

as well as all system calls.

Please note that the InstrumentationCallback member of KPROCESS can only be set from user-mode if the target process is NOT running in the wow64 thunk layer. If you want to use this feature for wow64 processes you must use a driver or go in manually with KD.


http://www.codeproject.com/Articles/543542/Windows-x64-system-service-hooks-and-advanced-debu

Comments
Posted: Wednesday, December 31 1969 18:00.00 CST