Malware and Viruses on Mac
It's generally upto you to keep a watch for any suspicious activity on your Mac to detect presence of a malware or virus. If you are tech savvy and follow news around Apple, you should be able to hear about any newly discovered threat. Apple software engineering team is quite prompt and quickly releases patches fixing any newly uncovered serious iOS and macOS threats.

It is highly recommended to always keep your OS up to date.