We stand with Ukraine to help keep people safe. Join us

Tags Malware Threats

How to Get Rid of Virus on Mac

The high price of Macs isn’t just for their sleek, sophisticated design. Apple’s devices are famous for their robust security features. However, it’s still possible for malware to infect your Mac despite the built-in antivirus protection. Below, we’ll explain how to find and remove viruses from your Mac. But why stop there? Ensure your devices are equally secure with Clario Anti Spy's powerful anti-spyware software.

Table of contents

How to tell if Mac has a virus

Identifying a virus on your Mac can be tricky, but there are plenty of signs to look out for that can indicate a problem. Here are some warning signs that malware has infected your Mac:

  • Performance issues: If your Mac suddenly becomes slow, crashes frequently, or behaves strangely, it’s a sign that you have malware.
  • Unwanted pop-ups: Unexpected pop-ups, especially when your browser isn’t open, are a sign of a type of malware known as adware.
  • Unfamiliar apps: If you notice apps you didn’t install, it could suggest a virus installed them.
  • Browser issues: Strange changes in your browser, like new homepages, toolbars, or constant redirections, are signs of a virus.
  • High network activity: Unexplained data use from your Mac suggests that you have malware that’s communicating with its servers, potentially stealing your data.

If you notice these signs, you should use an antivirus to scan your device for malware, spyware, and viruses. Keep reading to find out how to remove all viruses from your PC.

How to remove malware from Mac

If malware has infected your Mac, you need to take prompt action to protect your data and restore your system to normal. Here’s how to get rid of virus on Mac:

1. Disconnect your device from the internet

To clean your Mac from viruses, you first need to disconnect your Mac from the internet to stop any communication between it and the malware server. You might need to stay offline as long as the device remains infected. This means you can control the damage done by the virus without risking it spreading even further.

 

Here’s how to disconnect your Mac from the internet:

  1. Hit the Wi-Fi icon in the upper right corner.
  2. Select Turn Wi-Fi Off.
A screenshot of the Mac Wi-Fi menu showing how to turn Wi-Fi off to remove malware from Mac.
Steps 1-2: Press the Wi-Fi icon and select Turn Wi-Fi Off.

2. Enable safe mode

Safe Mode is a built-in function that launches only the necessary software for the boot process. While in Safe Mode, the OS also blocks out any additional software trying to run. If the virus on your machine is set to load automatically on boot, it won’t be able to start. This means that cleaning for the Mac virus will be easier.

 

To enter safe mode on an Intel Mac:

  1. Start your Mac and immediately press and hold the Shift key.
  2. Release the key as soon as the login window pops up.
  3. Log in to your account.

If successful, you’ll see a red phrase saying Safe Boot in the top-right corner of your Mac screen.

 

To enter safe mode on an M1 Mac:

  1. Shut down your Mac.
  2. Hold the power button for 10 seconds.
  3. At the start-up menu, choose your startup disc and hold Shift.
  4. Press Continue in Safe Mode.
  5. Log in to your account.

Once you’ve booted into safe mode, you can begin to take action against the malware.

3. Examine the activity monitor for unusual activity

Malware can increase your Mac's processing power, so you can uncover it by checking the Activity Monitor. In the Activity Monitor, you’ll be able to see which apps are using the most CPU resources. Once you find the culprit, you can easily get the malware off your Mac.

 

To open the Activity Monitor:

  1. Press Cmd + Space.
  2. Start typing ‘Activity Monitor’ in the search field.
  3. Click on Activity Monitor.
  4. Once you have it in front of you, look for any suspicious applications in the Processes area. You may also look through the CPU tab to check for apps with heavier usage.
A screenshot of the search window showing how to select the Activity Monitor and remove malware from Mac.
Steps 1-3: Press Cmd + Space, type "activity monitor," select it from the list, and search for suspicious apps.
A screenshot of the Mac Activity Monitor showing how to delete suspicious apps to remove malware from Mac.
Step 4: Search for suspicious apps in the list.

4. Uninstall recently added or suspicious programs

If you find suspicious applications using too many resources or notice applications you don’t remember installing, delete them.

 

To delete a suspicious app:

  1. Open Go and select Applications.
  2. Drag the suspicious app to the Trash (or right-click it and select Move to Bin).
  3. Open Go and choose Go to Folder.
  4. Type ~/Library into the search field and press Enter.
  5. Look for files and folders related to the app you deleted. If you find any, drag these into the Trash as well.
  6. Empty your Trash folder after deleting all suspicious apps.
A screenshot of the Go drop-down menu showing how to access the Applications window to remove malware from Mac.
Step 1: Select Go > Applications.
A screenshot of the applications window showing how to move an app to the bin to remove malware from Mac.
Step 2: Select Move to Bin.
A screenshot of the Go drop-down menu showing how to select Go to Folder to remove malware from Mac.
Step 3: Select Go > Go to Folder.
A screenshot of the Go to Folder window showing how to type ~/Library and press Enter to remove malware from Mac.
Step 4: Type ~/Library and press Enter.
A screenshot of the Library window showing how to remove residual folders to remove malware from Mac.
Steps 5-6: Drag any related folders to the trash.

Sometimes, malware disguises itself as legitimate software, so it’s important to be cautious and thorough in your analysis.

5. Check for malware in Mac login items

Login items include apps that start every time you launch your OS. These apps are usually necessary to run the OS, but untrustworthy apps can house different types of viruses. By checking your login items, you can disable any that may be acting as cover for malware.

 

To check for malware in the Mac login items:

  1. Select the Apple menu and choose System Settings.
  2. Click General in the sidebar, then choose Login Items in the right-hand menu.
  3. Select the name of any login item you want to prevent from opening and choose Remove.
A screenshot of the Apple drop-down menu showing how to select settings to remove malware from Mac.
Step 1: Select the Apple menu and choose System Settings.
A screenshot of System Settings showing where to find Login Items and remove malware from Mac.
Step 2: Select General > Login Items.
A screenshot of the Login Items window showing how to delete a login and remove malware from Mac.
Step 3: Select the name of an item you want to remove.

6. Check your browser's home page and clear the cache

Open your web browser and check if your homepage has been altered or hijacked by malware. If so, reset it to your preferred home page. Next, you need to clear your browser cache to remove any injected scripts or malicious cookies that can compromise your online security.

 

Here’s how to clear the cache in Safari:

  1. Select the Safari menu and choose Settings.
  2. Press Advanced, then tick the box next to Show Features for Web Developers.
  3. Select the Develop and click on Empty Caches.
A screenshot of Safari's settings drop-down menu showing how to select Settings and remove malware from Mac.
Step 1: Select the Safari menu > Settings.
A screenshot of Safari's Advanced settings showing how to turn on features for developers to remove malware from Mac.
Step 2: Select Advanced and turn on Show Features for Web Developers.
A screenshot of Safari's Develop drop-down menu showing how to select Empty Caches and remove malware from Mac.
Step 3: Select Develop > Empty Caches.

Here’s how to clear the cache in Google Chrome:

  1. Open Google Chrome, then select the three dots in the top-right corner.
  2. Press Delete browsing data.
  3. In the pop-up window, select the Advanced tab and tick the boxes for Cookies and other site data and Cached images and files.
  4. Choose All time for the time range, then press Clear data.
A screenshot of Google Chrome's settings drop-down menu showing how to select Delete browsing data and remove malware from Mac.
Steps 1-2: In Google Chrome, select the three dots, and choose Delete browsing data.
A screenshot of Google Chrome's Delete browsing data window showing how to delete data and remove malware from Mac.
Steps 2-4: Select Advanced, then tick the boxes next to Cookies and other site data and Cached images and files, then press Clear data.

Here’s how to clear the cache in Firefox:

  1. Open Firefox and select the three lines button in the upper right corner.
  2. Choose Settings and select the Privacy & Security menu.
  3. Click Clear Data. Tick the boxes for Cookies and site data and Temporary cached files and pages.
  4. Make sure “When” is set to Everything and press Clear.
A screenshot of Firefox's settings drop-down menu showing how to access settings to remove malware from Mac.
Steps 1-2: Open Firefox, press the three lines, and choose Settings.
A screenshot of Firefox's Privacy & Security tab showing how to clear data and remove malware from Mac.
Steps 2-3: Select Privacy & Security, choose Clear data, then select Cookies and site data and Temporary cached files and pages.
A screenshot of Firefox's Clear browsing data and cookies window showing how to clear data and remove malware from Mac.
Step 4: Set "When" to Everything and press Clear.

7. Double-check your browser extensions

Many malware and adware programs enter your system through your internet browser and often install some sort of extension. Removing the extensions will help fix your browser and wipe the virus from your Mac.

 

To check your extensions on Safari:

  1. Open Safari and press the Safari menu in the top-left corner.
  2. Choose Settings and open the Extensions tab.
  3. Look through the list and uninstall the ones you don’t recognize.
A screenshot of Safari's drop-down menu showing how to select Settings to remove malware from Mac.
Step 1: Open Safari and press Settings.
A screenshot of Safari's Extensions window showing how to scan the list of extensions and remove malware from Mac.
Step 2-3: Select the Extensions tab then uninstall suspicious extensions.

To check your extensions on Google Chrome:

  1. Open Google Chrome and select the menu icon.
  2. Press Settings and choose Extensions.
  3. Scan your extensions for any suspicious entries. If you see any extensions you don’t need or don’t remember installing, delete them and restart your web browser.
A screenshot of Google Chrome's drop-down menu showing how to select Settings and remove malware from Mac.
Steps 1-2: Open Google Chrome, press the menu icon, then choose Settings.
A screenshot of Google Chrome's Settings menu showing how to select the Extensions option and remove malware from Mac.
Steps 2: Select Extensions.
A screenshot of Google Chrome's Extensions window showing how to scan for suspicious add-ons and remove malware from Mac.
Step 3: Remove suspicious extensions.

To check your extensions on Firefox:

  1. Press the menu icon in the top-right corner, then choose Add-ons and themes.
  2. Choose Extensions in the left-hand menu.
  3. Look for suspicious extensions. If you see any, press the three dots next to that extension and select Remove.
A screenshot of Firefox's settings drop-down menu showing how to access Add-ons and themes and remove malware from Mac.
Step 1: Select the menu icon and choose Add-ons and themes.
A screenshot of Firefox's Manage Your Extension window showing how to check for unknown apps and remove malware from Mac.
Steps 2-3: Select Extensions and remove any you don't recognize.

8. Reset your browser

If your browser is still acting strangely, your final resort is to reset the application entirely. This will return the browser to its factory settings, removing any extensions and clearing out potentially harmful software.

 

Here’s how to reset the Google Chrome browser:

  1. Open Chrome and select the menu icon.
  2. Choose Settings, then press Reset settings > Restore settings to their original defaults > Reset settings.
A screenshot of Google Chrome's Settings menu showing how to reset settings and remove malware from Mac.
Steps 1-2: Select the menu icon, choose Settings, and press Reset settings to their original defaults.
A screenshot of Google Chrome's Reset settings pop-up window showing how to press Reset settings and remove malware from Mac.
Step 2: Press Reset settings.

Here’s how to reset the Firefox browser:

  1. Open Firefox and click on the menu icon.
  2. Press Help > More troubleshooting information.
  3. In the top-right corner, press Refresh Firefox…
  4. Wait for the process to complete, then press Finish.
A screenshot of Firefox's settings drop-down menu showing how to access the Help section and remove malware from Mac.
Steps 1-2: Open Firefox, press the menu icon, and choose Help.
A screenshot of the Firefox help menu showing how to access More troubleshooting information and remove malware from Mac.
Step 2: Select More troubleshooting information.
A screenshot of Firefox's Troubleshooting Information page showing how to refresh Firefox and remove malware from Mac.
Step 3: Select Refresh Firefox...
A screenshot of Firefox's reset pop-up window showing how to select Refresh Firefox and remove malware from Mac.
Step 4: Press Refresh Firefox.

Note

Unfortunately, the only way to reset new versions of Safari to its original condition is by deleting the cache and website data as shown above. Hopefully, this will be enough to remove viruses from Mac computers.

9. Restore from a backup

If you regularly back up your Mac using Time Machine or another backup solution, you can restore your system to a state before malware infects your system. Before you restore from a backup, make sure it’s completely free of malware to avoid reintroducing the malicious software to your device.

 

To restore your Mac from a backup:

  1. Connect your Time Machine backup disk to your Mac.
  2. Open Go, then choose Utilities > Migration Assistant.
  3. Choose to transfer your data From a Mac, Time Machine Backup, or Startup Disk.
  4. Select Continue, then choose your backup.
  5. Press Continue again, then select the information you want to transfer.
  6. Click on Continue one more time to begin the process.
A screenshot of Mac's Utilities window showing how to select Migration Assistant and remove malware from Mac.
Steps 1-2: Connect your Time Machine backup disk, then open Go > Utilities > Migration Assistant.
A screenshot of Mac's Migration Assistant showing how to complete the process and remove malware from Mac.
Steps 3-4: Select Continue.

10. Run a virus scan

Mac has built-in antivirus programs that constantly scan your device for malicious software. However, even though Apple keeps its virus scanner up to date, it may miss malware that’s found its way onto your device. To be certain, you should use a reputable third-party antivirus to scan your device.

 

Clario Anti Spy is a powerful cybersecurity solution that can remove all traces of spyware from your iOS devices with a single click. If your Mac is infected, there’s a chance that your iPhone is too.

 

To use Clario Anti Spy’s Spyware Scan:

  1. Open Clario Anti Spy and create an account.
  2. Choose Run deep scan, then wait as Clario Anti Spy scans your device.
  3. Follow the instructions to remove all traces of spyware.
Screenshots showing the instructions from the Clario Anti Spy app on how to run a deep spyware scan and remove malware from Mac and iPhone.
Steps 1-3: Open Clario Anti Spy and select Run deep scan.

How to make sure your Mac doesn't get malware again

Knowing what to do if your computer is hacked or if you get malware is the second step to staying safe online. The first step is preventing your devices from ever getting malware in the first place. Here’s what to do to avoid malware and always be safe online:

  • Keep your software up-to-date. Regularly update your macOS software and applications. Software updates often include critical security patches that fix the vulnerabilities that malware exploits. Enable automatic updates where possible to make sure you never miss important fixes.
  • Be careful when downloading files. Never download suspicious files from the internet. Only download files from trusted and known sources, like the App Store.
  • Enable your firewall. Make sure to enable your Mac’s firewall and properly configure it. Open System Preferences > Security & Privacy > Firewall and enable it.
  • Practice safe browsing habits. Use safe browsing tactics to protect yourself from threats on the web. Never click suspicious links or pop-up ads, avoid unsolicited emails and messages, and only grant permissions to apps when they absolutely require them.
  • Use strong, unique passwords. Create strong passwords using a combination of alphanumeric and special characters. These passwords are difficult to crack and very hard for malware to break into.

Note

There are many types of viruses that can infect your Macbook. But what is the difference between malware vs virus? The definition of malware is any software designed to damage your computer, while a virus is one type of malware–along with spyware, adware, and ransomware.

Сonclusion

Removing malware from your Macintosh desktop can be stressful, but you can almost always secure your device and restore system performance. Staying vigilant and proactive is the key to staying safe online. To further safeguard your devices, consider Clario Anti Spy for your iPhone. Download Clario Anti Spy today for peace of mind on all of your mobile devices.

Keep reading

Most Macs work just fine as long as they’re kept safe.

Get started