Updated: March 18, 2025Published: October 02, 2019
Loved the article, share!
Trojan horses are a common way for malware to infect Macs and other computers. Depending on what kind of payload they come with, Trojans can slow down your computer, copy and compromise your data (e.g. make screenshots, notes of your copy and paste, history etc.), send out spam emails, install ransomware, and more. Think you might have a Trojan horse virus on your Mac? Find and remove it fast with MacKeeper’s Antivirus.
In this article you will find the following:
What is a Trojan virus?
A Trojan or Trojan horse is a type of malware that hides its true intent in some way. As you can probably guess, they get their name from Greek mythology. But instead of an army of Greek soldiers hiding inside a giant wooden horse to gain entry to the city of Troy, these Trojans contain malware. This will be hidden in something that looks innocuous, like an app or an email attachment. Often, it’ll only activate when you try to open the infected file.
In the past, Macs simply didn’t get viruses, but those days are well behind us. As Apple computers grow more popular, they become an increasingly popular target for hackers—which means Macs get Trojan viruses just like other systems. In February 2022, Microsoft’s security team discovered malware that was being hidden in seemingly legitimate apps like video tools, as well as in pop-up ads. This Mac Trojan has the power to get around macOS’s security features and can even delete evidence of its own existence.
A note from our experts:
Naturally, the sooner you detect and remove the Trojan virus from your Mac, the better. The less time you’re infected, the less damage this malware can do.
Here’s how to detect and remove the malicious hazard from your Mac:
If you use it for the first time, you’ll see the Launch Antivirus button. Click on it for our anti-malware utility to get ready to work.
After it’s relaunched, click Start Scan.
If MacKeeper finds anything, select it from the list and click Delete.
Click Delete again to confirm.
Step 1. MacKeeper > Select AntivirusStep 2. Click on Launch AntivirusStep 3. Click Start ScanStep 4. Review the scan results > choose the hazard > Delete
How do you know if your Mac is infected with a Trojan virus?
By definition, a Trojan tries to remain hidden—at the very least, until it’s time to drop its payload. When that happens, you may notice some of the classic signs of malware infection.
Files show the strange changes in the date of modified (the changes you didn’t make on your side)
Unfamiliar folders or files in different locations
Your antivirus is disabled
More pop-ups
Your web browser gets redirected
How to detect a Trojan virus on Mac
You can detect Trojan virus on Mac if you have some performance issues and other suspicious activity can mean you’re potentially carrying malware, they’re just one part of the puzzle. If you know what you’re looking for, you can manually search for malware and then try to delete it. But to truly tell if there’s a Trojan on your Mac, you need to check with a malware scanner, such as MacKeeper’s Antivirus.
Our tool will search your entire Mac or selected locations, comparing files against a checklist of known viruses, spyware, Trojans, and other malware. To recollect the steps, see a Note from our experts block above.
How to get rid of a Trojan virus on Mac
If you think you suspect or detect a Trojan virus on your Mac, finding a way to remove it is your next task. Here are a few proven ways to clean this malware from your system:
Delete the infected file.
Remove malicious apps.
Reset browser settings.
Remote malicious extensions.
Use antivirus software.
Load a Time Machine backup.
Factory reset your Mac.
Recover your Mac with Terminal backup.
1. Delete the infected file
When a Trojan virus infects a Mac, it can leave malicious files in all kinds of places. If you can find these unwanted files, you can manually delete them, which may be enough to prevent the malware from doing any more damage—if you’re lucky.
There are a few common places to check for Trojan viruses:
In Finder, select Go > Go to Folder. Type in ~/Library, and press Enter.
Among folders to check, start with Application Support. If you spot any malware, drag it to trash, and empty your trash.
Next, check your Login Items. You’ll find these in the Launch Agents. Delete anything suspicious.
Now, use Go to Folder to navigate to the system Library folder at /Library/. Search the Application Support, Launch Agents, and Launch Daemons folders. Again, delete anything related to the Trojan.
Step 1. Navigate to your user Libary folderStep 2. Check Application SupportStep 3. Check LaunchAgentsStep 4. Look in the system Library folders too
Our pro advice to unlock even more hidden files:
From our experience, there are a few tricks to make hidden files visible. The first one is to use a Command+Shift+Period shortcut. Another way is to go to Terminal and write the following command here:
Then, continue with one more command to restart Finder
killall Finder
Also, you can replace TRUE with FALSE to reach the normal viewing mode.
2. Remove malicious apps
If you’ve recently installed an app from an untrusted location, it could be the source of your Trojan. Deleting it may be enough to prevent a Trojan horse virus from causing any more issues, although it’s a long shot. Simply dragging the app to your Bin may work, but it’s much better to use a tool like MacKeeper’s Smart Uninstaller, which will also remove all the leftovers and prevent this undesired element from appearing on your Mac again after a while.
To remove apps and their leftovers with MacKeeper’s Smart Uninstaller:
In MacKeeper, select Smart Uninstaller, and click Start Scan.
Click Applications. Select what you want to uninstall, and click Remove Selected.
Click Remove.
Step 1. Start a scan with MacKeeper's Smart UninstallerStep 2. Select an app to removeStep 3. Confirm removal
3. Reset browser settings
Web browsers are one of the main ways Trojans find their way onto Macs. By resetting your browser, you may be able to prevent pop-ups, unwanted redirects, and other dangerous browser behavior. Here, we’ll show you how to reset Chrome and Safari, by far the two most popular browsers for macOS.
Follow these steps to clean up Safari and reset its settings:
Select Safari > Settings from the menu bar.
Open the Privacy tab, and click the Manage Website Data button.
Click Remove All, then Remove Now.
Now go to the Advanced tab of Settings and activate Show features for web developers.
In Reset settings, click Restore settings to their original defaults.
Click Reset Settings.
Step 1. Open Chrome settingsStep 2. Enter the Reset Settings areaStep 3. Confirm Chrome reset
4. Remove malicious extensions
When removing Trojans from a Mac, you may need to remove potentially dangerous browser extensions too. These may spy on your online activity, download more malware, or cause many other issues.
For Safari, you have to manually delete extensions from the Applications folder:
In Safari’s settings, go to the Extensions tab, select an extension, and click Uninstall.
Click Show in Finder.
Send the extension to your trash, then empty your trash.
Step 1. Click Uninstall in ExtensionsStep 2. View the extension in FinderStep 3. Delete the extension
For other browsers, you can automatically remove extensions using MacKeeper’s Smart Uninstaller:
Open Smart Uninstaller in MacKeeper, and click Start Scan. When it’s done, click BrowserExtensions.
Expand the browser lists to see what’s installed. Select any extensions to remove and click Remove Selected.
Click Accept and Uninstall.
Step 1. Click Browser Extensions in Smart UninstallerStep 2. Select extensions to removeStep 3. Confirm removal of extensions
5. Use antivirus software
Whenever you suspect there might be malware on your Mac, you should run a virus scan. Good antivirus software scans file bits and bytes, structure, file type recognition, signatures, privileges, and attachments, making it a great way to get rid of a Trojan virus.
Here’s how you can run a virus scan with MacKeeper’s Antivirus:
Start MacKeeper, and select Antivirus. Click Start Scan.
Wait for the scan to finish.
If any malware is found, select it, and click Delete, then Delete again.
Step 1. Open the Antivirus toolStep 2. Wait for the scan to finishStep 3. Confirm malware removal
6. Load a Time Machine backup
Trying to work out if your Mac has a Trojan and then trying to remove it manually is likely to be tricky. It might be simpler to just load a Time Machine backup, one that was made before you installed the infected file.
To restore your Mac from a Time Machine backup:
Click the Time Machine icon in your menu bar. Select Browse Time Machine Backups.
You’ll see a stack of Finder windows, each of which is a different backup.
Select what you want to restore, and click the Restore button.
Step 1. Access Time Machine from the menu barStep 2. View the backupsStep 3. Click Restore
7. Factory reset your Mac
That will return your Mac to all its original settings, wiping everything off it. However, your data won’t be deleted if you reinstall macOS and restore it properly through Time Machine from the Recovery mode.
Here’s how to enter Recovery mode on an M1 Mac:
Turn off your Mac. Now, press and hold the power button until you see the Loading startup options.
Click Options > Continue. Enter your admin password if you’re asked for it.
In the Recovery mode, select Reinstall macOS, and click Continue. It’ll ask you to select your storage, agree with the license, and confirm the action—do it all.
Here’s how to enter Recovery Mode on Intel Mac:
Turn your Mac off.
Now, turn your Mac on, and press and hold the command + R buttons as quickly as possible until you see the Apple logo.
Select your account and enter your admin password if you’re asked for it.
In the Recovery mode, select Reinstall macOS, click Continue, and then follow the instructions on the screen.
8. Recover your Mac with Terminal backup
if you have some other data or a specific tuned system on a Mac, and you don't want to start all over, then give a try to another macOS restore approach that promises to restore your system state alongside your data. It presupposes using Terminal and the Recovery mode. As a result, macOS will be restored exactly at that stage that is inside your backup, with your files and settings. In contrast, with Migration Assistant, only certain categories and data partitions are migrated.
Also, remember that a backup has been completed even if macOS had some unwanted changes or dodgy apps or was infected at the time of the backup. This means that those files will also be restored, and the virus, if it wasn’t removed, may remain on your device, too.
To recover your Mac, do the following:
In the Recovery mode, select Restore from Time Machine. It must be the first option on a list.
Confirm that you would like to restore your system with Continue.
A list of available backups will appear. Select the most appropriate one for you.
In the next window, choose your Mac storage disk and wait till the end of the restore process.
After restoring, your Mac will restart automatically into the restored system if there were no interruptions.
Step 1. Recovery mode > Restore from Time Machine > ContinueStep 2. Select the preferred restore source option
Important:
When you see the following message, it means that macOS versions on a Time Machine backup aren’t compatible with the current Mac.
As such it won't be possible to restore the macOS state from a backup. Either use a Migration Assistant, or if you want to restore your data on a new unaffected macOS, proceed with a clean macOS isntall.
When it comes to malware, prevention is better than cure. To prevent Trojan horses from getting on your Mac or limit the damage they cause if your Mac is infected, follow our checklist:
Never open email attachments from people you don’t know.
Avoid unsavory websites that are likely to host malware.
Never download or install pirated software.
Don’t click on pop-up windows unless you know for sure they’re safe.
Install all required and recommended system and app updates only by yourself and only through System Settings/Preferences or automatically through MacKeeper’s Update Tracker.
Only download apps from trusted sources, like the App Store and official websites.
Make sure you have an antivirus tool with real-time protection, such as MacKeeper.
Set up a firewall to prevent malware from dialing out to steal your data—it comes installed on Macs by default.
Don’t ignore warning signs—if your Mac is so slow, it’s painful, so think about why.
Choosing the right procedure to remove Trojans
With good security practices and MacKeeper’s Antivirus, removing Trojans from your Mac is easy. You can do a lot of the detection and removal work manually, but it’s a long-winded and complex way to do things. Yes, a lot of Trojans will install files in your Library folders, for example, but they could also be in other places on your Mac. Plus, you have to know what you’re looking for.
If you find a Trojan on your Mac, you should remove suspicious apps, extensions, and so on, if you can. You can do that manually or save time with MacKeeper’s Smart Uninstaller.
Resetting your Mac will work too, but it’s a drastic option. Before you do that, remove all kinds of malware, including Trojans, in just a few clicks. Check out our viruses list to see other types of malware our tool can deal with.
We respect your privacy and
use cookies
for the best site experience.
Privacy Preferences Center
We use cookies along with other tools to give you the best possible experience while using the
MacKeeper website. Cookies are small text files that help the website load faster. The cookies we
use don’t contain any type of personal data meaning they never store information such as your
location, email address, or IP address.
Help us improve how you interact with our website by accepting the use of cookies. You can change
your privacy settings whenever you like.
Manage consent
All cookies
These cookies are strictly necessary for enabling basic website functionality (including page
navigation, form submission, language detection, post commenting), downloading and purchasing
software. The website might malfunction without these cookies.