#malwarebytes is anti-malware software also a good replacement for antivirus in Mac computer. It protects Mac computer from all kind of bad infection which is coming from the Internet like (Viruses, Spyware, Malware, Adware, Ransomware, etc.)
Malware may infect your computer if you click on a suspicious email attachment, although it is not restricted to that. Malware also arises from unreliable sources via software facilities and when you visit infected websites or platforms.
https://gomalwarebytes.com/mac