Running an antivirus software is not enough to get rid of these pesky viruses and malware.
The malware only needs a few seconds to attack the extensible firmware interface of the infected Mac during boot up, and the device will remain infected even if the hard drive is wiped clean and the macOS is reinstalled. In 2015, researchers created Thunderstrike 2, a firmware worm that is almost impossible to detect and get rid of.
In fact, some researchers have specially created a malware to prove that macOS is not omnipotent. These attacks prove that even macOS can also be vulnerable to phishing scams, trojan horses, and online fraud. Virus attacks targeting macOS have been reported over the years, proving that Apple products aren’t immune to malicious software infections. However, we now know that this is not true. Most Mac users used to believe that the macOS is safe from viruses and malware that commonly affect other operating systems.