Can Macs get viruses? Yes, and here is how
Yes, Macs get viruses, or more exactly malware, the broader word for harmful software installed without your knowledge. Three recent Mac stealer campaigns relied on tricking people into mounting an unsigned DMG or pasting a command into Terminal. If you think it has happened to you, start with the step-by-step check.
A DMG is a disk image, the usual file for installing a Mac app, and unsigned means the developer has not signed it. Terminal is the app where you type commands. Neither the app nor the file is the danger. The danger is a page that tells you to open or run something from them.
01Yes: Mac malware is real and ongoing
macOS is no longer a niche target. Stealers, programs that copy logins, browser data and wallets, remain the dominant threat class.
Since late 2025, macOS infostealer campaigns have arrived through ClickFix-style prompts and malicious DMG downloads. ClickFix is a trick where a web page gets you to run a command that downloads malware, usually an information stealer. So the question is no longer whether Macs get viruses, but how, and what you can do at that step.
02How malware gets onto a Mac
| Route | What it looks like |
|---|---|
| Malicious ads and cracked installers | AMOS, a Mac stealer, has been distributed through malicious ads and ClickFix campaigns. Cracked Adobe and creative-suite installers top the names of malicious samples. |
| Fake installers | Installers that pretend to be AI developer tools, such as a Claude Code or ChatGPT installer, sit second only to the cracked ones. Another stealer spreads through malicious installers. |
| Pasted Terminal commands | A malvertising or ClickFix lure tells you to copy and paste a command into Terminal instead of running an installer. |
| Poisoned search results and AI chats | One AMOS infection began with a Google search for how to clear disk space on macOS. Attackers pay for sponsored results that point to a shared AI chat. A fake command guide published on claude.ai was pushed through Google sponsored results. |
| Unsigned DMG and drag to Terminal | A stealer uses the drag-to-Terminal trick to override Gatekeeper. |
| Script Editor opened from a web page | A web page can open Script Editor, a macOS app for scripts, on its own through a special link and use it to deliver a stealer, without Terminal. |
| Fake job assessments | A fake assessment that asks you to run terminal commands can deploy malware. |
| Bundled software | Certain third-party download sites include software you do not want along with the software you do. |
Malvertising means ads that deliver malware. The stealer families behind these routes are listed on the Mac infostealers page. The fake job lure has its own page, fake job interview malware. The pattern in the table is the same in every row: the step that lets the malware in is one you take. Stealers are not the only kind of malware. Adware is advertising-supported software installed by accident. Bundled downloads, which carry software you did not ask for, are one way it arrives.
03What macOS covers and where it stops
macOS has built-in antivirus technology, XProtect, and by default macOS checks all software the first time it is opened. How each layer works is on the XProtect and Gatekeeper pages.
macOS 26.4 added a security feature that scans commands pasted into Terminal before they are executed. Gatekeeper can still be overridden by the user. And malware can arrive signed and even notarized, which means Apple scanned it for known malware and did not find it. One such app was found both signed and notarized, so the user did not need to bypass standard macOS protections. Apple can revoke a notarization afterwards.
Even with security software, malware might go undetected, at least temporarily. For the full picture of what macOS does and where an extra tool might fit, read the do I need antivirus page.
04How likely is it?
There is no reliable number for how likely your Mac is to be infected. What security companies count is what they find: in the first half of 2026, adware was about 65 percent of detections and potentially unwanted programs about 25 percent, while stealers, backdoors and trojans together were under 5 percent. In data from over 1.4 million Macs, trojans rose from 16.61 percent of detections in 2024 to 50.32 percent in 2025. These are two different groups of Macs, so do not compare the numbers.
What it means for you: the numbers change from year to year, the habit does not. Get apps from the App Store where you can, and other software straight from its developer, not through an ad or a link.
05Who is targeted most
Developers, cryptocurrency holders and anyone with access to high-profile credentials are the priority targets. If you build software with AI agents, the routes above include installers named after AI tools and shared AI chats that look like help guides. The fake job interview malware page covers the developer-specific lure.
06What to do next
If you came here asking whether Macs get viruses because something is off, go to signs your Mac has a virus for the table. The step-by-step check lists the places to look. If you already ran something suspicious, the cleanup is on the remove malware page.
Two habits close off the routes in the table that start with an ad, a link or a pasted command. Never paste a command into Terminal because a web page, a video call or a document told you to. And download software from the developer or the App Store, not from an ad or a link.
07The short version
Yes, Macs get viruses and other malware, through fake installers, pasted commands, poisoned ads and bundled downloads. macOS covers known threats, not everything. In every route above the step that lets it in is the one where something asks you to run it.
FAQ
Can a Mac get malware?
Yes. Since late 2025 macOS infostealer campaigns have arrived through ClickFix prompts and malicious DMG downloads. These attacks rely on user interaction to start execution.
How likely is a MacBook to get a virus?
No reliable rate is available. Two detection counts exist, from different data sets, and they cannot be set against each other. One author notes that macOS is no longer a niche target.
How do I tell if my Mac has malware?
Look for the signs in the table on signs your Mac has a virus: slowdowns, a changed home page, new toolbars, many pop-ups and messages you did not write.
How can I check if my Mac has a virus?
Follow the step-by-step check, which starts with what you ran and then goes through Activity Monitor, Login Items & Extensions, apps and browser extensions, and permissions and updates.
How do I clean a virus off my Mac?
Stop logging in to sensitive accounts first, then change passwords and turn on two-factor authentication. The cleanup is on the remove malware page.
Does macOS protect against malware?
In part. XProtect is the built-in signature-based antivirus, and Gatekeeper checks software the first time it is opened. Users can override Gatekeeper.
Related guides
Sources
- Objective-See, The Mac malware of 2025
- Microsoft Defender Experts, hunting infostealers on macOS
- Palo Alto Networks Unit 42, AMOS activity
- Malwarebytes, poisoned AI chats and AMOS
- Malwarebytes, macOS ClickFix alert
- Palo Alto Networks Unit 42, macOS stealers growing
- Jamf Threat Labs, DigitStealer analysis
- 9to5Mac on Jamf Security 360 (secondary)
- FTC Consumer Advice, how to recognize, remove and avoid malware
- Apple Support, pop-ups and malware on Mac
- Jamf Threat Labs, ClickFix and Script Editor
- Apple Platform Security, protecting against malware
- Apple Platform Security, Gatekeeper and runtime protection
- MacPaw Moonlock Lab, H1 2026 report (vendor: MacPaw sells antivirus software)
- Artificial Immunity