The last time I saw a Mac virus was when
Chris Johnson's Disinfectant and Gatekeeper were around. in
1993
No software will prevent malware that tricks you into
downloading and installing it
When people talk about "malware" they tend to think viruses and as
Malwarebytes states Windows is still "more prone to “traditional” malware". By contrast, "the top 10 Mac threats were
adware and what are known as “potentially unwanted programs.”" In fact going back to the
Malwarebytes report referred to several things come out:
1) Most Mac malware is more nuisance than danger
2) Mac malware is growing mostly due to
one app
3)
You have to install Mac malware yourself!
From a thread about this
on Apple's developer forums:
"The macOS uses these to combat malware:
Gatekeeper mechanism, central to security services, which tries to ensure that any code loaded is ‘safe’. Code signatures are only part of this.
XProtect checks the security and integrity of files in broader ways too. Vulnerable document types, such as JPEG images, are also screened to ensure that they’re not malicious.
Apple’s
Malware Removal Tool an app which often complements XProtect’s signature-based screening, and can automatically remove all traces of many different species of malware.
System Integrity Protection which ensures that nothing can tamper with key system files, or even Apple’s bundled apps."
Now none of the will prevent you from getting social engineered into installing something you really shouldn't have. Windows tries but
still has problems and the part of it is still a target of cold callers - opening this part up and see all the warnings? They will use that to convince you to "fix" your windows machine.