Wait, what? Mac computers do not get viruses, buddy.
Even we know that is how the majority thinks, this is an example of why the majority is not always right. The commonly held notion is not entirely wrong, though.
Malware detection program system makes malware and viruses find it hard to penetrate through a Mac Firewall, aka, XProtect. It consists of a two-step method to ascertain whether an application has malware/viruses or not. For any app downloaded from the Internet, XProtect uses Code Signing Certificates to verify that the app comes from a legit source. The system installs regular security updates that include databases of previous and newly-identified malware targeting the macOS.
However, as technology advances, so do viruses. No software is able to catch everything. If you download and run a malicious software containing virus today, before Apple has the chance to cater to it and release an update, your system is infected. The virus will complete its objective. Therefore, it’s always wise to be cautious when you download software from unknown sources.