If you suspect your Mac is hacked, act immediately: disconnect from the internet and shut the computer down. Then boot into Safe Mode, change your passwords from another device, and scan for malware before reconnecting. This guide walks you through the exact steps to contain the breach, remove malicious software, and prevent it from happening again.
Signs Your Mac May Be Compromised
Hackers rarely leave obvious calling cards, but several symptoms often point to a compromised system. You might notice the fan spinning loudly when the Mac is idle, or the machine feels sluggish even after a fresh restart. Unexpected pop-up ads, toolbars you never installed, or a browser homepage that changed on its own are classic signs of adware. More serious indicators include files being encrypted (ransomware), new user accounts appearing in System Settings, or outgoing network traffic you don’t recognize. If you see any of these, treat it as a potential breach and follow the steps below.
Step 1: Disconnect and Power Down
The first thing to do is cut off the attacker’s access. Unplug the Ethernet cable, turn off Wi-Fi (click the menu bar icon and select Wi-Fi off), and disable Bluetooth. Then shut down the Mac normally (Apple menu > Shut Down). If the system is unresponsive, press and hold the power button until it turns off. This prevents remote control, data exfiltration, and further damage while you prepare your response. Do not restart yet.
Step 2: Boot into Safe Mode
Safe Mode loads only essential system extensions and prevents login items and third-party software from launching automatically. This makes it easier to remove malware and diagnose issues. To enter Safe Mode on Apple Silicon (M1/M2/M3), shut down, then press and hold the power button until you see “Loading startup options,” click your disk, hold Shift, and click “Continue in Safe Mode.” On Intel Macs, restart and immediately hold the Shift key until the login window appears. Once in Safe Mode, your Mac runs a disk check and clears some system caches, which can eliminate certain types of malware.
Step 3: Change Your Passwords (From Another Device)
Use a phone, tablet, or another computer to change the passwords for your Apple ID, email, banking, social media, and any other critical accounts. Do this before you reconnect your Mac to the internet. If a hacker has keylogging software on your Mac, typing new passwords on that machine will just give them the new credentials. Enable two-factor authentication (2FA) on every account that supports it. For your Apple ID specifically, go to appleid.apple.com and change the password, then review your trusted devices and sign out any that you don’t recognize.
Step 4: Scan for Malware and Remove Suspicious Apps
After you’ve changed passwords, reconnect to the internet and run a thorough malware scan. Built-in tools are a good start: open Activity Monitor and look for processes with high CPU usage that you don’t recognize. Check your Applications folder for recently installed apps you didn’t download. Look in System Settings > Users & Groups for unknown accounts. For a deeper cleanup, you can use a reputable antivirus tool (like Malwarebytes for Mac, which has a free version). In Safe Mode, delete any suspicious applications by dragging them to the Trash, then empty the Trash. Also check your browser extensions and remove any you didn’t install.
Step 5: Update macOS and Restore from a Clean Backup
Once you’ve removed obvious threats, update macOS to the latest version (System Settings > General > Software Update) to patch any vulnerabilities. If the system still behaves oddly, or if you suspect ransomware, the safest route is to erase the drive and restore from a backup made before the infection. Use Time Machine or your backup method of choice, but be sure the backup itself is clean. If you don’t have a backup, you’ll need to reinstall macOS from scratch and manually copy over your files after scanning them.
How to Prevent Future Hacks
Prevention is far easier than recovery. Follow these habits to keep your Mac secure:
- Always install macOS updates promptly—they include security patches.
- Use a strong, unique password for your user account and enable FileVault disk encryption.
- Only download software from the Mac App Store or trusted developer websites.
- Turn on the built-in firewall (System Settings > Network > Firewall).
- Be wary of phishing emails and never click suspicious links or attachments.
Frequently Asked Questions
Can a Mac get a virus?
Yes. While macOS has strong built-in protections, no system is immune. Malware like adware, spyware, and ransomware can infect a Mac, especially if the user disables security settings or downloads pirated software. The steps above are designed to handle such infections.
What if I can’t log in to my Mac?
If the hacker changed your password, you may still be able to reset it using your Apple ID (if FileVault is off) or by booting into Recovery Mode and using the Terminal to reset the password. If FileVault is on, you’ll need your recovery key. If all else fails, you may need to erase the disk and reinstall macOS.
Should I pay a ransom if my files are encrypted?
No. Paying does not guarantee you’ll get your files back, and it funds criminal activity. Instead, restore from a backup. If you don’t have a backup, some ransomware families have known decryption tools, so search for the specific variant online before giving up.
How do I know if someone is remotely accessing my Mac?
Check System Settings > General > Sharing and ensure Remote Management, Remote Login, and Screen Sharing are all off. Also look for any unknown users in System Settings > Users & Groups. In Activity Monitor, watch for processes like “screensharingd” or “VNC” that indicate remote access.
Is it safe to use my Mac after I’ve cleaned it?
Only after you’ve updated macOS, changed all passwords, and confirmed no suspicious processes are running. If you’re still unsure, a clean install of macOS is the most reliable way to guarantee a safe system.
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
- Puppets in TV Shows: Classic Proof They’re Better
- Best Streaming Remote: Top Picks for Every Setup
- Claude Pro Hidden Features Power Users Try
- Tesla Rental Prices: Why They’re So Low255.00 USD
- Best Family Western Movies to Stream Right Now
- Luxury V6 Sports Sedan: Can It Easily Top 100k Miles?