Ransomware on Mac: how real is it and how to protect your files
Mac ransomware exists, but the documented cases are few. KeRanger was discovered on March 4, 2016, and affected more than 7,000 Mac users. NotLockBit, reported in October 2024, has no known victims or distribution methods in the wild. Do not panic over it. The protection that works whether or not you spot the threat is a backup, so make sure Time Machine or another backup is running.
01What Mac ransomware does
Ransomware is malware that locks your data and then demands payment to unscramble it. Malware in general is harmful software installed on your device without your knowledge. Viruses, spyware and ransomware are common types.
The malware encrypts files, which means it scrambles them with a key you do not have. The sections below cover the two documented Mac cases, then the other routes to a ransom demand, and then what to do about them.
02KeRanger, 2016
KeRanger was discovered on March 4, 2016, by Palo Alto Networks. It came from a compromised installer for Transmission, a popular BitTorrent client, downloaded from the official website. The installer carried a valid developer signature issued by Apple, which let the malware bypass Apple's built-in security.
After it ran, it slept for three days. Then it encrypted the /Users folder first and the /Volumes folder after that. Each file, for example Test.docx, was first copied into an encrypted version with the .encrypted extension.
03NotLockBit, 2024: no known victims
NotLockBit is a file-encrypting malware family that poses as the LockBit ransomware and targets macOS systems, described in a news report dated October 23, 2024. SentinelOne, which gave it the name, says it appears to be the first functional ransomware family targeting macOS, as earlier attempts were only proof-of-concept samples. That is SentinelOne's view; it sits beside KeRanger above, which affected more than 7,000 Mac users in 2016. A proof of concept is a demonstration that something is possible, not a working attack.
What it did when run:
- It steals the victim's data and encrypts files.
- It appends the .abcd extension to encrypted files and drops a ransom note in each folder with encrypted files.
- It is an x86_64 binary, an Intel-style program. That suggests it works only on Intel Macs and on Apple silicon Macs running Rosetta, the emulation software that lets them run Intel programs.
There were no known victims or distribution methods in the wild, meaning outside a lab, on real people's Macs. That is the whole case: a working encryptor was found, and nobody was known to have been hit.
04Other routes to a ransom demand
Mac ransomware is not the only way a Mac owner can be held to ransom.
An infostealer is malware that copies passwords, cookies and wallet data off a machine. It can hold that data for ransom or use it to get into other accounts and systems. A breach that starts with an infostealer may lead to ransomware later. A trojan is malware disguised as something useful. Many trojans try to persist for months, hiding in the background, and one thing they may do is encrypt local files, more likely in a company environment.
For how these families get onto a Mac, see Mac infostealers and how Macs get viruses.
05What protects, and from what
| Protection | What it covers |
|---|---|
| Backups with Time Machine | Recovering files whatever encrypted them: hourly, daily and weekly backups |
| Apps only from the App Store or identified developers | Gatekeeper is designed to make sure only trusted software runs |
| XProtect | Known malware: it blocks it and moves it to the Trash; see XProtect |
| Not running pasted commands | Closes the route where you run the malware yourself: ClickFix tricks users into running commands that download malware, usually an information stealer |
| Keeping macOS updated | Apple releases software updates that include security updates |
KeRanger carried a valid developer signature issued by Apple and got past Apple's built-in security that way, and malware can go undetected, at least temporarily, even with security software. Where built-in protection stops and an extra tool helps is on do I need antivirus.
The row that does not depend on detection is the first one.
06Backups are the protection that does not need a warning
Time Machine, the backup feature built into macOS, automatically backs up your Mac and performs hourly, daily and weekly backups of your files. If something encrypts your files, the backups are the older copies to restore from.
One detail is easy to miss. Time Machine also keeps local snapshots. They are stored on the same disk as the original files and kept for up to 24 hours or until space is needed. They let you recover previous versions even if the backup disk is not attached. They are a convenience, not a second copy of your data.
A restore returns items to their original location. The steps, including a whole Mac, are on restore from Time Machine.
07If you suspect an infection
The first step is to stop logging into online accounts with your usernames, passwords or other sensitive information. Change your passwords and enable two-factor authentication in case the malware gave someone access to your accounts.
Be careful which backup you restore from. Do not reuse backups or Time Machine images that may be tainted. The removal steps are in remove malware from Mac, and the checks are in check for a virus and signs of a virus. If the question is whether someone else has control of the Mac, start with is my Mac hacked.
08The short version
Two documented Mac ransomware cases, KeRanger in 2016 and NotLockBit in 2024, show it exists, and a short list of cases is not a probability. Keep a backup running, get software from the App Store or from developers Apple identifies, and do not paste commands from pages you do not trust. For the wider question of antivirus, see what built-in protection does and the Gatekeeper page.
FAQ
Can Macs get ransomware?
Yes. KeRanger was discovered on March 4, 2016, and affected more than 7,000 Mac users. In 2024 researchers described NotLockBit, a file-encrypting family that targets macOS, with no known victims or distribution methods in the wild.
How likely is it for a Mac to get ransomware?
The two documented cases on this page are one that reached more than 7,000 Mac users in 2016 and one with no known victims in 2024. That is a short list of cases, not a probability.
Are Macs still safe from viruses?
Macs are not immune to malware. The Federal Trade Commission lists viruses, spyware and ransomware as common types of malware. For how malware reaches a Mac, see the page on whether Macs can get viruses.
How can I tell if my Mac has malware?
Ransomware is the easy case, because it demands payment to unscramble the data it encrypted. Other malware is quieter, and the checks are on the virus-check page.
How can I tell if my Mac has been hacked?
If you suspect an infection, the first step is to stop logging into online accounts with your usernames, passwords or other sensitive information. Then follow the checks on the hacked-Mac page.
Does a backup protect me from Mac ransomware?
A backup lets you recover your files without paying. Time Machine performs hourly, daily and weekly backups, and a restore returns items to their original location. Local snapshots sit on the same disk as the originals, so they are not a separate copy.
Related guides
Sources
- Wikipedia, KeRanger
- SecurityWeek, NotLockBit ransomware can target macOS devices (23 Oct 2024)
- 9to5Mac, Jamf Security 360 data (6 Apr 2026)
- FTC, how to recognize, remove and avoid malware
- Apple Support, back up your Mac with Time Machine
- Apple Support, restore files from Time Machine
- Apple Support, safely open apps on your Mac
- Unit 42, macOS stealers
- Malwarebytes, poisoned AI chats spread AMOS