Threat Eraser
Windows 10 & 11 Buy license · $69.95
Staying safe

How malware gets on your computer, and how to close each door

The six most common ways malware reaches Windows PCs, from phishing emails to cracked software, and simple steps to block each one on Windows 10 and 11.

Updated 4 minute read The Threat Eraser team

Malware usually gets on your computer because something you opened, downloaded or plugged in carried it there. The most common routes are email attachments and links, fake or cracked software downloads, malicious browser pop-ups and extensions, infected USB drives, and out-of-date software with security holes. Very little malware arrives completely "out of nowhere": almost every infection has a doorway, and most doorways can be closed.

Knowing the routes matters because it tells you where to look if you suspect a problem, and which habits give you the most protection for the least effort.

The main ways malware gets in

1. Email attachments and links (phishing)

Phishing is still the biggest single entry point. The FBI's 2025 Internet Crime Report lists phishing as the most-reported category of complaint, with 191,561 reports. A typical phishing email pretends to be a delivery company, a bank, a supplier with an unpaid invoice or even a colleague. It asks you to open an attachment (a "document" that is really a program, a ZIP file or a macro-laden Office file) or to click a link that downloads something or asks for your password.

2. Fake and cracked software

Downloads from unofficial sites are a favourite delivery method for trojans and infostealers. "Free" versions of paid programs, game cheats, key generators and fake installers for popular apps often bundle malware with the program you wanted, or deliver malware in its place. See is cracked software safe? for why this route is so risky.

3. Malicious ads, pop-ups and fake updates

A web page that suddenly says your browser or Flash player (long discontinued) "needs an update", or that your PC is infected and you must download a cleaner, is almost always a trap. The download it offers is the malware. Real Windows and browser updates arrive through Windows Update and the browser's own settings, not through pop-ups.

4. Browser extensions and bundled extras

Some free programs install extra toolbars, search changers or "helpers" during setup unless you untick a box. These are often adware or potentially unwanted programs (PUPs). They are rarely as dangerous as ransomware, but they slow you down, show ads and can redirect your searches.

5. USB drives and shared files

Infected files can travel on USB sticks, external hard drives and shared network folders. A file copied from someone else's computer can carry whatever that computer had. Our guide to scanning a USB drive for viruses covers how to check them.

6. Unpatched software and weak remote access

Attackers also break in without you clicking anything, by exploiting security holes in software that has not been updated. The Verizon 2026 Data Breach Investigations Report found that exploitation of vulnerabilities was the top way into breaches, at 31%. For small businesses, remote desktop left open to the internet with a weak password is another common way in.

RouteTypical threatBest defence
Email attachments and linksTrojans, infostealers, ransomwareVerify the sender; never enable macros on unexpected files
Cracked or unofficial downloadsInfostealers, cryptominers, backdoorsDownload only from the developer or Microsoft Store
Fake update pop-upsTrojans, fake "cleaners"Update only through Windows Update or app settings
Bundled installersAdware, PUPs, browser hijackersChoose "Custom" install and untick extras
USB drivesWorms, trojansScan before opening files
Unpatched softwareExploits, ransomwareKeep Windows and apps updated

How to close the doors on Windows 10 and 11

  1. Keep Windows updated. Open Settings > Windows Update (Windows 11) or Settings > Update & Security > Windows Update (Windows 10) and install everything offered, including optional security fixes for your browser and Office.
  2. Turn on reputation-based protection. Go to Settings > Privacy & security > Windows Security > App & browser control > Reputation-based protection settings and make sure SmartScreen and "Potentially unwanted app blocking" are on.
  3. Show file extensions. In File Explorer on Windows 11 choose View > Show > File name extensions; on Windows 10 tick File name extensions on the View tab. This lets you spot a "PDF" that is really an .exe. See double-extension files.
  4. Use a standard account for everyday work where practical, so that programs need your permission before they can change the system.
  5. Review your browser extensions every few months and remove any you do not recognise.
  6. Back up important files to an external drive you disconnect afterwards, or to a cloud service with version history. Backups are your safety net if something does get through.
Remember: no single tool stops everything. Updates, careful habits, a good malware scanner and backups together give far better protection than any one of them alone.

If you think something already got in

Common signs include new programs you did not install, a browser home page that keeps changing, a fan running hard while the PC is idle, or unfamiliar entries in Task Manager > Startup apps. Run a full malware scan, such as a Threat Eraser Full Scan, and if you suspect something deeply hidden, run a Microsoft Defender Offline scan from Windows Security > Virus & threat protection > Scan options. For a fuller checklist, read how to tell if your computer has a virus.

How Threat Eraser helps

Threat Eraser is a complete virus, malware and trojan scanner and remover. Its Quick Scan checks exactly the places that the routes above tend to drop files: Downloads, Desktop, Documents, temporary folders, Startup folders and AppData. It updates its definitions automatically each time it starts, using virus signatures and malware detection rules, and it also looks inside ZIP archives and flags suspicious file names such as invoice.pdf.exe. Files are scanned on your PC and never uploaded.

Run a Quick Scan straight away and see what it finds. With a license you can quarantine and erase detections, schedule daily or weekly scans, and turn on Real-Time Watch, which automatically scans new files as they land in Downloads, Desktop, Documents and any folders you add, so a bad download is caught a moment after it arrives.

Find out more about the Threat Eraser malware scanner.

Frequently asked questions

Can you get malware just by visiting a website?

It is uncommon on a fully updated PC, but out-of-date browsers and plug-ins can be exploited. Most website infections still rely on you downloading or running something.

Can malware come from a trusted friend?

Yes. If their email account or computer is compromised, messages and files can come from them without their knowledge, so verify unexpected attachments.

Does a Mac or phone protect my Windows PC?

No. Each device needs its own protection, and files shared from another device can still carry Windows malware.

Get three guides like this every month, plus software update notices.Subscribe →