To remove botnet malware, disconnect the device from the network, do not log in with admin accounts, run a full antivirus scan and then a Microsoft Defender Offline scan, and reimage the machine if it is a business device or the infection persists. After cleanup, reset every password used on the device, revoke sessions, patch the system, and factory-reset any infected router before reconnecting it.
Key takeaways
- Isolate first: disconnect the device before you scan, so the botnet cannot spread or download more malware.
- A scan alone is not enough for persistent botnets — reimage business machines and factory-reset infected routers.
- Reset passwords and revoke sessions from a clean device after cleanup, because botnets steal credentials.
A botnet is a network of infected computers, phones and routers controlled by one operator. Your device may look normal while it quietly sends spam, mines cryptocurrency, attacks other systems or steals your passwords. Removing it takes more than one quick scan.
What is botnet malware?
Botnet malware infects a device and connects it to a command-and-control server, so an attacker can send it instructions. The infected device is called a bot, and thousands of bots together form a botnet.
Botnets are rented out for spam, distributed denial-of-service (DDoS) attacks, credential stuffing, click fraud and cryptomining. Some, such as Emotet and TrickBot, also download ransomware. Others target routers and Internet of Things devices, as CISA described in its advisory on Cyclops Blink, the successor to VPNFilter, which infected small-office routers and network storage devices.
The FBI-led disruption of QakBot in 2023 showed the scale: that botnet had infected more than 700,000 computers worldwide before law enforcement seized its infrastructure. A single home PC can be one of hundreds of thousands.
How do I know if my device is part of a botnet?
Look for a cluster of symptoms rather than one clue: unexplained slowness, high network traffic at idle, antivirus switching itself off, new programs or browser extensions, and contacts receiving spam from your accounts.
- Performance: the fan runs hard, the CPU is busy at idle, or the battery drains fast.
- Network: your router lights flash constantly, data use jumps, or your internet slows at odd hours.
- Security tools: antivirus will not open, updates fail, or Windows Security reports it is managed by another app.
- Accounts: password-reset emails you did not request, logins from new locations, or sent mail you did not write.
- Browser: new toolbars, a changed home page, or pop-ups on sites that never had them.
Check your router's admin page for unknown connected devices and check your email account's recent activity. If several signs appear together, treat the device as infected and start with isolation, not with a casual scan while still online.
Step 1: Isolate the infected device
Disconnect the device from Wi-Fi and Ethernet immediately, but leave it powered on if you may need evidence. Isolation stops the botnet spreading to other devices and blocks it downloading more malware.
Do not log in with a domain administrator or shared local administrator account on the infected machine. CISA's Emotet guidance warns that using privileged accounts on a compromised machine can accelerate malware spread. Use a clean device for password changes and research instead.
For a business, tell your IT or security team now, before you start cleaning. They may want logs, a disk image or network captures preserved. If money has moved or data was stolen, note the times and keep screenshots for your report to the FBI Internet Crime Complaint Center.
Step 2: Scan with antivirus, then run an offline scan
Update your antivirus definitions from a clean network if possible, then run a full scan — not a quick scan. Quarantine everything it flags and note the malware family names it reports.
Next, run an offline scan, which restarts the PC into a clean environment outside Windows. Microsoft Defender Offline scans from outside the normal Windows kernel, so it can catch rootkits that hide while Windows is running.
In Windows Security, go to Virus & threat protection, then Scan options, then Microsoft Defender Offline scan, then Scan now. Save your work first: the PC restarts and the scan takes about 15 minutes.
On a Mac, run a full scan with your installed security software and check System Settings for unknown login items and profiles. On Android, use Play Protect and uninstall apps you do not recognize; on iPhone, update iOS and remove unknown configuration profiles.
Step 3: Reimage when a scan is not enough
For a business computer, or any machine where the infection keeps returning, the safest removal is a full wipe and reinstall. Botnets such as Emotet and TrickBot install additional malware and steal credentials, so a "clean" scan result does not prove the machine is safe.
Back up only documents and photos — not programs, installers or system files — and scan the backup on a clean machine before restoring it. Then reinstall the operating system from trusted media, install all updates, and reinstall applications from their official sources.
After reimaging, check whether the attacker moved to other systems. Look at domain controllers, shared drives and other devices on the same network, and review email mailbox rules for the affected user: botnets often add forwarding rules that send copies of mail to the attacker.
How do I remove botnet malware from a router?
Router botnets are different, because a reboot rarely removes them. CISA notes that Cyclops Blink persists on reboot and throughout legitimate firmware updates, so affected devices need vendor-specific removal steps.
- Disconnect the router from the internet and note its model, hardware revision and firmware version.
- Factory reset using the maker's hardware reset procedure for that exact model.
- Update firmware to the current official release, downloaded on a clean device.
- Change credentials — set a strong, unique admin password and a new Wi-Fi password.
- Close remote management and disable UPnP and Telnet unless you genuinely need them.
- Reconnect devices one at a time and watch for reinfection.
If the router is end-of-life and no longer receives security updates, replace it. A factory reset cannot restore patches the maker has stopped shipping, and the device will be reinfected. Our guide to how to secure your Wi-Fi covers the settings to check after the reset.
Step 4: Reset passwords and revoke sessions
Assume every password typed or saved on the infected device is compromised. Change them from a clean device, starting with email, banking, cloud storage and work accounts.
Resetting a password alone is not enough: a stolen session cookie can keep an attacker logged in. Sign out of all sessions where the service offers it, revoke app passwords and API tokens, and remove unknown devices from your account security pages. Then turn on multi-factor authentication, preferably passkeys or a security key.
Check whether any of your passwords already appear in known breaches with our pwned password checker. Never reuse the old passwords, and never store the new ones in a browser on a machine you have not yet cleaned.
Generate fresh, unique passwords with the password generator, one per account, and store them in a password manager on a clean device.
Removal method by device type
Different devices need different cleanup. A memory-only IoT infection clears on reboot, while a Windows rootkit needs an offline scan or a rebuild.
| Device | First step | When to rebuild or replace | After cleanup |
|---|---|---|---|
| Windows PC | Isolate, full scan, Defender Offline scan | Business PC, or infection returns | Reset passwords, revoke sessions, patch |
| Mac | Full security scan, remove login items | Unknown profiles or persistent malware | Reset Apple ID password, check devices |
| Router / NAS | Disconnect, factory reset, firmware update | End-of-life, or reinfection after reset | New admin and Wi-Fi passwords |
| IoT camera / smart device | Disconnect, reboot, change default password | No firmware updates available | Segment on a separate network |
| Phone | Update OS, scan, remove unknown apps | Unknown profiles persist after reset | Factory reset, restore from a clean backup |
How do I stop my device joining a botnet again?
Prevention is cheaper than cleanup. Most botnets spread through phishing attachments, unpatched software, weak passwords and exposed remote services.
- Patch promptly: enable automatic updates for the operating system, browser and router firmware.
- Use unique passwords and MFA: a password manager stops reuse, and phishing-resistant MFA stops stolen passwords working.
- Close remote access: do not expose router admin pages, RDP or Telnet to the internet.
- Segment IoT devices: put cameras and smart devices on their own network with no route to business systems.
- Be careful with attachments: do not enable macros in unexpected documents, and check unexpected invoices before opening them.
For a wider starting point, our small business cybersecurity checklist covers patching, backups and device security together.
How do I report a botnet infection?
Report it inside your organization first, then to law enforcement if money was lost or a business was affected. In the US, file at ic3.gov with dates, the malware names your scanner reported, and what you have already done.
Also tell your internet provider if your connection was used to attack others: they can confirm whether your IP address appears in abuse reports. If the botnet arrived by phishing email, forward the message to your security team or use the report button in your mail app, as explained in our phishing email examples guide.
The bottom line
Botnet removal is a sequence, not a single scan: isolate, scan offline, rebuild when in doubt, reset passwords from a clean device, and harden the router before reconnecting anything.
If you rush back online with the same passwords and the same unpatched router, reinfection is likely. Take the extra hour to reset credentials and patch — it is the step that turns a cleanup into a fix. You can start by checking whether your passwords have already leaked with the free pwned password checker.
Frequently asked questions
How do I know if my computer is part of a botnet?
Common signs are sudden slowness, high network traffic when you are doing nothing, antivirus being switched off, unknown programs, and friends receiving spam from your accounts. None of these alone proves a botnet infection, so confirm with a full antivirus scan and check your router and account activity.
Can antivirus remove botnet malware?
Often, yes, for simple infections. A full scan plus an offline scan removes many botnet families. Persistent botnets that install rootkits, steal credentials or drop extra malware may survive a scan, which is why incident responders reimage business machines rather than trusting a cleanup.
Does rebooting remove botnet malware?
Usually not. Some memory-only botnets such as Mirai clear on reboot, but the device is reinfected quickly if the password stays weak. Most Windows botnets persist across reboots, and router botnets such as Cyclops Blink persist through reboots and firmware updates.
Should I reset my router if it has botnet malware?
Yes. For a router, the safe sequence is disconnect it, perform a hardware factory reset using the maker's instructions, install current official firmware, set a strong unique admin password, and disable internet-facing remote management before reconnecting devices.
Do I need to change my passwords after removing a botnet?
Yes. Botnets commonly steal saved passwords, browser cookies and session tokens. Change passwords from a clean device, starting with email and banking, revoke active sessions, and turn on phishing-resistant multi-factor authentication where it is available.
How long does botnet removal take?
A home PC cleanup with scans usually takes one to three hours. A business machine that must be reimaged, patched and have its passwords reset takes longer, often half a day. Router resets take under an hour, plus time to reconfigure Wi-Fi and connected devices.
Should I report a botnet infection?
Yes, if it affected a business or caused financial loss. In the US, report to the FBI Internet Crime Complaint Center at ic3.gov, and tell your IT team or managed provider first. Reporting helps law enforcement track botnet infrastructure and warn other victims.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against CISA and FBI botnet advisories, Microsoft Learn guidance on Defender Offline scans, and MITRE ATT&CK.
How we write and fact-check →