Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Disable Java in Safari

I have never installed Java in Lion, I just don't need it, but I noticed in Safari the tick box for 'enable Java' is still ticked, would turning this off disable prompts to install the JRE, or does it not matter? I find it odd that its listed as enabled in Safari even though Lion does not come with Java installed. Any ideas would be appreciated as reducing any attack vector is always a good move, especially at this time.

iMac, Mac OS X (10.7.3), 21.5 Mid 2011 i7 2.8Ghz, 8Gb ram.

Posted on Apr 6, 2012 4:44 PM

Reply
23 replies

Apr 6, 2012 6:55 PM in response to killhippie

The safari preferences are independent of whether java is installed or not. It doesn't check for the presence of java. If checked off in safari then safari will know not to try to use java (although it might complain that it is off if it needs it, or maybe not, I don't know). If checked on then safari will try to use java. If java isn't installed (or disabled by Java Preferences) then safari is going to be "unhappy" and complain or cause some "please install or enable" java message.

Apr 6, 2012 7:08 PM in response to X423424X

Basically then since I dont have Java installed If I come across a site that wants to use it unchecking that option will stop the prompt then? I don't need or want Java on my Mac and just wanted to stop possible prompts in case that ever becomes a vector for attack or someone using my Mac like my wife won't try to install it because Safari asks for it.

Apr 6, 2012 8:28 PM in response to killhippie

A trojan horse would mean the applet would have to gain access only if a person did a real stupid thing. Always make sure your Toolbar is shown with the view menu, so you can know first hand if the site you visit is the site you intend to visit.


Any attempted trojan horse would show the http:// address as something totally different from what you would expect. For instance you would expect to see https://www.amazon.com/ for every secure website in Amazon. And you'd certainly expect to see a lock in the upper right in any website for any site you'd put your credit card number in. If you don't, then you know what you are visiting isn't secure. The key when visiting the Net is to learn to distinguish a secure site from a non-secure site. If you think you may be visiting a non-secure site trying to hack into your computer, go to Safari menu -> Preferences -> Privacy and remove cookies for those sites you don't trust. That way, if you visit them again, they won't know you visited them in the past. The Details button under Remove all website data let you control which cookies you keep.

Apr 6, 2012 8:36 PM in response to a brody

a brody wrote:


The attacks are still just trojan horses. Just don't give your password to a website you don't trust.

The attacks are still just trojan horses, if you have java disabled. The variants in this most recent outbreak do not require any user interaction if Java is enabled and you happen to visit a site with a malicious Applet. No password required for infection. It will ask for a password for a fake certificate or some other kind of fake notice if Java is disabled. Then it relies on traditional social engineering.

Apr 6, 2012 9:15 PM in response to WZZZ

Trojan-Downloader:OSX/Flashback.I is dropped by malicious Java applets that exploit the known CVE-2011-3544 vulnerability.

On execution, the malware will prompt the unsuspecting user for the administrator password. Whether or not the user inputs the administrator password, the malware will attempt to infect the system, though entering the password will affect how the infection is done.

If infection is successful, the malware will modify the contents of certain webpages displayed by web browsers; the specific webpages targeted and changes made are determined based on configuration information retrieved by the malware from a remote server.

http://www.f-secure.com/v-descs/trojan-downloader_osx_flashback_i.shtml


Note: this was from before the most recent Java patch for CVE-2011-3544

Apr 6, 2012 9:43 PM in response to WZZZ

There is a very simple test described by the link you gave that will tell you if you are infected. In fact you can find out right away if you are infected by type 1 version of the Infection by doing the following:

Open Applications -> Utilities -> Terminal


cd /Applications/Safari.app/Contents/


more Info.plist


/s LSE


(every command line is followed by a Return key)

As long as it can't find a string, you have no infection of Type 1.


When done with the search, just hit the letter q to exit the search window.


As long as you don't use Microsoft Office or Skype, you don't have a Type 2 infection, and don't need to test for it.

If you do have one of these applications, you may have to check for

ls /Users/Shared/.libgmalloc.dylib

(every command line is followed by a Return key)


Type the word exit followed by the Return key

to Quit from the Terminal window. Quit the Terminal application from the Terminal menu.


OpenOffice & Neo Office are excellent alternatives to Microsoft Office.

Apr 6, 2012 10:37 PM in response to khodson98

It was a new iMac with Lion on it, I Only install software from the specific sites that deal with the software I want, so Flash is always installed from the Adobe site, and Firefox is installed from the Mozilla site. Thanks for your help. I think I have my answer. Oh and thanks to everyone else as well, but I am a safe surfer believe me, and do not have multiple plugins as I just don't trust them, flash is bad enough. Also I am very aware of secure sites etc, I also use a DNS service that helps to block some malware anyway and I dont use MS Office or Skype and I use adblock plus with the privacy subscription so I am not worrries about the cookie aspect as I also dont acccept third poarty cookies as the sites I use don't need them, also I block tracking cookies web bugs etc as well, you just can never be to careful out there. 😉 My wife likes Safari hence I asked about that option, personally I prefer Firefox.

Disable Java in Safari

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.