Mac virus pop up: is the "your Mac is infected" warning fake, and what to do
A pop-up that says your Mac is infected is a known scam tactic. Treat it as an ad or a scam until proven otherwise. Do not click anything in it, and never call a phone number shown in it. Real security pop-ups will never ask you to call a number. Close Safari safely with the steps below. If you already called, paid or let someone control your Mac, skip to the section on what to do after you clicked.
A Mac virus pop up looks urgent on purpose. It says your Mac is infected and tells you to act now. Some are third-party ads that use phishing tactics, such as warnings or prizes, to make you believe they come from Apple or another trusted company, so you will share personal or financial information. Phishing means tricking you into handing over data. The warning is the bait. This page shows how to spot it, how to close it, and what to check if you already reacted.
01Do and don't at a glance
| Do | Don't |
|---|---|
| Avoid interacting with pop-ups or pages that seem to take over your screen | Call the phone number in the pop-up |
| Contact the company directly if you need to, using a phone number you know is real, not the one in the message | Click what looks like a close button; some are fake |
| Get software from the App Store, or from the developer, not from an ad | Give a password or a security code to anyone who contacts you |
| Update macOS, then restart; the Software Update steps are on XProtect | Download a "fix", update or plug-in offered by a pop-up |
| Paste into Terminal, the Mac app where you type commands, a command a page or message gave you |
02Is a Mac virus pop up ever real?
A warning in a web page is not a scan result from your Mac. The built-in antivirus, XProtect, works inside macOS: when it detects known malware it blocks it, moves it to the Trash and alerts you in the Finder. A message that asks you to call a number or click a download is not that. The Gatekeeper page covers the system prompts you may really see. Three tests settle most cases.
First, the call. Real security pop-up warnings and messages will never ask you to call a phone number. Scammers use fake pop-ups that look like they come from a well-known company and urge you to call.
Second, the password. Apple never asks for your password or security codes to provide support. Never agree to enter such data into a webpage that someone directs you to.
Third, who contacted you. Legitimate tech companies will not contact you by phone, email or text message to tell you there is a problem with your computer. When an unexpected message asks for something, it is safer to presume it is a scam.
03First action: get rid of the pop-up safely
The pop-up is built to make you click. Unless you are confident they are legitimate ads, avoid interacting with pop-ups or webpages that seem to take over your screen. Some pop-ups and ads have fake buttons that resemble a close button, so use caution if you try to close one.
So do not hunt for the close button. Quit Safari. If the window covers the whole screen and Safari will not quit normally, use the Force Quit steps on remove malware. Then press and hold the Shift key while you open Safari again. That stops Safari from reopening any windows or tabs that were open, so the page does not come back.
These steps are for Safari. For another browser, start from the Safari malware guide.
If the pop-up keeps returning, the cause may be on the Mac and not on one web page. Pop-ups that just will not go away can mean you installed adware, advertising-supported software, without meaning to. Certain third-party download sites include software you do not want along with the software you do.
04Clean up after the pop-up
After a Mac virus pop up, open the Safari settings with Safari > Settings. In the Extensions tab, look for extensions you did not install; to remove one, select it and click Uninstall. An extension is a small add-on program for the browser. In the Websites tab, under Pop-up Windows on the left, you can allow or block pop-ups. Then open the Applications folder in a Finder window and look for apps you do not expect.
The rest of the check, including login items and profiles, is on how to check your Mac for a virus, and removal is on remove adware.
05If you already clicked, called or paid
Work out which of these fits, because the next step differs.
| What you did | What to do next |
|---|---|
| Only saw the pop-up and closed it | Do the clean-up above |
| Clicked a download, update or plug-in offer | Check the Applications folder and the Extensions tab for what you did not install. The offers are meant to get unwanted software onto your Mac |
| Typed a password or card details into the page | Treat that password as exposed. Change it from your phone or another device you trust, not from this Mac, and change it everywhere else you use the same password. Turn on two-factor authentication. For an Apple Account, change the password immediately and make sure two-factor authentication is on |
| Pasted a command from the page into Terminal | Assume the command ran. In these attacks the command you are told to run downloads malware, usually an information stealer, a program that goes after browser data, cookies and session tokens. Go to the infostealer check |
| Called the number and let someone connect to your Mac | Scammers ask for remote access and pretend to scan the Mac for viruses. Stop logging in to accounts with sensitive information. Then open Apple menu > System Settings > General > Sharing. Screen Sharing lets other users on your network access your screen and Remote Login allows remote login access to your Mac; turn Screen Sharing off. Update your security software, run a scan and delete anything it identifies as a problem. The full check is on is my Mac hacked, and removal steps are on remove malware |
| Paid | Scammers often insist on gift cards, wire or bank transfers, cryptocurrency or a payment app, because once you pay this way it is hard to get your money back. Still, contact the company you used to send the money and ask if there is a way to get it back. In the U.S., report the scam to the FTC at ReportFraud.ftc.gov |
The goal of tech support scammers is to get your financial information or remote access to your computer, and to steal your money or, worse, your identity. If you think there may be a real problem with the computer, update your security software and run a scan. A clean scan does not prove the Mac is clean, though. Malware can go undetected, at least for a while.
06Where these warnings come from
The safest way to download apps is the App Store. If you need something else, get it directly from the developer or another reliable source, not through an ad or link. Scammers try to get their websites to show up in search results for tech support, or run their own display ads. Fake subscription-renewal messages use the names of well-known companies like Geek Squad, McAfee and Norton to get your attention. They place bogus ads for software on social media sites and search engines, and phone scams impersonate Apple Support and other trusted names. How malware reaches a Mac in general is on can Macs get viruses, and the signs that something got in are in the signs of a virus table.
07The short version
A Mac virus pop up in a browser is an ad or a scam until proven otherwise. Do not call its number, do not give it a password, and do not trust its close button. Close Safari the way described above, then check extensions, apps and updates. If you clicked a download, pasted a command or let someone connect to the Mac, move on to the remove malware steps. For what built-in protection does and does not do, see best antivirus.
FAQ
How do I get rid of virus warning pop-ups on my Mac?
Do not click inside the pop-up, because some have fake buttons that look like a close button. Close Safari the way the first-action section describes, then check the Extensions tab in Safari settings and the Applications folder for things you did not install. The steps are for Safari; for the full clean-up see Safari malware.
Is there a fake Mac virus warning?
Yes. Misleading pop-ups and ads that say your device has a security problem are a known scam tactic. Some are third-party ads that use warnings or prizes to make you believe they come from Apple or another trusted company.
I'm getting a pop-up saying my Mac is infected. Is this normal?
A Mac virus pop up like this is a known scam tactic. Treat a warning that appears in a web page as an ad or a scam until proven otherwise. Real security pop-ups will never ask you to call a phone number.
How do I clear a virus off my Mac?
If all you have is a pop-up and you clicked nothing, start with the clean-up section above. If you clicked a download, installed something or ran a command, follow the remove malware steps. Start by not logging in to online accounts with sensitive information.
How do I know if my Apple virus warning is real?
Check three things. A real warning never asks you to call a number. Apple never asks for your password or security codes to provide support. Legitimate tech companies do not phone, email or text you to say there is a problem with your computer. If any of these fail, it is fake.
What happens if I click on a fake virus warning?
It depends on what it offers. It may push a fake download or update that installs unwanted software. It may ask for personal or financial information. Or it may send you to a scammer who asks for remote access and pretends to scan the Mac. The table in the section on what to do after you clicked covers each case.
Is the macOS security warning real?
A warning from macOS itself is a different thing from a warning in a web page. When XProtect, the built-in antivirus, detects known malware, it blocks it, moves it to the Trash and alerts you in the Finder. The Gatekeeper page covers the system prompts you may really see.
Related guides
Sources
- Apple Support, scams and social engineering
- Apple Support, pop-ups and malware on Mac
- FTC Consumer Advice, how to spot, avoid and report tech support scams
- FTC Consumer Advice, how to recognize, remove and avoid malware
- Apple Support, Safari settings
- Apple Platform Security, protecting against malware
- Malwarebytes, AMOS and ClickFix
- Artificial Immunity