TechBuzzPro

Stop Malware Spreading on Your Network

· 6 min read · Security & Privacy

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To stop malware from spreading across a home or office network, you must immediately isolate the infected device, disconnect shared storage, and then scan and clean every connected system. The longer an infected machine stays online, the more chances the malware has to move laterally to other computers, phones, or network drives. This guide walks you through the exact order of actions to contain an outbreak and remove the threat.

What You'll Need

  • Administrator access to your router (to change Wi-Fi password or enable guest network)
  • Administrator credentials for each computer on the network
  • A second, known-clean device (like a phone or laptop) to download antivirus tools and updates
  • External USB drive or cloud storage for backing up critical files (only if needed)
  • Antivirus or anti-malware software (Windows Defender, Malwarebytes, or similar)

Step-by-Step

  1. Disconnect the infected device from the network immediately. Unplug the Ethernet cable or turn off Wi-Fi on that device. If you don't know which device is infected, unplug all non-essential devices and add them back one by one.
  2. Change the Wi-Fi password and disable WPS. Log into your router's admin page (usually via a browser at an IP like 192.168.1.1 or 192.168.0.1 — check your router's label). Change the Wi-Fi password to a strong, unique one. This forces all devices to reconnect, and if malware has stolen credentials, it won't be able to rejoin automatically. Also disable WPS (Wi-Fi Protected Setup) if it's on, as it can be a security hole.
  3. Enable the guest network (if available). On your router, turn on the guest network feature. Connect only the infected device to the guest network temporarily. This keeps it isolated from your main network while you clean it, but still gives it internet access for downloading updates and antivirus tools.
  4. Disconnect shared folders and network drives. On the infected device, if it's still accessible, right-click any shared folders and select "Stop sharing." Also disconnect any mapped network drives (in Windows, open File Explorer, right-click the mapped drive, and select "Disconnect"). On other computers, disconnect from any network shares you may have mounted.
  5. Run a full antivirus scan on the infected device. Use the built-in Windows Defender (Windows Security) or a reputable third-party tool like Malwarebytes. Update the virus definitions first, then run a full scan. If the device is too compromised to run a scan, boot into Safe Mode with Networking (press Shift while clicking Restart, then choose Troubleshoot > Advanced Options > Startup Settings > Restart, then press 5) and run the scan from there.
  6. Remove the malware and quarantine threats. Follow the antivirus prompts to quarantine or delete detected threats. If the scan finds nothing but you still suspect infection, try a second opinion scanner like Malwarebytes AdwCleaner or HitmanPro.
  7. Update all software and operating systems. On every device on the network, install the latest security patches for Windows, macOS, iOS, Android, and any apps. Outdated software is a common entry point for malware.
  8. Change all passwords. After cleaning, change passwords for email, banking, social media, and any other accounts you use. Do this from a known-clean device, not the infected one, in case a keylogger was present. Also change the router admin password.
  9. Reconnect devices one by one. After the infected device is clean, reconnect it to the main network. Then reconnect other devices that were unplugged. Watch for any unusual behavior like slow network, pop-ups, or files being encrypted.
  10. Monitor network traffic. For a few days, check your router's admin page for connected devices. If you see unknown devices, change the Wi-Fi password again and investigate. You can also use a free tool like Wireshark (if you're comfortable) to look for suspicious traffic.

Common Mistakes

  • Only scanning the infected device. Malware may have already spread to other devices. Scan every computer and phone on the network.
  • Not changing passwords. If malware stole credentials, changing passwords after cleaning is essential. Do it from a clean device.
  • Reconnecting the infected device before cleaning. This gives the malware another chance to spread.
  • Ignoring the router. Malware can sometimes infect routers or change their settings. Resetting the router to factory defaults (and then reconfiguring it) is a safe step if you suspect this.
  • Forgetting about smart devices. IoT devices like smart TVs, cameras, and thermostats can also carry malware and spread it. Include them in your scans or at least reboot them.

Tips

  • Keep all devices updated automatically. Turn on automatic updates for Windows, macOS, and your antivirus.
  • Use a network firewall. Most routers have a built-in firewall; make sure it's enabled.
  • Disable file sharing and network discovery on devices that don't need it.
  • Use strong, unique passwords for every account and enable two-factor authentication (2FA) where possible.
  • Back up important files regularly to an external drive or cloud service. Store backups offline when possible.
  • Consider using a network segmentation approach: put IoT devices on a separate VLAN or guest network.

Troubleshooting

If the antivirus won't install or run: Try downloading the installer on a clean device and transferring it via USB. Or run the scan in Safe Mode with Networking.

If the malware keeps coming back: This could indicate a rootkit or a persistent infection. Use a dedicated rootkit removal tool (like Malwarebytes Anti-Rootkit) or consider a factory reset of the device. A factory reset will erase all data, so back up first if possible.

If the router settings are locked or changed: Perform a factory reset on the router (usually a small pinhole button on the back). Then reconfigure it with a new admin password and Wi-Fi password.

If you can't identify the infected device: Disconnect all devices, then reconnect them one at a time while monitoring network activity. Use your router's admin page to see which device is consuming unusual bandwidth or connecting to suspicious IPs.

Frequently Asked Questions

Can malware spread through Wi-Fi?

Yes, malware can spread over Wi-Fi if it exploits vulnerabilities in other devices or uses shared network resources. Isolating the infected device and changing the Wi-Fi password helps stop this.

Do I need to factory reset my computer?

Only if the malware is persistent and cannot be removed by antivirus tools. A factory reset will erase everything, so back up your files first, but be aware that backups could also be infected.

Should I disconnect all devices from the network?

Yes, if you suspect an active outbreak. Disconnect everything except the device you're using to clean up. This prevents lateral movement.

Can malware spread to my phone?

Yes, especially if your phone is on the same network and has vulnerabilities. Scan your phone with a reputable mobile security app and keep its OS updated.

How do I know if my router is infected?

Signs include slow internet, unknown devices on your network, or being redirected to strange websites. If you suspect it, reset the router to factory defaults and update its firmware.

Is it safe to use the same USB drive on both infected and clean computers?

No. A USB drive can carry malware. Use a different drive for each, or format the drive after using it on an infected computer.