This guide walks you through spotting a computer worm on a single machine and eradicating it before it spreads across your network. You’ll learn the signs of an infection, how to isolate the affected device, and the exact steps to clean it using built-in tools and safe practices.
What You’ll Need
- A Windows, macOS, or Linux computer that you suspect is infected
- Administrator or root access to that computer
- An external USB drive or another computer to download tools (if the infected machine cannot access the internet safely)
- A current, reputable antivirus or anti-malware program (Windows Defender is built into Windows 10/11)
- Patience and a backup of important files (ideally made before infection, but if not, proceed carefully)
Step-by-Step
- Disconnect from the network immediately. Unplug the Ethernet cable or turn off Wi-Fi. This is the single most important step—it stops the worm from spreading to other devices and prevents it from receiving commands from a remote attacker.
- Identify the symptoms. Look for these common signs: unusually slow performance, frequent crashes, strange pop-up messages, files being renamed or deleted, unknown processes running in Task Manager (Windows) or Activity Monitor (macOS), and high network activity when you’re not using the internet. If you see several of these, treat the machine as infected.
- Boot into Safe Mode with Networking (or Safe Mode). This loads only essential drivers and services, which often prevents the worm from starting automatically.
- Windows: Restart your PC. As it boots, press F8 (or Shift + Restart in Windows 10/11) and choose Safe Mode with Networking from the Advanced Boot Options.
- macOS: Restart and hold the Shift key until the login window appears. Release Shift, then log in.
- Linux: At the GRUB menu, select Advanced options and choose a kernel with (recovery mode), then select root to get a command prompt.
- Run a full antivirus scan. Once in Safe Mode, open your antivirus software (e.g., Windows Defender) and run a full system scan. Do not run a quick scan—a worm can hide in system files that a quick scan skips. Let the scan complete; it may take an hour or more.
- Quarantine or delete the detected threats. When the scan finds malware, choose Quarantine first if available. Quarantine isolates the file so it can’t run. If the antivirus offers a choice between quarantine and delete, quarantine is safer because you can review it later. If the scan doesn’t find anything, proceed to the next step.
- Use a second-opinion scanner. If your primary antivirus finds nothing or you want extra assurance, download and run a reputable on-demand scanner like Malwarebytes (free version) or a bootable rescue disk from another computer. A rescue disk scans the hard drive before the operating system loads, catching worms that hide in boot sectors.
- Manually check for suspicious processes and startup entries. Even after scans, a worm may leave remnants. Open Task Manager (Ctrl+Shift+Esc on Windows) or Activity Monitor (macOS) and look for processes with odd names, high CPU/disk usage, or unknown publishers. On Windows, also check Startup Apps (in Task Manager) and disable anything you don’t recognize. On macOS, check System Preferences > Users & Groups > Login Items.
- Update your operating system and all software. After cleaning, reconnect to the internet (or use a USB drive to download updates) and install all pending OS updates and patches for browsers, Java, Adobe, and any other software. Worms often exploit known vulnerabilities that updates fix.
- Change all passwords. Worms can capture keystrokes or steal saved credentials. After cleaning, change passwords for your email, banking, social media, and any other accounts you use on that machine. Do this from a different, known-clean device if possible.
- Monitor network traffic. For the next few days, watch your network for unusual activity. On your router’s admin page (usually 192.168.1.1 or 192.168.0.1), check the connected devices list and look for unknown devices. If you see suspicious traffic, isolate the device again and repeat the scan.
Common Mistakes
- Not disconnecting from the network first. Running a scan while still connected allows the worm to keep spreading and may trigger it to encrypt or delete files.
- Only running a quick scan. A quick scan misses worms in system restore points, hibernation files, or deep folders. Always do a full scan.
- Ignoring the “second opinion.” No single antivirus catches everything. A second scanner often finds what the first missed.
- Reconnecting before cleaning is complete. If you plug back into the network before the worm is gone, it will simply re-infect itself and spread again.
- Not updating software after cleaning. If you don’t patch the vulnerability, the worm can come back the same way.
Tips
- Backup regularly. If you have a clean backup of your files, you can restore after cleaning without losing data. Store backups offline or in the cloud, not on the same network.
- Use a firewall. Enable the built-in firewall on your OS and your router. This blocks many worm connections.
- Disable AutoRun. On Windows, use Group Policy or the registry to disable AutoRun for removable drives—worms often spread via USB.
- Keep a clean bootable USB. Have a rescue disk (like a bootable antivirus USB) ready before you need it.
- Segment your network. Put IoT devices and guest devices on a separate VLAN or guest network so a worm can’t easily jump to your main computers.
Troubleshooting
- Antivirus scan keeps crashing or freezing. This can happen if the worm is actively interfering. Boot into Safe Mode (without networking) and try again. If it still crashes, use a bootable rescue disk from a USB drive.
- Worm reappears after cleaning. The worm may be hiding in system restore points or in the boot sector. Disable System Restore (Windows) temporarily, then re-run the scan. Also, check if your router’s firmware is compromised—reset the router to factory settings and update its firmware.
- You can’t boot into Safe Mode. On Windows, try using the installation media to access Repair your computer > Troubleshoot > Startup Settings and then restart to choose Safe Mode. On macOS, reset NVRAM (Command+Option+P+R) and try again.
- You suspect the worm has stolen sensitive data. After cleaning, contact your bank, credit card companies, or IT department if this is a work device. Change all passwords and enable two-factor authentication where possible.
- No antivirus finds anything, but you still see symptoms. The worm might be a rootkit that hides from the OS. Use a bootable anti-rootkit tool (like Kaspersky TDSSKiller) or consider a full OS reinstall as a last resort.
Frequently Asked Questions
What is the difference between a worm and a virus?
A virus attaches itself to a file and requires human action (like opening the file) to spread. A worm is standalone and spreads automatically across networks by exploiting vulnerabilities, without any user interaction.
Can a worm spread through Wi-Fi?
Yes. Worms can spread through any network connection, including Wi-Fi, as long as the device is connected to the same network and has an unpatched vulnerability.
Will reinstalling the operating system remove a worm?
Yes, a full reinstall (formatting the hard drive and reinstalling the OS) will remove the worm, but you must ensure you don’t restore infected files from backups. Reinstall is the most thorough solution but should be a last resort.
Can a worm hide in a USB drive?
Yes, worms can copy themselves to USB drives and use AutoRun to execute when plugged into another computer. Always scan USB drives before opening them.
Is it safe to pay a ransom if the worm is ransomware?
No. Paying a ransom does not guarantee you’ll get your files back, and it funds the attackers. Instead, restore from backups if you have them, and report the incident to law enforcement.
How often should I run a full antivirus scan?
At least once a week. Real-time protection catches most threats, but a full scan catches dormant or hidden malware. Schedule it for a time when you’re not using the computer.
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
- Fix Wi-Fi Keeps Disconnecting in Windows 11
- Fix Samsung Galaxy J7 Bad Battery Life: Step-by-Step
- How to Use Siri Offline in iOS 15
- How to AirDrop Apps from iPhone to iPhone
- Fix Keyboard Not Working After Sleep Mode on Windows
- Show, Hide & Customize Edge Favorites Bar