I don't actually know myself, but one of the guys I ride with is a computer security expert, and what he says is that it's about half and half. Yes, less malware is written for Mac because of their smaller market share; but also the UNIX core really is much more secure.