For years Apple's “Why You'll Love a Mac” page made a promise that sounds almost unbelievable today: “Macs don't get PC viruses.” Next to it, it said you could “protect your data without doing anything.” In June 2012, with no announcement, the page was rewritten. “Doesn't get PC viruses” became “is built to be secure,” and “protecting your data without doing anything” became “built-in security.” It was a small change on a marketing page, but it ended one of the most enduring beliefs in personal computing.
What happened in 2012
In spring 2012 many websites still relied on Adobe Flash and Java. Researchers noticed Macs around the world asking the same server for instructions: Flashback malware had infected them. It first posed as a Flash update, which people constantly installed, and a later version exploited a Java vulnerability and infected Macs just by visiting a hacked website. Oracle had patched the flaw in February, but Apple did not send the fix to Mac users until two months later.
About 600,000 to 700,000 Macs were infected, more than 1% of all of them. Apple released a removal tool, but you cannot call your computer virus-free when one in a hundred has just been infected.
Viruses on Apple computers from the start
Flashback was only the first widespread case. One of the first computer viruses was written in 1982 for the Apple II: a 15-year-old in Pennsylvania wrote Elk Cloner, hidden in the boot sector of floppy disks. An infected disk copied the program to memory and every clean disk inserted afterward was infected too. Every 50th start it displayed a short poem instead of the game, so it was a joke. Viruses followed the Macintosh in 1984. One of the strangest in history, MacMag (the Peace virus), spread in a HyperCard stack called “New Apple Products.” On March 2, 1988, infected Macs displayed a message of universal peace and deleted the virus. It was a joke, but it crashed some Macs and slipped into legitimate software: thousands of infected disks shipped before Aldus recalled them.
Three reasons for the good reputation
Economics. Malware is a business, and the goal is to reach as many computers as possible with the least effort. In the early 2000s about 97% of computers in the US ran Windows, so Macs were not worth the effort.
Architecture. In 2001 Apple replaced the classic Mac OS with Mac OS X, built on Unix. Unix was created at Bell Labs in 1969 for machines many people logged into, so it kept users' files separate and ordinary accounts away from the core of the system. A program that wanted to make significant changes had to ask for your password first. In Windows XP, most home users stayed logged in as administrators.
Culture. Mac users installed less random software, and the Mac software environment was smaller and more cohesive. John Gruber's 2004 essay “Broken Windows” argued the gap was also about what users were willing to tolerate.
In May 2006 Apple built the “Get a Mac” campaign on this. One of the first ads, “Virus,” cited 114,000 known PC viruses. At the time Apple was right, since Mac OS X had not faced a widespread outbreak, but the feeling of safety was false: many users postponed updates and clicked on pop-up ads, which helped Flashback spread.
How Apple quietly prepared
In 2009 Snow Leopard included a basic anti-malware system, a list of known malware that downloaded files were checked against. Developers called it XProtect. In 2011 it faced its first test, a fake antivirus called Mac Defender that scared users into paying by credit card. Apple shipped an update to remove it, the authors released a new version, and a cat-and-mouse game began.
In February 2012 Apple announced Gatekeeper for OS X Mountain Lion. By default it allowed only apps from the Mac App Store or from registered developers with a digital signature confirming who made the app and that nobody had altered it. More layers followed: in 2015 protection of the kernel even from administrator accounts, then notarization (automatic scanning of apps before release), and with Apple silicon a sealed, read-only system volume. In 2024 macOS Sequoia removed the Control-click shortcut that malware authors told people to use. Now you approve unsigned software in System Settings under Privacy & Security.
Where the Mac stands today
Because macOS is so hard to compromise directly, modern Mac malware targets the one thing Apple cannot patch: the person using it. In April 2023 researchers found Atomic macOS Stealer (AMOS) sold openly on Telegram, rented for about $1,000 a month with a panel to manage victims. It copies passwords, saved cards, crypto wallets, the keychain and browser cookies. It arrives the way Flashback did: pretending to be something you want, such as a pirated copy of an expensive app, a fake download page in search ads or a fake browser update. When Sequoia removed the shortcut, attackers asked people to drag a file into Terminal, which bypasses Gatekeeper's checks.
The pattern is the same for decades: Elk Cloner rode on game disks, Mac Defender posed as security software, Flashback as a Flash update, Atomic as the app you were looking for. The Mac is also more popular now, with about 24% of the US market, and used by developers, executives and crypto holders, exactly the people attackers want.




