keepcalculator

06 Numbers and Powers

Remove Trojan From Mac: Full Removal Guide

Card No. 06·74760 · Updated · Standard formula, shown below

To remove a trojan from a Mac, you need to identify the malicious file, quit its running processes, delete it from your Applications and Library folders, and then reset browser settings and check for login items. This guide walks you through the complete process step by step, including how to recognize a trojan infection and how to prevent future ones.

What Is a Trojan and How Does It Get on a Mac?

A trojan (or Trojan horse) is a type of malware that disguises itself as a legitimate application or file. Unlike a virus, it does not self-replicate; instead, it tricks you into installing it. On macOS, trojans often arrive bundled with pirated software, fake Adobe Flash Player installers, or deceptive “Mac cleaner” pop-ups. Once installed, a trojan can steal passwords, log keystrokes, install additional malware, or turn your Mac into part of a botnet.

Apple’s built-in protections—Gatekeeper, Notarization, and XProtect—block many known trojans, but new ones appear constantly. Users can also inadvertently bypass these protections by right-clicking and selecting “Open” on a downloaded file, or by disabling Gatekeeper entirely. Understanding how trojans spread is the first step in removing them effectively.

Signs Your Mac Might Have a Trojan

Trojans are designed to stay hidden, but they often cause noticeable symptoms. Common indicators include:

  • Sudden slowdowns or excessive fan noise (malware using CPU resources)
  • Frequent pop-up ads or unexpected browser redirects
  • New toolbars, extensions, or a changed homepage in Safari, Chrome, or Firefox
  • Applications you don’t remember installing
  • High network activity even when you’re not browsing
  • Your Mac asks for your password unexpectedly (a trojan trying to escalate privileges)

If you notice any of these, act quickly. The longer a trojan stays on your system, the more data it can exfiltrate.

Before You Start: Back Up and Disconnect

Before removing a trojan, take two precautions. First, disconnect your Mac from the internet (turn off Wi-Fi and unplug Ethernet). This stops the trojan from sending data or downloading more payloads. Second, back up your important files to an external drive or cloud service—but only files you trust. Do not back up the infected application or any suspicious files. A clean backup ensures you don’t lose documents if something goes wrong during removal.

Also, note your macOS version (Apple menu → About This Mac). Removal steps are similar across recent versions, but some folder names differ slightly.

Step-by-Step Trojan Removal

Follow these steps in order. If you’re not comfortable doing this manually, skip to the section on antivirus tools below.

  1. Quit the trojan process. Open Activity Monitor (in /Applications/Utilities). Look for processes with suspicious names (random strings, or names similar to legitimate apps but misspelled). Select the process and click the “X” button to force quit. If you’re unsure, search the process name online from another device.
  2. Delete the trojan application. Open Finder → Applications. Look for recently added apps you don’t recognize. Drag them to the Trash. Also check /Library/Application Support and ~/Library/Application Support for folders with the same name.
  3. Remove launch agents and daemons. These are files that make the trojan start automatically. Open Finder → Go → Go to Folder (Shift+Cmd+G) and enter /Library/LaunchAgents and /Library/LaunchDaemons. Also check ~/Library/LaunchAgents. Look for recently modified .plist files with suspicious names. Delete them.
  4. Clear login items. Go to System Settings → General → Login Items. Remove any entries you don’t recognize by selecting them and clicking the minus button.
  5. Reset browser settings. In Safari, go to Settings → Extensions and remove unknown extensions. Then reset your homepage and search engine. For Chrome, go to Settings → Extensions, remove suspicious ones, then reset the homepage and search engine. For Firefox, go to Add-ons → Extensions and remove them, then reset the homepage.
  6. Empty the Trash and restart. Right-click the Trash icon and select “Empty Trash.” Then restart your Mac.

Using Antivirus Software for Removal

If manual removal feels risky or you can’t find the trojan, use a reputable antivirus app. Several free and paid options exist for macOS, including Malwarebytes (free version), Bitdefender, and Kaspersky. Download the app from the official website (not from a pop-up ad), install it, and run a full system scan. The software will quarantine or delete the trojan and often clean up associated files automatically.

After the scan, reboot and run a second scan to ensure nothing remains. Keep the antivirus installed for real-time protection, or uninstall it if you prefer to rely on manual methods—but regular scans are a good habit.

What to Do If the Trojan Persists

Sometimes a trojan is deeply embedded, or it reinstalls itself from a hidden component. If the above steps don’t work, try these:

  • Check your DNS settings. Some trojans change DNS to redirect traffic. Go to System Settings → Network → your connection → Details → DNS. Remove any unknown servers and set to automatic.
  • Use Safe Mode. Restart your Mac and hold the Shift key to boot into Safe Mode. This prevents some launch agents from running. Then repeat the removal steps.
  • Create a new user account. Go to System Settings → Users & Groups, create a new administrator account, log into it, and delete the old account (keeping files or not). This can bypass trojans that only affect one user profile.
  • Erase and reinstall macOS. This is the nuclear option. Back up your data, then restart in Recovery Mode (Cmd+R), use Disk Utility to erase your drive, and reinstall macOS. This guarantees removal but costs time and requires reinstalling all apps.

How to Prevent Future Trojan Infections

Prevention is easier than removal. Follow these practices:

  • Only download apps from the Mac App Store or directly from the developer’s official website.
  • Never click “Open” on a file that triggers a Gatekeeper warning (unless you’re absolutely sure it’s safe).
  • Keep macOS and all apps updated. Apple regularly patches security holes.
  • Enable FileVault (System Settings → Privacy & Security → FileVault) to encrypt your disk.
  • Use a standard (non-admin) account for daily work. Trojans have a harder time installing system-wide changes without admin rights.
  • Be wary of email attachments and links, even from known senders.

Frequently Asked Questions

Can a Mac get a trojan from visiting a website?

Yes, but it’s rare. Modern browsers and macOS have multiple layers of protection. Typically, a trojan requires you to download and open a file. However, “drive-by downloads” have occurred, especially with outdated browsers or plugins. Keep your browser updated and avoid clicking on suspicious pop-ups.

Is it enough to delete the trojan app from Applications?

No. Trojans often install helper files like launch agents, browser extensions, and kernel extensions. If you only delete the main app, the helper can reinstall it on the next reboot. Always follow the full removal steps, including checking Library folders and login items.

Can I remove a trojan for free?

Yes. Manual removal is free, and so are reputable antivirus tools like Malwarebytes (free version). You don’t need to pay for removal unless you choose a premium antivirus suite. Be cautious of any tool that demands payment to “fix” a detected infection—that could be a scam.

Will erasing my Mac and reinstalling macOS remove a trojan?

Yes, if you erase the entire disk and reinstall macOS, all files including the trojan are gone. However, if you restore from a Time Machine backup that was made while the trojan was present, you could reintroduce it. Restore only selected files, not the entire system.

How do I know if my Mac has a trojan if there are no symptoms?

Some trojans are silent. Run a reputable antivirus scanner periodically, and check your Activity Monitor for unusual processes. Also review your login items and browser extensions occasionally. If you see anything you don’t remember installing, investigate.

Can a trojan steal my passwords from Keychain?

Potentially, yes. A trojan running as your user can access Keychain items if it prompts you for your login password and you enter it. That’s why you should never enter your password into unexpected dialogs. If you suspect a trojan, change your important passwords from a clean device after removal.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →