Get the free coreGet core

Is my Mac hacked? How to tell and what to do first

Updated 6 min readSection 06 / Mac security
SHORT ANSWER

To tell if your Mac is hacked, look for changes you did not make: a slowdown, a changed home page, new browser toolbars, many pop-ups, a disabled Activity Monitor, or messages you did not write. If you see one, stop logging in to online accounts with sensitive information, like banking or shopping, until you have checked. Then look at what runs on the Mac, your Sharing settings and your accounts. If you ran an unknown installer or pasted a command into Terminal recently, go to the infostealer check first. An infostealer is a program that goes after saved browser data, cookies and session tokens.

Is my Mac hacked, or just old and slow? Sometimes you can see a break-in, and often you cannot. Malware may go undetected, even with security software, at least for a while, so the checks below find the common traces; they are not a guarantee. Malware is harmful software installed on your device without your knowledge.

01Six signs to look for

Is my Mac hacked, or is this one odd sign? One sign alone proves nothing; it is a reason to look.

SignWhat to look at first
The Mac slows down, freezes or crashesActivity Monitor, which shows memory and CPU time per process
The browser home page changes or sends you to sites you did not intend to visitThe Extensions tab in Safari settings; see also browser hijacker
New browser toolbars or add-on programsThe Extensions tab, then the Applications folder
A lot of pop-up ads, even on sites where you would not expect themApps you did not install
Activity Monitor or similar system tools are disabledTreat it as a sign of its own and go on to the steps below
Emails you did not write or social media messages you did not postThe account itself: see the accounts section below

The same table with more detail is on signs your Mac has a virus.

02Look at what is running and what starts by itself

Open Activity Monitor from Spotlight. It lists the programs running on your Mac and how much memory and CPU time each uses. A name you do not know is a reason to search for it, not proof; the suspicious processes page shows how to judge one.

Malware often installs itself so that it runs again after a restart or login. The first place to look is Apple menu > System Settings > General > Login Items & Extensions. If an item is not yours, select it and delete it. Also check Device Management in the same General pane: it is not common to have a configuration profile unless you created one. Be careful with every file you delete, because trashing system files by mistake can crash the Mac. The click paths for every place, including the launch folders, are on how to check your Mac for a virus, and removal is on remove malware.

03Is someone controlling your Mac? Check Sharing

A hacker who wants to control a Mac needs a way in, and two switches in Sharing settings are the ones to read. Open Apple menu > System Settings, click General in the sidebar, then click Sharing (you may need to scroll down).

Screen Sharing and Remote Management cannot both be on at the same time. If you turn on a sharing service, macOS opens a specific port, a numbered door the service listens on, for it to communicate through, so turning off what you do not use leaves less open. The firewall, the switch that blocks unwanted contact from other computers, has its own page: firewall.

The scam version of remote access starts with a phone call or a pop-up. Scammers ask for remote access to your computer and pretend to scan it for viruses. If someone has already had that access, treat the Mac as compromised, turn off Screen Sharing as above, and follow remove malware.

04Is someone watching what you type or see?

macOS lists the apps that have asked for or been given access to the keyboard, the screen and the camera. Open Apple menu > System Settings, then click Privacy & Security in the sidebar (you may need to scroll down). Under Input Monitoring you can turn the ability to monitor your input devices on or off for each app. Under Camera you can turn access on or off for each app. What each list means, and what else to read, is on the spyware and keylogger pages.

05Check your accounts, not only the Mac

Stolen passwords and session data let an attacker take over your online accounts without needing to keep a foothold on your Mac. A session is the sign-in your browser keeps so you do not log in again. So a Mac that looks clean can still sit behind an account that is not. The concept is on session hijacking.

Apple Account. If you think it is compromised, change the Apple Account password immediately and make sure two-factor authentication is on. Two-factor authentication is an extra layer that protects the account even if someone else knows your password.

GitHub. If you use GitHub as a developer, read this block; otherwise skip it. A recent npm attack, Mini Shai-Hulud, leaves a file on the Mac at ~/Library/LaunchAgents/com.user.gh-token-monitor.plist. It is a small background program that checks your GitHub token every 60 seconds and triggers a destructive routine if the token is revoked. A token is a key a program uses to sign in to your account without your password, and to revoke it is to cancel that key. So look for the file first, using Finder's Go > Go to Folder.

launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/com.user.gh-token-monitor.plist

If you are not comfortable with Terminal, you can wait instead: the program exits by itself after 24 hours. Only after that, change your GitHub password and revoke the token.

Passwords for your other accounts can be changed now; only the GitHub token waits.

To see your active GitHub sessions, click your profile picture, then Settings, and in the Access section click Sessions; Revoke session ends one. Under SSH and GPG keys, note any keys you do not recognize.

Change passwords, tokens and keys from a device you trust, not from the Mac you are worried about.

06If you find something

Stop logging in to online accounts with sensitive information, then change your passwords and turn on two-factor authentication. If you were scammed, in the U.S. report it to the FTC at ReportFraud.ftc.gov. If signs of a persistent backdoor, a hidden way back into the Mac, remain after cleanup, strongly consider a full clean reinstall of macOS. Back up the files you want to keep first, because erasing the Mac permanently deletes its files; the ordered steps are on remove malware.

If the signs started after you pasted a command or typed your password into an install prompt, the infostealer check covers what to replace and in what order. Stealers go after browser data, cookies and session tokens.

07The short version

So, is my Mac hacked? Check the six signs, then what runs and starts by itself, Sharing settings and your accounts. If something looks wrong, stop signing in to sensitive accounts and change your passwords from a trusted device. If none of this turns up anything, you found nothing obvious: that is a snapshot and does not prove the Mac is clean. How malware gets onto a Mac in the first place is on can Macs get viruses.

FAQ

How do I check if my Mac is hacked or not?

Look for changes you did not make: a slowdown, a changed home page, new toolbars, many pop-ups, a disabled Activity Monitor or messages you did not write. Then check what runs and starts by itself, and your sharing settings, as described above. The check for a virus page has the full five steps.

How can I tell if someone is monitoring my Mac?

There is no single screen that shows it. Look at what apps can see and record: in Privacy & Security, Input Monitoring lets apps see what you type, Screen & System Audio Recording lets them record your screen and audio, and Camera and Microphone are listed separately. You can switch an app off in the same list. The spyware and keylogger pages go through those lists.

Is there a way to check if my Mac has a virus?

Yes, by hand, in five places, starting with what you ran in the last few days. Neither a hand check nor security software can prove a Mac is clean, because malware may go undetected, at least for a while. See how to check your Mac for a virus.

How likely is it for a Mac to get hacked?

A Mac can be hacked, and macOS is no longer a niche target. Three recent Mac stealer campaigns relied on tricking people into mounting an unsigned disk image or pasting a command into Terminal. The routes in are on can Macs get viruses.

Is my Mac compromised if it runs slowly?

A slowdown, freezes or crashes can be a sign of malware, but they have many other causes. Treat it as a reason to open Activity Monitor and look, not as a verdict.

What should I do first if I think my Mac is hacked?

Stop logging in to online accounts with usernames, passwords or other sensitive information, like shopping or banking. Then change your passwords and turn on two-factor authentication from a device you trust. If one of those accounts is GitHub, read the GitHub block in the accounts section first.

How do I know if my Mac is secure?

A quiet check does not prove it. You can reduce the chance of trouble: the firewall prevents unwanted connections from the internet or other networks, and the safest way to download apps is the App Store. The firewall page covers the switch.

Sources

  1. FTC Consumer Advice, how to recognize, remove and avoid malware
  2. FTC Consumer Advice, tech support scams
  3. Apple Support, Login Items & Extensions
  4. Apple Support, configuration profiles
  5. Apple Support, block connections with a firewall
  6. Apple Support, stealth mode
  7. Apple Support, Activity Monitor processes
  8. Apple Support, Privacy & Security settings
  9. Apple Support, two-factor authentication
  10. Apple Support, scams
  11. Microsoft Defender Experts, hunting infostealers on macOS
  12. GitHub Docs, managing your personal account security
  13. GitHub Docs, remediating a leaked secret
  14. Objective-See, The Mac malware of 2025
  15. Artificial Immunity
A hand check shows today, not what ran last week. Artificial Immunity's free, open-source core watches every program start on the Mac where your agents work and reports what it finds.Get the free core