/plushcap/analysis/ambassador/ambassador-code-injection-on-linux-and-macos

Code Injection on Linux and macOS with LD_PRELOAD

What's this blog post about?

Code injection on Linux and macOS can be achieved using LD_PRELOAD and DYLD_INSERT_LIBRARIES. These mechanisms allow you to override system calls and shared libraries, changing the behavior of a program without modifying its source code. This technique has various uses such as manipulating time, making a process appear as root, or simulating changes in the filesystem's root directory. However, there are limitations and security concerns associated with this approach.

Company
Ambassador

Date published
April 18, 2017

Author(s)
Itamar Turner-Trauring

Word count
1223

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.