how to block dll injection using a Blackllist/by identifying a dll uniquely?
<p>I Have been currently assigned to write a piece of code that will determine if a dll is blacklisted and if so it should not be allowed to load. Google Chrome has this functionality, so I checked Google chrome's code, and saw that they maintain an array of blacklisted dll's from which they protect themselves. I tried some other things like I tried to change the blocked dll's import table, name of dll and many other stuff and then tried to inject it into chrome, but somehow chrome is able to uniquely identify that the dll being injected is a blacklisted dll and prevents it from happening.</p>

<p>Does anyone has any ideas or pointers as to how this can be achieved??</p>

<p>Thanks,
Deepak :)</p>