How to verify the right DLLs are loaded

255 views Asked by At

In order to defend my products against sideload attacks, I would like to verify that the DLLs that I load into the the application, are really the DLLs that I expect, and not a compromised DLL with the same name.

I've considering generering hashes of all DLLs on build, and verifying a DLLs hash every time it's loaded/accessed.

What's the best way to do this? Are there tools I can just plug into my applications, or do I need to write something myself?

1

There are 1 answers

2
TcKs On

If someone has enough permissions to insert custom DLL into your process, then has enough permissions to modify your binaries and patch (crack?) your dll/exe and skip your check.