Dynamic Linker Hijacking (T1574.006)

View on ATT&CK

In Playbook

Associated Tactics

  • Persistence
  • Privilege Escalation
  • Defense Evasion

Persistence (TA0003)

The adversary is trying to maintain their foothold. Persistence consists of techniques that adversaries use to keep access to systems across restarts, changed credentials, and other interruptions that could cut off their access. Techniques used for persistence include any access, action, or configuration changes that let them maintain their foothold on systems, such as replacing or hijacking legitimate code or adding startup code.

View on ATT&CK

Procedure Examples

Description Source(s)
Kerrisk, M. (2020, June 13). Linux Programmer's Manual. Retrieved June 15, 2020. Man LD.SO
The Linux Documentation Project. (n.d.). Shared Libraries. Retrieved January 31, 2020. TLDP Shared Libraries
Apple Inc.. (2012, July 23). Overview of Dynamic Libraries. Retrieved March 24, 2021. Apple Doco Archive Dynamic Libraries
baeldung. (2020, August 9). What Is the LD_PRELOAD Trick?. Retrieved March 24, 2021. Baeldung LD_PRELOAD
Itamar Turner-Trauring. (2017, April 18). “This will only hurt for a moment”: code injection on Linux and macOS with LD_PRELOAD. Retrieved December 20, 2017. Code Injection on Linux and macOS
skape. (2003, January 19). Linux x86 run-time process manipulation. Retrieved December 20, 2017. Uninformed Needle
halflife. (1997, September 1). Shared Library Redirection Techniques. Retrieved December 20, 2017. Phrack halfdead 1997
Tim Brown. (2011, June 29). Breaking the links: Exploiting the linker. Retrieved March 29, 2021. Brown Exploiting Linkers
Fitzl, C. (2019, July 9). DYLD_INSERT_LIBRARIES DYLIB injection in macOS / OSX. Retrieved March 26, 2020. TheEvilBit DYLD_INSERT_LIBRARIES
Timac. (2012, December 18). Simple code injection using DYLD_INSERT_LIBRARIES. Retrieved March 26, 2020. Timac DYLD_INSERT_LIBRARIES
Jon Gabilondo. (2019, September 22). How to Inject Code into Mach-O Apps. Part II.. Retrieved March 24, 2021. Gabilondo DYLD_INSERT_LIBRARIES Catalina Bypass