Runtime binary loading via the dynamic loader on Apple Mac OS X

Read article

Apple Mac OS X 10.4 temp_patch_ptrace(): Nonsense in kernel-land

Read article
Runtime binary loading via the dynamic loader on Apple Mac OS X
Apple Mac OS X 10.4 temp_patch_ptrace(): Nonsense in kernel-land

Runtime binary loading via the dynamic loader on Apple Mac OS X

An article written by Dan Goodin from The Register was recently published, it mentions a forthcoming presentation by Vincenzo Iozzo, which presents a method to load a binary on runtime, directly from memory, in Mac OS X systems. Here we like to stick to the technical side of things… so let’s get started on explaining how this can be done, in case you aren’t planning to attend Black Hat or just feel particularly curious on the topic!

Apple Mac OS X 10.4 temp_patch_ptrace(): Nonsense in kernel-land

Several software vendors realized, sometime during the 1990-2000 time-frame, that exporting system call tables within kernel address space was a bad idea. This obviously doesn’t mean anything to Red Hat and other GNU/Linux vendors who are happily providing world readable System.map files. Not like anybody needs them, though. Then again, you have to face potential funniness of contradictory measures, like Apple’s own mistakes. This article won’t talk about yet another bug introduced by a Linux developer working at Red Hat (and later silently fixed by another employee of the very same company), but an interesting issue with Mac OS X 10.