sodcalculator

10 Tech How-To

How Malware Attacks and Spreads on Your Computer

Guide 10-53822 · Updated · Step by step

Malware—short for malicious software—is any program designed to damage, disrupt, or gain unauthorized access to your computer. Understanding how malware gets in and spreads is the first step to preventing infections. This guide breaks down the common attack vectors and propagation methods, and gives you practical steps to protect your system.

What You’ll Need

  • A computer running Windows, macOS, or Linux
  • Administrator access to install security software (if you choose to)
  • Basic familiarity with your operating system’s settings

Step-by-Step

  1. Recognize common delivery methods. Malware typically arrives via phishing emails (with malicious attachments or links), drive-by downloads from compromised websites, fake software updates, infected USB drives, or bundled with pirated software. Be wary of unsolicited emails, especially those urging urgent action.
  2. Understand how malware executes. Once the malicious file is on your system, it needs to run. This can happen when you open an attachment, click a link that triggers a download, or visit a site that exploits a browser vulnerability. Some malware requires user interaction; others exploit unpatched software flaws automatically.
  3. Learn how malware spreads within a network. After initial infection, malware often tries to move laterally. It may scan for open network shares, exploit weak passwords (e.g., using brute force), or abuse legitimate tools like PowerShell or Windows Management Instrumentation (WMI) to execute commands on other machines.
  4. Identify propagation via removable media. Many worms and trojans copy themselves to USB drives or external hard drives. When you plug that drive into another computer, the malware may autorun or trick you into double-clicking a disguised file.
  5. Recognize signs of infection. Symptoms include sudden slowdowns, unexpected pop-ups, new toolbars, changed browser homepage, disabled antivirus, or unusual network activity. Early detection limits spread.
  6. Isolate and contain. If you suspect infection, disconnect from the internet and your local network immediately. This stops data exfiltration and prevents the malware from reaching other devices.
  7. Remove the malware. Boot into Safe Mode (Windows) or Recovery Mode (macOS) and run a full antivirus scan. For stubborn infections, use a dedicated removal tool or consider a clean OS reinstall.
  8. Prevent future infections. Keep your OS and software updated, use a reputable antivirus, enable a firewall, use strong unique passwords, and back up important files regularly.

Common Mistakes

  • Clicking links or opening attachments without verifying the sender—even if it looks legitimate.
  • Ignoring software update prompts. Many malware strains exploit known vulnerabilities that patches fix.
  • Using the same password across multiple accounts, making lateral movement easier.
  • Disabling your firewall or antivirus because they cause minor inconvenience.
  • Assuming macOS or Linux are immune. They are less targeted but still vulnerable.

Tips

  • Use a standard (non-admin) account for daily tasks. Admin rights give malware more power.
  • Enable multi-factor authentication (MFA) on critical accounts to limit credential theft.
  • Disable autorun for removable media in your OS settings.
  • Regularly review your network for unknown devices—many routers have a client list.
  • Use a DNS filter (like OpenDNS) to block known malicious domains.

Troubleshooting

If your system is already infected and you’re trying to clean it:

  • Antivirus won’t run or update: Malware often kills security software. Use a portable scanner from a USB drive (e.g., Microsoft Defender Offline) or boot into Safe Mode with Networking.
  • Files are encrypted (ransomware): Do not pay. Restore from backup if you have one. Some decryption tools exist for specific strains—search reputable sources like No More Ransom.
  • Malware returns after removal: It may have hidden in system restore points or firmware. Disable System Restore, then re-scan. If it persists, consider a full reinstall.
  • Browser redirects continue: Check for malicious browser extensions or proxy settings. Reset your browser to default.
  • Can’t boot at all: Use a rescue disk (like Kaspersky Rescue Disk) to scan before the OS loads.

Frequently Asked Questions

Can malware spread through Wi-Fi?

Yes, if the router is compromised or if the malware can exploit weak router credentials. Change your router’s default password and keep its firmware updated.

Can a PDF or image contain malware?

Yes. PDFs can contain embedded scripts or exploits, and images can exploit vulnerabilities in image viewers. Keep your PDF reader and OS updated.

Is it safe to open email attachments from friends?

Not always. Friends’ accounts can be compromised. If an attachment seems unexpected or suspicious, verify with the sender via another channel.

How do I know if my computer is part of a botnet?

Signs include high CPU usage, unusual outbound network traffic, or your ISP complaining about spam. Use a network monitoring tool like Wireshark to inspect traffic.

Can malware survive a factory reset?

Most malware does not, but some advanced threats can reside in firmware (e.g., UEFI rootkits). A factory reset usually clears the OS drive, but not firmware. Check your manufacturer’s instructions for firmware reset.

Should I pay the ransom if I get ransomware?

No. Paying does not guarantee you’ll get your files back and funds criminal activity. Restore from backups or use decryption tools if available.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →