Snow Leopard will be adding new technology to help prevent against attacks such as sandboxing and anti-phishing features in Safari. This, however, is not a 100% solution to protect against malware and Apple acknowledges that spyware and viruses are a threat.
http://www.apple.com/macosx/what-is-macosx/security.html