Injectso: Modifying And Spying On Running Processes Under Linux And Solaris

No ratings

Presented at Blackhat Europe 2001 by

In a 1994 Windows Systems Journal article Jeffrey Richter described a method for injecting Dynamic Link Libraries into running windows processes. The method, generally referred to as injecting a dll, has since become an extremely common technique in low level windows utilities, particularly when used with a variety of methods of modifying the processes behaviour after DLL injection. Being able to safely and easily modify a processes behaviour at run time provides an amazing array of opportunities for the systems programmer, or black/whitehat since it can be used to: Insert debugging/profiling routines at run time Dynamically modify a running program to be invulnerable to a known security issue Dynamically backdoor a running process leaving no obvious traces (e.g modified disk binaries, restarted services) In this talk Shaun will discuss and demonstrate various methods that have commonly been used in Unix operating systems to modify the behaviour of processes, including binary patching, dynamic loader interception and in core patching. He will then present a new tool called injectso that can inject shared libraries into Linux/Solaris processes and assist the libraries to intercept function calls occuring inside the running process. He will then demonstrate use of the tool (and shared libraries using features of the tool) to protect a vulnerable process and subvert a running process. Shaun Clowes is the IT Director of SecureReality, a small cutting edge security consultancy based in Sydney, Australia. Shaun holds an honors degree in Computing Science from the University of Technology Sydney and has a wide technical background in IT including Unix systems programming, networking and systems/security administration. Shaun leads the vulnerability research arm of SecureReality which is broadly exploring the security landscape testing both the obvious targets and the glue that holds everything together.