There is a nasty bit of Mac malware making the rounds that exploits a flaw in the Java web browser plug-in to install itself on your machine if you visit a site that has been compromised:
Apple has released Java updates to patch the Java flaw, which you should definitely install, but that will not remove the malware if it is already on your computer. The above Macworld article details how you can check for the presence of this little beastie.
Optional: Go Java-less
Most people will have no need for the Java plug-in so you can also simply disable it to protect yourself from possible future security issues it might have:
- Choose Preferences from the Safari menu.
- Select the Security tab.
- Turn OFF the “Enable Java” checkbox.
- Close the Preferences window.
If you do use a site that requires the Java plug-in you’ll see a missing plug-in placeholder for theta content when you visit it.
NOTE: You’ll also notice a checkbox labeled “Enable Javascript”. You generally DO NOT want to turn that off. Other than an unfortunate naming decision it has nothing to do with Java and is so ubiquitous these days that turning it off will probably break a lot of the sites you visit.
And While You’re at it: Less Flash!
The other historically popular vector for Internet malware is the Adobe Flash plug-in, used mainly for web video and annoying animated ads. Removing Flash is possible but a bit more problematic as you will probably bump into embedded videos that require it. It is possible though:
Another less draconian option is to install the ClickToFlash Safari extension. With it installed Flash based content will not be loaded when a site is visited, instead you see a ClickToFlash placeholder. Clicking it loads that particular Flash item but no others on the page.
Install ClickToFlash by visiting Apple’s Safari Extensions archive at https://extensions.apple.com/, then scroll through the list of Most Popular plug-ins until you find ClickToFlash. Click the Install button and you’ll be all set.
Other potentially beneficial side-effects of using ClickToFlash are: faster web site load times and less annoying animated ads.

