Also known as: OSX/Keydnap
Executive Summary
Keydnap is a macOS Trojan that stealthily harvests Keychain credentials and establishes persistent backdoor access through launch agents or login items. The exfiltrated data is sent to a remote C2 server, enabling attackers to deploy ransomware later if desired. Security teams should block outbound connections to known malicious domains, implement application whitelisting, and monitor for anomalous launch agent registrations.
Enhanced Description
Keydnap, also seen as OSX/Keydnap within the macOS threat landscape, is a credential‑stealing Trojan that targets the macOS Keychain. Once installed on a victim’s machine, Keydnap enumerates all keychain items—including passwords for email, web services, VPNs, and other secure storage—and compiles them into an encrypted payload for exfiltration. In addition to this theft phase, the malware establishes a long‑term persistence mechanism by creating a launch agent or login item that ensures it re‑installs itself after system restarts or user logouts. During execution Keydnap communicates with a command‑and‑control (C2) server over an outbound HTTPS channel. The C2 interface allows the adversary to issue remote commands, initiate additional credential harvests, and receive collected data in near real‑time. While the core functionality is focussed on keychain access, some variants have shown rudimentary ransomware capabilities—in particular, they can encrypt the victim’s Documents directory if a ransom is demanded. Because Keydnap operates entirely within user space and leverages legitimate macOS APIs for Keychain access, it evades many signature‑based defenses. The malware’s persistence via login items also makes traditional host‑based tools that only watch for executable drops ineffective unless coupled with user‑space process monitoring.
Key Capabilities
ATT&CK Techniques
Recommended Actions
Suggested Tags
Confidence Assessment
The available data provides a clear picture of Keydnap’s core credential‑stealing function and persistence strategy, but lacks detailed technical specifications such as exact API calls, encryption algorithms, or full variant taxonomy. Further samples would improve confidence in the complete attack chain, including ransomware components.
This piece of malware steals the content of the user's keychain while maintaining a permanent backdoor (Citation: OSX Keydnap malware).