DLL Hijacking on OS X
summary
Shows that macOS will load attacker-planted dynamic libraries by abusing weak LC_LOAD_DYLIB/LC_ID_DYLIB semantics and @rpath runpath search behavior in the dyld loader. Demonstrates building a compatible hijacker dylib (set version, export constructor, use install_name_tool to reexport symbols), drops it into the primary runpath, and achieves persistence and in-process code execution (examples: iCloud agent persistence, Xcode infection). An automated scanner finds ~150 vulnerable binaries on one box and AV/firewalls fail to detect the attack.
AI-written summary · about
chapters (12)
- 0:00Introduction to DLL Hijacking
- 1:23Agenda Overview
- 1:53DLL Hijacking on Windows
- 6:02OS X Hijacking Concepts
- 9:39Dynamic Loader Vulnerabilities
- 12:53Run Path Dependent Hijacking
- 18:13Hijacking Examples
- 23:56Persistence Mechanisms
- 27:46Process Injection and Bypassing
- 30:23Gatekeeper Bypass Tactics
- 36:03Network Attacks and Security Tools
- 38:24Conclusion and Q&A
