OSX/MaMi
- Type
- Backdoor
- Capabilities
- Credential theftExfiltrationPost exploitationDefense evasionSpoofing
- Platforms
- macOS
OSX/MaMi is a macOS malware family discovered in 2018 that hijacks network configuration to redirect victim traffic through attacker-controlled infrastructure. Its defining behavior is modification of DNS settings on infected systems and installation of a rogue trusted root certificate into the system keychain, enabling interception and manipulation of network traffic and creating conditions for adversary-in-the-middle activity. This combination can facilitate credential theft, traffic tampering, content injection, and broader post-compromise abuse of web sessions and encrypted communications.
The malware is an unsigned Mach-O executable for macOS. It alters system network settings, including DNS configuration, and has been associated with use of native macOS tooling for network configuration changes. Although it was not observed to rely on robust launch-item persistence by default and may delete its own executable after execution, the configuration changes it leaves behind can remain in effect until manually remediated. Reported functionality also includes command execution, file transfer, screenshot capture, simulated mouse events, and AppleScript-related control, indicating broader remote-access and post-exploitation potential beyond DNS hijacking alone.
OSX/MaMi has been assessed as closely related to the Windows malware DNSUnlocker, with similarities in operational design and certificate-based traffic interception. Its initial infection vector was not conclusively established, though social-engineering-based delivery has been considered plausible. The malware targets macOS systems and is notable for abusing trusted certificate installation and DNS manipulation rather than sophisticated exploitation, making it effective through persistent system misconfiguration and traffic interception.
Techniques & procedures
8 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
Future versions of OSX/MaMi are expected to enable the attacker to take screenshots, simulate mouse events, persist as a launch item, download and upload files and execute commands.
Persistence
1 technique
Persistence
Future versions of OSX/MaMi are expected to enable the attacker to take screenshots, simulate mouse events, persist as a launch item
Privilege Escalation
1 technique
Privilege Escalation
Future versions of OSX/MaMi are expected to enable the attacker to take screenshots, simulate mouse events, persist as a launch item
Defense Impairment
1 technique
Defense Impairment
In order to intercept encrypted traffic and maintain persistence on infected devices, OSX/MaMi also installs a new root certificate.
Credential Access
2 techniques
Credential Access
Future versions of OSX/MaMi are expected to enable the attacker to take screenshots, simulate mouse events
DNS hijacking is used to carry out Man-in-the-Middle (MITM) attacks which can result in information theft, malicious ads or crypto-miners being injected into web traffic.
Collection
3 techniques
Collection
Future versions of OSX/MaMi are expected to enable the attacker to take screenshots, simulate mouse events
Future versions of OSX/MaMi are expected to enable the attacker to take screenshots
DNS hijacking is used to carry out Man-in-the-Middle (MITM) attacks which can result in information theft, malicious ads or crypto-miners being injected into web traffic.
Command and Control
1 technique
Command and Control
Future versions of OSX/MaMi are expected to enable the attacker to take screenshots, simulate mouse events, persist as a launch item, download and upload files and execute commands.
Impact
1 technique
Impact
This malware uses a technique known as DNS hijacking, which allows the attacker to change a user’s DNS settings, redirecting the internet traffic from the infected device to the attacker.
Observables
16 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.