According to Apple's software chief Craig Federighi, the company's computers are less secure than iOS devices due to the fact that app stores on the Mac are regularly exploited. This sometimes leads to malware infections, but Federinghi also said that "a Mac can be operated safely" despite this problem.
https://www.notebookcheck.net/It-s-official-The-Mac-has-a-security-problem.540293.0.html