DLL Hijacking can affect OS X

DLL hijacking is not a prerogative for Windows systems, it is a common hacking technique that is very effective against OS X based machines.

As you may know, DLL hijacking it’s something that its around since around 2000 and allows hackers to exploit a machine with a vulnerable application ( just one of the possibilities of DLL hijacking).

What is DLL Hijacking?
It is an hacking technique that exploits the way certain OS applications search and load DLLs that they use. An attacker can place a DLL for a known program in a location that is searched by the applications before the legitimate DLL’s location and ensure that the malicious DLL is loaded, resulting in remote code execution.

Until now apple’s users weren’t facing this problem, but that ended because the DLL hijacking just arrived in Mac OS X.

At CanSecWest, Synack director of research Patrick Wardle will participate in a talk where its expected for him to explain some of the attacks.

Patrick Wardle provided some tips regarding the possibility of tool that scan apps that are vulnerable to his attack.

Using his own machine Wardle run a Python script where he discovered 144 binaries vulnerable to hijacking attacks, some of them being Microsoft Word, Excel, and PowerPoint.

He also exploits the application gatekeeper since it’s not signed from  Apple App Store, being  gatekeeper able to load malicious files remotely

The researcher was also able to remotely bypass Apple’s Gatekeeper security software implemented by Apple to control the software can be downloaded onto an Apple systems and to implement antimalware features.

Wardle explained that his code, dubbed dylib, would be implanted in a download that should be blocked by Gatekeeper because it is not signed from the Apple App Store. This is not a problem for Wardle that is able to allow Gatekeeper to load the malicious code remotely giving the control to the attacker.

“Gatekeeper normally does a pretty good job of blocking these downloads, but now using this bypass, we can get users to infect themselves,” Wardle said.

“It’s perfect for attacker persistence,” Wardle said. “You copy a specially crafted dylib into the directory PhotoStream looks for when the app starts, and the attacker’s dylib is loaded into the context of the process. It’s a stealthy way to gain persistence; you’re not creating any new processes, nor modifying any files. You’re planting a single dylib and you’re in.”

One of his tested attacks and by his own words:

“My malware infects Xcode and any time a developer deploys a new binary, it would also add the malicious code“ … “It’s an anonymous propagation vector.“

The main message to be passed by him is that this type of attacks “abuses legitimate functionality of OS X and it’s not patched”

Mac OS X users need to be careful, since these type of attacks are stealthy and can be very warmful.

About the Author Elsio Pinto

Elsio Pinto is at the moment the Lead Mcafee Security Engineer at Swiss Re, but he also as knowledge in the areas of malware research, forensics, ethical hacking. He had previous experiences in major institutions being the European Parliament one of them. He is a security enthusiast and tries his best to pass his knowledge. He also owns his own blog http://high54security.blogspot.com/

Edited by Pierluigi Paganini

(Security Affairs –  DLL hijacking, Mac OS X)

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

Fintech firm Figure disclosed data breach after employee phishing attack

Fintech firm Figure confirmed a data breach after hackers used social engineering to trick an…

18 hours ago

U.S. CISA adds a flaw in BeyondTrust RS and PRA to its Known Exploited Vulnerabilities catalog

The U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds a flaw in BeyondTrust RS and…

19 hours ago

Suspected Russian hackers deploy CANFAIL malware against Ukraine

A new alleged Russia-linked APT group targeted Ukrainian defense, government, and energy groups, with CANFAIL…

1 day ago

New threat actor UAT-9921 deploys VoidLink against enterprise sectors

A new threat actor, UAT-9921, uses the modular VoidLink framework to target technology and financial…

2 days ago

Attackers exploit BeyondTrust CVE-2026-1731 within hours of PoC release

Attackers quickly targeted BeyondTrust flaw CVE-2026-1731 after a PoC was released, enabling unauthenticated remote code…

2 days ago

Google: state-backed hackers exploit Gemini AI for cyber recon and attacks

Google says nation-state actors used Gemini AI for reconnaissance and attack support in cyber operations.…

2 days ago

This website uses cookies.