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

Safari randomly opening new windows

Greetings,


I have searched the forum on similar topics, and have tried all the advice I found. However, I have still not solved my problem. I have a MacBook Pro from 2012.


My web browser, Safari, keeps opening new browser windows randomly. These include "scam" webpages for MacKeeper, Media Downloader, Car Insurance, Flash Player and various "warnings" about virus infections. The windows pop up frequently and without warning, even when I am doing something as simple as reading a news website or searching Google. (They are not pop ups that are tied to a specific website.)


I couldn't find anything in the Extensions tab in Safari Preferences. I removed various folders from my Library, as directed by other articles, and ran a scan of my laptop using Malwarebytes. (Nothing found.) I ran a scan with Etre Check but it did not reveal any relevant information. The problem still persists.


Any thoughts or suggestions would be most welcome. Most of the articles I read on this issues were from 2013 and 2014.

MacBook Pro, OS X Mavericks (10.9.5)

Posted on May 13, 2016 10:29 AM

Reply
Question marked as Best reply

Posted on May 13, 2016 10:56 AM

1. Click  in the menu bar and choose “Force Quit”.

In the window that opens up, select “Safari” and click “Force Quit.


2. Relaunch Safari holding the shift key down.


3. Turn off wifi and turn it back on.


Turn off Wifi. Click Wifi icon in the menu bar and select “Turn Wifi off”.

Visit another website.

You won’t have internet connection.

Turn on Wifi. Click Wifi icon in the menu bar and select “Turn Wifi on”.

Select your Network.


4. Delete Cookies

Safari > Preferences > Privacy > Cookies and other website data:

Click the “Details” button.

Remove all cookies except ones from Apple, your internet service provider and banks.




Additional steps to take:



https://support.malwarebytes.org/customer/portal/articles/2045704-what-should-i- do-if-malwarebytes-anti-malware-for-mac-didn-t-solve-my-problem-?b_id=9511



https://support.malwarebytes.org/customer/portal/articles/2049286-?b_id=9511

18 replies
Question marked as Best reply

May 13, 2016 10:56 AM in response to Mystified_User

1. Click  in the menu bar and choose “Force Quit”.

In the window that opens up, select “Safari” and click “Force Quit.


2. Relaunch Safari holding the shift key down.


3. Turn off wifi and turn it back on.


Turn off Wifi. Click Wifi icon in the menu bar and select “Turn Wifi off”.

Visit another website.

You won’t have internet connection.

Turn on Wifi. Click Wifi icon in the menu bar and select “Turn Wifi on”.

Select your Network.


4. Delete Cookies

Safari > Preferences > Privacy > Cookies and other website data:

Click the “Details” button.

Remove all cookies except ones from Apple, your internet service provider and banks.




Additional steps to take:



https://support.malwarebytes.org/customer/portal/articles/2045704-what-should-i- do-if-malwarebytes-anti-malware-for-mac-didn-t-solve-my-problem-?b_id=9511



https://support.malwarebytes.org/customer/portal/articles/2049286-?b_id=9511

May 13, 2016 12:12 PM in response to Mystified_User

From your Safari menu bar click Safari > Preferences then select the Privacy tab then click: Remove All Website Data then click Remove Now then click Remove All Website Data and Remove Now one more time then quit and relaunch Safari to test.


If that doesn't help, if installed, disable anti virus software then see if the problem persists.


If nothing above helped, please copy and paste the results of the EtreCheck report in your Reply. No personal data is shared from the report.

May 14, 2016 7:30 AM in response to Carolyn Samit

Dominic23 and Carolyn Samit:


Thank you very much for your comprehensive answers. I tried all the steps you suggested, but unfortunately none of them have worked. When I checked the website data in Safari Preferences, I did see stored cookies for several of the pop-up websites, such as Advanced Mac, but clearing those did not solve the problem. (Note: I don't run anti-virus software, but I do use the built-in Firewall and run Malwarebytes when needed.)


I also took the step -- which should have been obvious before -- of upgrading my operating system from Mavericks to El Capitan. If anything, this has only made the problem worse! The pop-up windows are getting more frequent and more aggressive. I've had to "force quit" Safari three times in the process of navigating to this webpage and typing my reply. The worst part is that when the new window opens, it often starts by duplicating the IP address of the website I'm already on, so that I can't tell which is my window and which is the "scam" window.


My concern at this stage is that there is malware or adware embedded deeply in the computer. (Even updating my operating system didn't get rid of it.) Beside having the annoyance of randomly-opening windows, should I be concerned about security? That is, can whatever is causing this also steal passwords, debit/credit cards, banking details, etc?

I'm not at all tech savvy, so am a bit hesitant to post the EtreCheck report on public view here. (It doesn't have any personal identifying information, but I'm not certain that it can't be used to gain access or learn more about my laptop, which at this stage I obviously want to prevent.)

Thank you again for your time. If you have any other thoughts, I'd appreciate it.

May 15, 2016 7:34 AM in response to Mystified_User

While it may not catch all malware, you can try running the below program to check for malware/adware. Based on what you have described, it is doubtful that your passwords and other information are being accesses. Etrecheck's report contains no information that can be used to access your computer.


Download this program which was written by Thomas Reed, a long time poster. The program will do the work for you which makes it easy.


Malwarebytes Anti-Malware for Mac 10.8 and later


What should I do if Malwarebytes Anti-Malware for Mac didn't solve my problem?

May 15, 2016 9:35 AM in response to Eric Root

I was having the same issue as to OP. Thanks for the info on Malwarebytes. I installed it and it took care of the problem. Things are back to normal now.


The only hitch was that, for whatever reason, Malwarebytes determined that the MacKeeper application and supporting files was malware. I had to rescue them from the trash and move them back into the applications folder.

May 16, 2016 5:44 AM in response to GrumpyOldPoop

GrumpyOldPoop wrote:


The only hitch was that, for whatever reason, Malwarebytes determined that the MacKeeper application and supporting files was malware. I had to rescue them from the trash and move them back into the applications folder.


MacKeeper is a scam app that is often installed via fake virus alerts, which inform you that your Mac is infected with a "virus" and that prompt you to download MacKeeper to get rid of it. For example:

User uploaded file

It's also commonly found in fake Flash Player or Safari installers, which install malware and PUPs (potentially unwanted programs) like MacKeeper.


Further, it was recently the subject of a class-action lawsuit alleging fraud, which was settled in favor of the plaintiffs:


https://yenchasoftwaresettlement.com/


Unfortunately, it's too late for you to get a refund through that settlement.

May 17, 2016 8:56 AM in response to GrumpyOldPoop

GrumpyOldPoop wrote:


I was having the same issue as to OP. Thanks for the info on Malwarebytes. I installed it and it took care of the problem. Things are back to normal now.


The only hitch was that, for whatever reason, Malwarebytes determined that the MacKeeper application and supporting files was malware. I had to rescue them from the trash and move them back into the applications folder.


That was a bad idea. MacKeeper is fraudulent scamware.

May 17, 2016 9:28 AM in response to Mystified_User

Sometimes when a user opens safari it is redirected to weird sites . This happens if DNS caches are poisoned . To find the address to a site , your system asks another system ( a so called domain name server or DNS ) which stores this information .if this DNS gives your computer the wrong address to some sites it is known as DNS poisoning .

The code for DNS cache poisoning is often found in URLS sent via spam mails . these emails attempt to frighten users into clicking on the supplied URL which in turn infects the system .banners ads & images both in emails & untrustworthy websites can also direct users to this code .

Once poisoned , a user's system will take to the fake websites that are spoofed to look like the real thing exposing them to risks such as spyware , key loggers or worms .

To prevent DNS poisoning user should never click on links they don't recognize & regularly scan their system for malware since poisoning could spoof web - based results .

But according to the issue posted , the user is redirected to unwanted sites & different unwanted malicious pages are displayed .


So some steps are as under please follow them .

Click on finder >go > computer > macintosh HD > library > remove the entire contents off folders caches & cookies .


Click on finder > go > computer > keep on holding option key on keyboard > library > remove entire contents of folders caches , cookies , saved application state .

1. close all applications using key board short cut : command + tab + Q .

2. type a command cat /etc/hosts in terminal ( there is space after cat & all words are small ) click on enter . restart the system from apple logo .


Once again open safari & check if new browser windows are opening , unwanted pop ups are there .

To avoid this apple has formed an article the user can follow it : https ://support.apple.com/en-us/ht202516

Also please do a factory settings once again home router and in airport express . note firewall , password should be enabled and settings should be done as automatic .

Hope so ,the above methods can help the user .

May 17, 2016 12:06 PM in response to appreciate

appreciate wrote:


Sometimes when a user opens safari it is redirected to weird sites . This happens if DNS caches are poisoned . To find the address to a site , your system asks another system ( a so called domain name server or DNS ) which stores this information .if this DNS gives your computer the wrong address to some sites it is known as DNS poisoning .

The code for DNS cache poisoning is often found in URLS sent via spam mails . these emails attempt to frighten users into clicking on the supplied URL which in turn infects the system .banners ads & images both in emails & untrustworthy websites can also direct users to this code .

Once poisoned , a user's system will take to the fake websites that are spoofed to look like the real thing exposing them to risks such as spyware , key loggers or worms .

To prevent DNS poisoning user should never click on links they don't recognize & regularly scan their system for malware since poisoning could spoof web - based results .

But according to the issue posted , the user is redirected to unwanted sites & different unwanted malicious pages are displayed .


So some steps are as under please follow them .

Click on finder >go > computer > macintosh HD > library > remove the entire contents off folders caches & cookies .


Click on finder > go > computer > keep on holding option key on keyboard > library > remove entire contents of folders caches , cookies , saved application state .

1. close all applications using key board short cut : command + tab + Q .

2. type a command cat /etc/hosts in terminal ( there is space after cat & all words are small ) click on enter . restart the system from apple logo .


Once again open safari & check if new browser windows are opening , unwanted pop ups are there .

To avoid this apple has formed an article the user can follow it : https ://support.apple.com/en-us/ht202516

Also please do a factory settings once again home router and in airport express . note firewall , password should be enabled and settings should be done as automatic .

Hope so ,the above methods can help the user .


Please stop.

May 17, 2016 12:48 PM in response to thomas_r.

Interesting. I've been using MacKeeper as an app for quite a few years now and have never had any issues with it. I rescued it from the trash and have been running it again with no problems.


I do think it was a fake Flash Player installation update alert that is what started the whole thing.


At any rate, as I said, after installing Malwarebytes everything seems to be back to normal. It definitely did the trick. Thanks!

May 17, 2016 1:38 PM in response to GrumpyOldPoop

post.user_wrote.label:


Interesting. I've been using MacKeeper as an app for quite a few years now and have never had any issues with it.


My grandfather was a raging alcoholic for years before cirrhosis finally killed him. That doesn't mean it was okay that he drank all those years before he finally started getting sick. My point is, just because you're not having issues doesn't mean it's smart to keep it. MacKeeper is fraudulent garbage, and has been caught up in a class-action lawsuit for fraudulent business practices. That should be reason enough not to let it anywhere near your computer. Do a search of these forums for programs like MacKeeper — you're going to see the exact things said. They're all nonsense. Macs do not need any so-called "maintenance" app that claims it will clean, boost, organize, optimize, or refresh your hard drive.

May 18, 2016 4:51 AM in response to appreciate

appreciate wrote:


The code for DNS cache poisoning is often found in URLS sent via spam mails .


DNS cache poisoning has absolutely nothing to do with any URLs sent in e-mails, nor with anything else that the user might do on his or her computer. DNS cache poisoning is a problem on the DNS server itself, and it affects everyone using that server. As such, all of your advice about how to handle a DNS cache poisoning problem is completely wrong. The only way to solve an issue with a poisoned DNS server is to either wait for the owner of the server (typically your internet service provider) to fix the problem or use a different DNS server.


Further, there's no reason to believe that this problem is due to DNS cache poisoning. That is a very unlikely explanation for the problem, and there are many other explanations that are far more likely.

Safari randomly opening new windows

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