Before you remove a virus from a Mac, you need to be sure it actually has one. Here are some Tips for you to understand your Mac has a virus
- Your Mac starts behaving erratically and doing things you don’t expect;
- Your Mac starts running very slowly as if something is hogging the processor;
- You start seeing adverts on your desktop;
- You find software or applications you didn’t install.
- An app asks for your administrator password
These symptoms may mean your Mac has a virus, although there could be other explanations. How to remove a virus from a Mac manually. Thankfully, there are lots of ways to do it. And Mac virus removal doesn’t have to cost money.
1. Delete browser extensions
One of the most common types of malware comes in the form of browser extensions. Even extensions that aren’t particularly malicious can be annoying, and if you didn’t deliberately install them, they’re malware. Here’s how to get rid of unwanted browser extensions.
- Launch Safari.
- Click Safari in the top menu, then choose Safari Extensions.
- Look down the list and click on any extensions that look suspicious. Read the description of the extension. If you don’t remember installing it, click Uninstall.
- Repeat until you’ve removed all the extensions you don’t want.
- Launch Chrome.
- Click on the 3-dot icon in the upper right corner.
- Select More Tools and choose Extensions from the menu that appears.
- Look over the extensions in the browser window and click Remove on any that you don’t recognize.
- Launch Firefox.
- Click the 3-line (hamburger) icon at the top right corner.
- Choose Add-ons.
- Click the Extensions tab and remove any you don’t recognize.
2. Uninstall apps
Malware comes in lots of different forms. And it even comes disguised as security software to help you get rid of viruses! Devious, huh?
If you’ve inadvertently downloaded an app that turns out to be a virus, you need to uninstall it immediately. There are a couple of ways to do this. Here’s the hard way.
- Go to your Applications folder and drag the app to the Trash.
- Go to
~/Libraryfolder and look in the Application Support folder for any files related to the app and drag those to the Trash.
- Look in the other folders in ~
/Library, especially Launch Agents and Launch Daemons and remove any files related to the app from there. But be careful, if you remove files used by legitimate apps you could cause lots of problems.
- Repeat Step 3 for your Mac’s main Library folder.
3. Escape the virus: Create a new user profile
Usually, viruses are attached to a particular user profile on your computer. In this way, they are able to seize control of your admin profile. But you can start if from scratch and create a new user on your Mac. Don’t worry, you will be able to transfer all your important data from one user to another.
Go to Apple menu > System Preferences, click Users & Groups.
- Click the lock icon , then type in your admin password.
- Use the plus sign to add a new user profile.
To move your important information from one user to another, you will need to access the Shared folder.
- Click on the Finder > Go to Folder…
- Paste in this:
Can you see the Shared folder? Here you can copy the needed files from your old user account. Hurray, you’ve started a clean, virus-free life!
Bonus tip: Clean up your login items
Login items are apps that launch automatically upon startup. Malware programs would often sneak into your login items without you knowing. How to prevent them from launching?
- Go to Apple Menu > System Preferences.
- Click Users & Groups.
- Click on the Login Items tab
From here you can manage them using the [+] and [—] buttons.
While the above steps work very well in lots of cases, sometimes the Mac virus removal means using a dedicated application to scan and remove malware from your Mac.
There are lots of these applications available, and many of them are either free or allow you to at the very least scan your Mac for free to find out whether you need to take action. Be careful, however. It’s important to choose a tool from a reputable vendor. If you just google ‘Mac antivirus tool’ some of the results may well be for tools that are themselves malicious and instead of removing viruses from your Mac will infect it. You could try our product – CleanMyMac X. We have a Free Trial version.
How to get rid of a virus on a Macbook Pro (or any other Mac) if all else fails
If you’ve run through all the steps above and are still having problems trying to remove a virus from a Mac, the next step is to restore from a Time Machine backup. The benefit of restoring from Time Machine is that you can do it quickly and easily by booting into the recovery partition and you can choose to backup to a state just before your Mac started behaving erratically.
The downside of this option is that any work you’ve done since the backup you restore from will be lost. You could manually copy files from your Mac to another drive or cloud storage service before you restore and then copy them back afterward. However, if one of those files is infected, you risk contaminating your Mac all over again. If there are documents you really need and that aren’t backed up elsewhere, use one of the antivirus tools above to run a scan on them before you copy them to another disk. That way you’ll know they’re safe.
Here’s how to restore from a Time Machine backup
- Make sure you’re connected to your Time Machine backup drive.
- Restart your Mac, holding down the Command and R keys until you see the Apple logo. When the macOS Utilities screen appears, choose Restore from a Time Machine Backup. Click Continue.
- Choose the last backup before your Mac started misbehaving or you suspect you were infected with a virus.
Your Mac will now return to the state it was in when you made that backup.
If you don’t have a Time Machine backup to restore from, the last resort is to reinstall macOS. This is a ground-zero approach. You’ll need to wipe your startup drive completely clean and start again. That means reinstalling all your applications and copying all your data back to your Mac afterward. If you have a recent backup of your data, from before your Mac became infected, you can use that to copy data from after you re-install. If not, you’ll need to back up important files now — but scan them with an antivirus tool first to make sure they’re not infected.
To perform a clean install of macOS, you’ll need a bootable installer disk.
Once you’ve made your bootable installer, plug it into your Mac, go to System Preferences, choose Startup Disk and select the disk you just plugged in. Restart your Mac, holding down Command-R and do the following:
- When the macOS Utilities screen appears, select Reinstall a new copy of macOS. Click Continue and then Continue again when the next window appears.
- Agree to the terms and conditions and select your Mac’s internal disk.
- Click Install. Wait for your Mac to restart.
- Your Mac will start up as if it’s a new Mac and you’ll need to go through the process of setting it up from scratch.
- Once you’ve set it up, copy back the files you need from the backup and that you know aren’t infected.
As you can see, there are many different ways to remove a virus from a Mac, depending on how badly infected it is and what kind of virus it is. The main thing to remember is if you suspect your Mac is infected, don’t worry. It can be fixed!
Violeta Torhovytska :Community Manager / CMMX Team