Malware Spreading? Which Devices to Disconnect First
In this article
When malware is spreading, disconnect the infected device from all networks first—unplug the Ethernet cable and turn off Wi‑Fi—then disconnect any shared storage and other devices that could act as a bridge, such as external drives, NAS boxes, and other computers on the same network. The goal is to stop lateral movement without destroying evidence or locking yourself out of recovery options. Before you start, note that menu labels and settings names can differ slightly by operating system version, device model, and region.
What You'll Need
- The device you suspect is infected, plus any devices that share files or storage with it.
- Physical access to routers, switches, and cables if you need to isolate a whole network segment.
- A second, clean device (phone or another computer) to look up official removal instructions.
- A note-taking method (paper is fine) to record what you disconnect and when.
- Your router's admin login if you plan to disable Wi‑Fi or block a device at the router.
Step-by-Step
- Disconnect the suspected infected device from the network first. On a laptop or desktop, unplug the Ethernet cable and turn off Wi‑Fi (on Windows, use the network icon in the taskbar; on macOS, use the Wi‑Fi menu in the menu bar). On a phone or tablet, turn on Airplane Mode and then turn off Wi‑Fi and Bluetooth separately, because Airplane Mode alone may not disable all radios on every model. Do not power off the device yet—you may need it to run scans or collect logs.
- Disconnect shared storage and removable media. Unplug USB flash drives, external hard drives, and memory cards from the infected device. If you have a NAS or a shared folder on another computer, disconnect the infected device from that share (on Windows, right‑click the mapped drive and choose Disconnect; on macOS, eject it in Finder). This prevents the malware from encrypting or copying itself to backups.
- Isolate other devices that were on the same network. If the malware is a worm or ransomware that spreads over the local network, disconnect other computers, printers, and smart devices from Wi‑Fi or Ethernet. The safest order is: infected device first, then any device that holds important data, then the rest. You can also log in to your router's admin page and temporarily disable Wi‑Fi or block the infected device's MAC address, but only if you are comfortable doing so—otherwise physical disconnection is simpler and safer.
- Keep the router and modem connected only if you need internet for cleanup tools. If you must download removal tools, use a clean device to download them, then transfer via a USB drive that you will scan afterward. Do not reconnect the infected device to the internet until it has been scanned and cleaned.
- Disconnect Bluetooth and nearby wireless accessories. Turn off Bluetooth on the infected device and on any device that pairs with it. Some malware spreads through Bluetooth or through shared folders on paired devices. Also disconnect any smart home hubs or phones that sync files with the infected computer.
- Document what you disconnected. Write down each device, the time, and whether it was wired or wireless. This helps you reconnect in a safe order and helps a technician if you need professional help.
- Scan the infected device offline. Use a reputable security tool from a clean USB drive or the device's built‑in security software. If the device will not boot normally, use the manufacturer's recovery environment or a rescue disk from a trusted vendor. Do not use cracked or unofficial tools.
- Reconnect devices one at a time after cleaning. Start with the infected device, confirm it is clean with a full scan, then reconnect shared storage and other devices. Reconnect to the network last, and monitor for unusual activity for a few days.
Common Mistakes
- Powering off the infected device immediately. This can destroy volatile evidence and may trigger encryption or lockout on some ransomware. Disconnect the network first, then decide whether to shut down.
- Leaving shared drives connected. Ransomware often encrypts mapped drives and NAS folders first. Unplug or unmount them before scanning.
- Reconnecting too early. Plugging the device back into the network before a full scan can reinfect it or spread the malware further.
- Forgetting Bluetooth and smart devices. Phones, tablets, and smart home hubs can sync files or provide another path for malware.
- Disconnecting the router entirely and losing remote help. If you need vendor support, keep a clean phone on cellular data so you can still reach help pages.
Tips
- Use a wired connection for the clean device if possible; it is easier to control than Wi‑Fi.
- Label cables and ports before unplugging so you can reconnect correctly.
- If you are unsure which device is infected, disconnect the one showing symptoms first (slowdowns, pop‑ups, unusual network activity), then isolate others.
- Keep a written list of device names and MAC addresses; this speeds up router‑level blocking if needed.
- After cleanup, change passwords for important accounts from a clean device, especially email and banking.
Troubleshooting
If the device reconnects to Wi‑Fi automatically, forget the network in the device's Wi‑Fi settings before scanning. If you cannot access the router admin page, physically unplug the router's WAN cable or power it off briefly—but note that this disconnects everyone, including your clean phone if it uses Wi‑Fi. If a shared folder keeps reappearing, check startup items and scheduled tasks on the infected device and remove anything unfamiliar. If the malware returns after cleaning, the device may need a factory reset or professional repair; back up important files to a clean, scanned drive first, and warn that a factory reset erases all data on the device.
Frequently Asked Questions
Should I disconnect the infected device or the router first?
Disconnect the infected device first. That stops it from spreading malware while keeping the rest of the network available for cleanup tools and help pages.
Do I need to disconnect my phone if my computer has malware?
Yes, if your phone syncs files, shares a cloud account, or pairs over Bluetooth with the infected computer. Turn off Bluetooth and sign out of shared sync accounts on the phone until the computer is cleaned.
Can malware spread through a USB drive?
Yes. Unplug removable drives from the infected device and scan them on a clean computer before using them again. Do not plug an unscanned drive into other devices.
Is it safe to turn off Wi‑Fi instead of unplugging Ethernet?
Turning off Wi‑Fi helps, but if an Ethernet cable is connected, the device is still on the network. Unplug the cable for a complete disconnect.
What if I cannot disconnect a smart TV or console?
Unplug its network cable or turn off its Wi‑Fi in the device's settings. If that is not possible, disable its connection at the router by blocking its MAC address or turning off the router's Wi‑Fi temporarily.
How long should devices stay disconnected?
Until the infected device has been fully scanned and cleaned, and you have confirmed no unusual activity for at least a day. Reconnect one device at a time and watch for symptoms.