macOS and Linux have additional security features at a system level, on Linux most software comes through controlled repositories or sandboxed flatpaks. There are also tons of multi million dollar companies that constantly try to find and fix kernel level vulnerabilities and a distro like Debian, which is very popular for servers, has had less major vulnerabilities than windows 7 throughout its entire lifecycle and Debian exists for other 30 years. So I’d say Linux is would have a few less (different) attacks
macOS and Linux have additional security features at a system level, on Linux most software comes through controlled repositories or sandboxed flatpaks. There are also tons of multi million dollar companies that constantly try to find and fix kernel level vulnerabilities and a distro like Debian, which is very popular for servers, has had less major vulnerabilities than windows 7 throughout its entire lifecycle and Debian exists for other 30 years. So I’d say Linux is would have a few less (different) attacks