ObRegisterCallbacks returning ACCESS_DENIED

Hi guys,

I am trying to register for callbacks related to process handle creation and duplication usingObRegisterCallbacks . The problem is that it returns ACCESS_DENIED, which on msdn states that the driver is not signed. I am using vs2015 which auto signs the binary, also signed my binary with a valid company certificate, but still the status ACCESS_DENIED persists, i am using windbg my host is windows 10 and my target is win 7 32 bit (Testing it on VM). Any help is greatly appreciated… :slight_smile:

Deepak :slight_smile:

Try generating the test cert in vs option. It worked for me
On Dec 23, 2015 12:53 PM, wrote:

> Hi guys,
>
> I am trying to register for callbacks related to process handle creation
> and duplication usingObRegisterCallbacks . The problem is that it returns
> ACCESS_DENIED, which on msdn states that the driver is not signed. I am
> using vs2015 which auto signs the binary, also signed my binary with a
> valid company certificate, but still the status ACCESS_DENIED persists, i
> am using windbg my host is windows 10 and my target is win 7 32 bit
> (Testing it on VM). Any help is greatly appreciated… :slight_smile:
>
> Deepak :slight_smile:
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: <
> http://www.osronline.com/showlists.cfm?list=ntdev&gt;
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at <
> http://www.osronline.com/page.cfm?name=ListServer&gt;
></http:>

Hi Goresh,

Tried that too… :frowning: doesnt work, still get that access denied ntstatus :(:frowning:

Deepak

> I am trying to register for callbacks related to process handle creation and

duplication usingObRegisterCallbacks . The problem is that it returns
ACCESS_DENIED, which on msdn states that the driver is not signed.

  1. Use /INTEGRITYCHECK linker option.
  2. Sign your driver with /ph signtool option.

Hi Aleh,

/INTEGRITYCHECK does the trick…
I had a sources file that had the flag, but since i was using VS2015 sources wasnt requires :open_mouth:
I had to put it in linker and viola it worked :):slight_smile: