If your Mac has recently been attacked by malware, it's probably because of Apple's growing popularity.
For Apple this might just be the price of success. The truth is, Apple doesn’t have any magic potion that protects its machines. Rather, Macs have enjoyed something techies called “security through obscurity,” meaning there were so few Macs out there that hackers didn’t bother to target them, preferring instead to go after Windows PCs, which represented 95 percent of the market.
The Walled Garden crumbles…
(Source: cheatsheet)