Api to tell if a driver is verified?

Hello, Is there an API way a driver can tell it is verified? The driver in question is not a production driver, and it NEEDS verifier to properly work (it needs special pool to do something like Unit tests). Registry is not an option, because the settinga are there before reboot also. Regards, Dejan.

Maybe this will help: https://www.cybereason.com/blog/code-integrity-in-the-kernel-a-look-into-cidll

This looks like signature verification only, not Driver Verifier check?

You could cheat and look up your device stack to see what is on top of you. But that is all wrong and you shouldn’t do that.

Wouldn’t verifier be below and not above the driver?
This is not a production driver, so verifiable non-production ideas are ok.

Wouldn’t verifier be below and not above the driver?
I’d have to go look, but I think it wraps the driver? Any way, in either direction you can take a look, although, perversely, verifier might complain.

Dumping the kernel exports, either MmIsDriverVerifying or
MmIsDriverVerifyingByAddress Could work

Bent from my phone.


From: Mark_Roddy
Sent: Friday, June 16, 2023 1:54:48 PM
To: Doron_Holan <doron_holan>
Subject: Re: [NTDEV] Api to tell if a driver is verified?

OSR https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.osr.com%2F&amp;data=05|01||0f2e14298f1a417c5c9808db6eabed16|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638225456928923464|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&amp;sdata=ZyKuNNAzSLyUXwzGWCEDEf2Cx6Z214wVJSkOpi%2FfMa4%3D&amp;reserved=0https:</https:>

Mark_Roddy commented on Api to tell if a driver is verified?

> Wouldn’t verifier be below and not above the driver?

I’d have to go look, but I think it wraps the driver? Any way, in either direction you can take a look, although, perversely, verifier might complain.</doron_holan>

I knewI saw some API, but didn’t remember Mm was the prefix!
Many thanks!

link /dump /exports ntoskrnl.exe | findstr /i verif


From: Dejan_Maksimovic
Sent: Saturday, June 17, 2023 2:34:17 AM
To: Doron_Holan <doron_holan>
Subject: Re: [NTDEV] Api to tell if a driver is verified?

OSR https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.osr.com%2F&amp;data=05|01||5b03484e5eb547ce074a08db6f160674|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|638225912608260718|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&amp;sdata=VHWTB00IfprZS9UC2wToC1Zd4D%2BrncaUYfK5Ra1ULo0%3D&amp;reserved=0https:</https:>

Dejan_Maksimovic commented on Api to tell if a driver is verified?

I knewI saw some API, but didn’t remember Mm was the prefix!
Many thanks!</doron_holan>