It is almost true that Macs don't get malware or viruses. While not nearly as popular a target as Windowsmore
It is almost true that Macs don't get malware or viruses. While not nearly as popular a target as Windows and Android devices, Macs do attract the attention of hackers. In 2016, for example, Mac users saw the first functional ransomware targeting the Mac. And Bitdefender, this year, identified sophisticated malware designed for the Mac.
Apple works to keep you and your Mac safe, but if you're the cautious type, check into running a security app.
A good antivirus program can check software as you download it to prevent you from installing a malicious file. And antivirus software can scan your already-installed files to check for viruses. Almost all antivirus tools rely on a collection of frequently updated virus definitions to identify malicious threats. But because hackers are always creating new and mutated viruses, antivirus tools can pair virus definitions with code- and behavioral-pattern matching to watch for files that look suspicious but don't match virus definitions.
MacOS does include security features to protect you from malicious software. And you can set MacOS to block you from downloading software from anywhere but the Mac App Store or warn you if you are about to download software from an untrusted source. But for an extra bit of protection, look to antivirus software.
Besides being smart about where you download software from, you can take other steps to stay safe. First, keep up to date with the latest MacOS and third-party software updates. Do not open untrusted email attachments. Don't click untrusted links in emails or on websites -- and think hard about clicking ones you do trust. And finally, make sure you have good and current backups, so if something does go wrong, you can return your Mac back to a safe state without much effort.
A handful of Mac antivirus tools offer solid -- and free -- protection. However, if you are already running antivirus software on another device, look into a security suite from Norton, for example, which lets you install antivirus software on your Mac, Windows, Android, and iOS devices for one price.
A respected anti-malware tool, the free antivirus software from Sophos gets top marks from the independent testing center AV-Test.
AVG's antivirus software for Mac is free and rock solid. AVG runs in the background, but you can manually check suspicious files and folders.
If you need to protect multiple devices, check out Norton's security tools. For $49.99 a year, you can protect five mobile, Windows, and Mac devices. Secure ten for $59.99.