(08-11-2017, 04:48 AM)titbang Wrote: (07-20-2017, 01:47 PM)karstenfl Wrote: Well, the c++ code were almost perfect, however admins with debug rights would still have access to terminate the application. :-(
I found this that might work, since it uses kernel mode callbacks. However my c++ skills lacks code understanding at this level: https://stackoverflow.com/questions/2055...thout-ssdt
This is probably the lowest level hook you can get but you might as well use IAT patching or DLL injection because these techniques can all be defeated.
Not really, you can go much lower.
It's often impractical, but you can do kernel injection, and many similar things. There has been PoC code for BIOS injection and I believe that at some point there was something (malware, I think) that hooked interrupts used by the bootloader to run custom code. (but if you go that far, why not just inject directly into the bootloader, instead of hooking interrupts...)
I mean... You can technically sneak into someones house and replace physical components with backdoored ones (which you'll have to buy a factory to make, on top of figuring out how to make them)...
Lesson:
You can always go lower if you haven't hit hardware yet.
Everything past higher-level kernel injection is usually useless though.