Safari Hacked Mac

Whether it is from clicking on spam or otherwise being caught in a malicious trap, every now and then such oversights when browsing the Web can have you inadvertently load phishing or spam pages that attempt to pull ransomware attacks on you. When this happens, you will see a warning window claims your browser has been locked and you will have to pay a fee or give them information to release it.

Apr 06, 2020  According to reports, recently patched bugs on Safari allowed hackers to take over users’ webcams and microphones on Apple iPhones, iPads, Macbooks,. Safari has innovative features that let you enjoy more of the web. In even more ways. Built-in privacy features help protect your information and keep your Mac secure. An updated start page helps you easily and quickly save, find, and share your favorite sites. Step 1: Force Quit Safari. In iOS 11 on iPhone 8/Plus and earlier, as well as iPad, double tap the Home Button to bring up the App Switcher. Swipe up on Safari to Force Quit.

This issue is a common scam done by way of a Javascript loophole. In most cases, javascript alerts are issued once when a developer needs to inform you of an error or other detail, and when you click “OK” or “Cancel” the alerts go away. However, by simply implementing the alert in a loop, a a developer can make it so the message displays repeatedly, locking out all other functions of your browser and making it appear as if they really have locked your browser.

Safari Hacked Mac

Safari Hacked Mac

These phishing attempts usually are presented on top of a fake FBI or other government Web site, to help legitimize the scam.

Furthermore, because Apple uses Resume features in OS X that preserve an application’s opened documents and window locations, if you force-quit Safari and then reload it, the page may load again and resume this frustrating behavior.

Safari does have some hidden developer options that can stop the execution of JavaScript on a page, but unfortunately they require you dismiss all alerts before you can use them, and when alerts are in a loop, they will reappear too fast.

This demo page shows such an alert in a loop that will repeat indefinitely. When this happens, note the page’s address, as this will be useful for clearing the alert.

Safari Hacked On Mac

This leaves you with two approaches for managing these situations:

Force-quit the Safari Web process that is hosting the page

Unlike other browsers in OS X, Safari hosts pages in separate running processes on your Mac. This makes them effectively be separate applications that will appear as such in OS X’s Activity Monitor utility. To identify the problematic Web page, make a note of its title and URL address, and then do the following in Activity Monitor:

  1. Choose “All Processes” from the View menu.
  2. Search for “Safari Web Content” in Activity Monitor’s search field.
  3. Click on the Process Name column title to sort listings by this field so they won’t jump around in your view.

With this done, if you cannot see the URL of your Web page listed, then hover your mouse over each Safari Web Content process to see a list of the URLs represented by it. Once you have located the URL for the page that is giving you problems, select that Web Content process and use the “X” button in the toolbar to force it to quit. You should now be able to dismiss the JavaScript alert and close the page that is causing it.

Safari Hacked On Macbook

In Activity Monitor you can see the Web page’s URL as the name of the corresponding Web Content process. If not, you should be able to hover your mouse over each process to see a tooltip list of the URLs that process represents.

Safari Hijacked Mac

Remove Safari’s saved state

Safari Hacked On Mac

A second approach for this requires you force quit Safari and then clear out its saved windows so they will not re-load when you next launch the program. This approach is a little more intrusive on your workflow, but is a good way to prevent any unwanted pages from being loaded when you next open Safari:

  1. Press Option-Command-Escape and use the force-quit dialogue to close Safari.
  2. In the Finder, hold the Option key and choose Library from the Go menu.
  3. Go to the Saved Application State folder in the Library.
  4. Locate and remove the folder called “com.apple.Safari.savedState.”

Now when you launch Safari, none of your previous windows will appear, and you can manually re-open any pages you had open previously.