08.05.2013 Views

AlexSyScan13

AlexSyScan13

AlexSyScan13

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Hotpatching the loader<br />

■ What if, instead of patching the kernel memory manager, we could<br />

patch the loader itself<br />

■ Make it send PAGE_EXECUTE_READWRITE (0x40) instead of<br />

PAGE_READWRITE (0x4)<br />

■ One could do it from the kernel…<br />

■ Requires MDLs, changing protection and other visible system changes<br />

■ Could also be done from user-mode<br />

■ Again, starts requiring very noisy APIs to modify the other process’ memory<br />

■ What if we actually used the hotpatcher itself?<br />

■ Instead of just injecting an evil file-less DLL, inject real hotpatch data<br />

■ Patch would now be done by the LdrHotpatchRoutine and appear to be<br />

coming from the process itself (no real visibility)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!