sodcalculator

10 Tech How-To

Remove Malware From Your Computer: Step-by-Step

Guide 10-8034 · Updated · Step by step

To get rid of malware on your computer, disconnect from the internet, boot into Safe Mode, and run a full system scan with a reputable antivirus or anti-malware tool, then remove any detected threats and restore your browser and system settings. If the infection is severe, you may need to use a rescue disk or reinstall your operating system. This guide walks you through each step, explains how malware works, and answers common questions about the removal process.

What Is Malware and How Does It Get In?

Malware is any software intentionally designed to cause damage, steal data, or gain unauthorized access to a computer. Common types include viruses, worms, trojans, ransomware, spyware, adware, and rootkits. Each behaves differently: a virus attaches itself to files, a worm spreads across networks, a trojan disguises itself as legitimate software, and ransomware encrypts your files and demands payment.

Malware typically enters through phishing emails, malicious downloads, infected USB drives, compromised websites, or vulnerabilities in outdated software. For example, clicking a link in an email that appears to be from your bank might download a trojan, or visiting a compromised website could trigger a drive-by download without you clicking anything. Knowing these entry points helps you avoid future infections.

Signs Your Computer Is Infected

Recognizing an infection early can limit damage. Common symptoms include:

  • Sudden slowdowns or frequent crashes
  • Unwanted pop-up ads or new toolbars in your browser
  • Browser homepage or search engine changed without your consent
  • Unexplained data usage or network activity
  • Files being encrypted or renamed (ransomware)
  • Programs starting on their own
  • Antivirus software disabled or unable to run

Not all slowdowns mean malware—hardware issues or too many background processes can cause similar symptoms. But if you notice several of these signs together, it’s worth running a scan.

Before You Start: Backup and Preparation

Before removing malware, protect your personal files. Copy important documents, photos, and other data to an external drive or cloud storage. However, avoid backing up executable files (like .exe) or anything you suspect might be infected, as you could re-infect your computer. Also, write down any passwords you might need, because some malware disables keyboard input or locks you out.

If you have another device, use it to download removal tools and create a rescue disk if needed. This is especially useful for ransomware or rootkits that prevent normal operation.

Step-by-Step Malware Removal

Follow these steps in order. If one step doesn’t work, move to the next.

  1. Disconnect from the internet. Unplug the Ethernet cable or turn off Wi-Fi. This stops malware from communicating with its command server, downloading more payloads, or spreading to other devices.
  2. Boot into Safe Mode. Restart your computer and press F8 (Windows) or hold Shift while clicking Restart (Windows 10/11) to access Advanced Startup Options. On a Mac, restart and hold the Shift key. Safe Mode loads only essential drivers, preventing many malware programs from running, which makes them easier to remove.
  3. Open your antivirus or anti-malware software. If you don’t have one, use Windows Defender (built into Windows 10/11) or download a reputable free tool like Malwarebytes on another device and transfer it via USB. Run a full system scan, not just a quick scan. This can take hours but is thorough.
  4. Quarantine or delete detected threats. Most antivirus programs will ask what to do with infected files. Choose “Quarantine” first—it isolates the file so it can’t cause harm but allows you to restore it if it’s a false positive. If you’re sure it’s malware, delete it.
  5. Run a second opinion scanner. No single tool catches everything. After your primary scan, run a different anti-malware tool (e.g., Malwarebytes if you used Windows Defender first) to catch anything missed.
  6. Check browser settings. Reset your browser to its default settings. This removes malicious extensions, hijacked homepages, and altered search engines. In Chrome, go to Settings > Reset and clean up; in Firefox, Help > More Troubleshooting Information > Refresh Firefox; in Edge, Settings > Reset settings.
  7. Update your operating system and software. After cleaning, install all pending updates. Patches fix vulnerabilities that malware exploits.
  8. Restore from backup if necessary. If files were encrypted by ransomware or deleted, restore them from your backup. If you don’t have a backup, some ransomware decryption tools exist, but they’re not guaranteed to work.

What to Do If Malware Won’t Go Away

Some malware is stubborn—rootkits hide deep in the system, and bootkits infect the master boot record. If standard scans fail, try these advanced methods:

  • Use a rescue disk. Create a bootable USB or CD with a rescue tool (like Kaspersky Rescue Disk or Microsoft Defender Offline). Boot from it to scan your hard drive outside the operating system, where malware can’t hide.
  • Check startup programs. Open Task Manager (Ctrl+Shift+Esc) and look for suspicious entries under the Startup tab. Disable anything you don’t recognize, then restart and scan again.
  • Use System Restore. If you have a restore point from before the infection, you can roll back your system. This doesn’t always remove malware, but it can undo registry changes.
  • Reinstall Windows or macOS. The most reliable method is a clean install. Back up your files, create installation media, and reinstall the OS. This wipes everything, including malware. For Windows, use the “Reset this PC” feature; for Mac, use Recovery Mode to reinstall macOS.

If you’re not comfortable with these steps, a professional technician can help, especially if you have important data at risk.

Preventing Future Infections

Removal is only half the battle—prevention is key. Follow these habits to reduce your risk:

  • Keep your OS, browser, and software updated.
  • Use a reputable antivirus and keep it enabled.
  • Don’t click links or open attachments in unsolicited emails.
  • Download software only from official websites or app stores.
  • Avoid pirated software and keygens—they’re a common malware vector.
  • Use a pop-up blocker and consider ad-blocking extensions.
  • Be cautious with USB drives from others.
  • Use strong, unique passwords and enable two-factor authentication.

Regularly back up your files so that even if you’re hit with ransomware, you can restore without paying.

Frequently Asked Questions

Can malware survive a factory reset?

Usually no, because a factory reset wipes the hard drive and reinstalls the OS. However, if the malware is in the firmware (like a UEFI rootkit), it can survive. These are rare and typically used for targeted attacks. If you suspect one, use a hardware-level wipe and reflash the BIOS, but that’s complex and often unnecessary.

Is it safe to pay the ransom in a ransomware attack?

Security experts strongly advise against paying. There’s no guarantee you’ll get your files back, and it funds criminal activity. Instead, try free decryption tools from No More Ransom, or restore from backup. If the data is critical and you have no backup, a professional data recovery service might help, but it’s not guaranteed.

How do I know if my computer has a virus if I don’t have antivirus software?

Look for the signs listed above. Windows has built-in Defender that runs automatically, but if you disabled it or use a third-party tool, run a scan with Malwarebytes free version. You can also check Task Manager for unknown processes and your browser for unexpected extensions.

Can malware infect my phone or tablet?

Yes, though less commonly than PCs. Android is more vulnerable due to side-loading apps, while iOS is more locked down. Symptoms include battery drain, pop-ups, and data usage. Use official app stores, keep your OS updated, and avoid jailbreaking/rooting. For removal, boot into safe mode and uninstall suspicious apps.

What’s the difference between a virus, a trojan, and a worm?

A virus attaches to a file and spreads when you run it. A trojan disguises itself as legitimate software but performs malicious actions. A worm spreads across networks without user interaction. All are malware, but they behave differently, which affects removal—worms can spread fast, trojans often need to be run, and viruses attach to files.

Should I use more than one antivirus program?

Running two real-time antivirus programs simultaneously can cause conflicts and slowdowns. Instead, use one primary antivirus with real-time protection, and keep a second on-demand scanner (like Malwarebytes) for periodic manual scans. This gives you a second opinion without conflicts.

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 →