No video

No recording of this talk has come out, and we’re no longer expecting one.

DEF CON 34

Dylib Hijacking on macOS: Dead or Alive?

When and where

Day
Sat 8 Aug 2026
Time
13:00 to 14:00 PDT
Room
LVCC - L1 - Exhibit Hall West 3 - 906 (Main Track 3)

Speaker

  • Patrick Wardle is the cofounder of the Objective-See Foundation, CEO and cofounder of DoubleYou, and author of The Art of Mac Malware series. He previously worked at NASA and the NSA, and has presented at countless security conferences, making him intimately familiar with aliens, spies, and talking nerdy.

Abstract

Over a decade ago, a much younger Patrick showed that macOS (then OS X) was vulnerable to what had long been considered a Windows-only attack: dynamic library hijacking. By planting malicious libraries in the right place, attackers could achieve stealthy persistence, inject code into trusted processes, and even bypass core Apple security mechanisms. Today, an older (and hopefully wiser) Patrick revisits that work to answer a simple question: is dylib hijacking truly dead on modern macOS, or has Apple’s decade of defenses, including Gatekeeper, App Translocation, Notarization, and the Hardened Runtime, simply made it harder? This talk revisits the technique in 2026, analyzing these mitigations and evaluating their real-world effectiveness. While the attack surface has been significantly reduced, we show dylib hijacking remains possible under the right conditions. Through real-world examples and live demos, we explore how modern applications can still be coerced into loading attacker-controlled libraries, enabling code execution within trusted processes and bypassing controls such as TCC. Finally, we present practical detection and defense strategies, including novel approaches leveraging Endpoint Security to detect (and block!) malicious library loads at runtime. "Dylib hijacking on OS X" 
www.virusbulletin.com/virusbulletin/2015/03/dylib-hijacking-os-x "Tweaking macOS security controls to thwart application bundle manipulation" 
redcanary.com/blog/threat-detection/mac-application-bundles/ "What's New in Security" (WWDC 2016)
 devstreaming-cdn.apple.com/videos/wwdc/2016/706sgjvzkvg6rrg9icw/706/706_whats_new_in_security.pdf

What you'll get from it

More than a decade ago Patrick Wardle showed that macOS could fall to library hijacking, a trick thought to be a Windows problem. Wardle comes back to ask whether Apple's defences since have killed it. Gatekeeper, notarisation and the hardened runtime have shrunk the attack surface a lot, but under the right conditions applications can still be made to load code they shouldn't. There are also ways for defenders to spot and block these loads. A good one for Mac security people.

Did you find what you came for?