The Mirai botnet is malware that infects Linux-based Internet of Things devices, such as IP cameras, home routers, and DVRs, and turns them into remotely controlled bots used for large distributed denial-of-service attacks. First found in August 2016, Mirai scans for devices using factory default usernames and passwords on Telnet ports 23 and 2323, infects them, and waits for commands from its controller.
Key takeaways
- Mirai infects IoT devices through default Telnet passwords, not clever exploits.
- In 2016 it powered attacks of about 620 Gbps on Krebs on Security and took down Dyn.
- Changing default passwords, disabling Telnet, and patching routers still stop most Mirai infections.
In autumn 2016, a botnet made of home routers and security cameras knocked major websites offline. The malware was called Mirai, and it did not need a zero-day exploit. It just tried the default passwords that millions of devices still shipped with.
What is the Mirai botnet?
Mirai is malware that turns networked devices running Linux into remotely controlled bots that can be used in large-scale network attacks. It mainly targets online consumer devices such as IP cameras and home routers, plus DVRs, printers, and other always-on hardware.
The Mirai botnet was first found in August 2016 by MalwareMustDie, a white-hat malware research group. It has been used in some of the largest and most disruptive distributed denial-of-service (DDoS) attacks ever recorded, including attacks on Krebs on Security, French host OVH, and Dyn, as documented in the Mirai history on Wikipedia.
A botnet is a network of infected devices controlled from one place. Each device is weak on its own, but hundreds of thousands together can flood a target with far more traffic than it can handle. That is the core idea behind Mirai.
Mirai was named after the 2011 anime series Mirai Nikki, according to a chat log between its original author, known as Anna-senpai, and another researcher. The name comes from the Japanese word for future.
How does Mirai work?
Mirai follows a simple loop: scan, brute-force a login, infect, and wait for orders. Its simplicity is why it spread so fast. It did not need to break encryption or find a new flaw in each device.
1. Scan the internet
Infected devices scan the internet for other IoT devices. Mirai sends TCP SYN probes to pseudo-random IPv4 addresses on Telnet ports 23 and 2323, skipping a hard-coded list that includes private networks and addresses for the US Postal Service and the Department of Defense.
The University of Virginia research paper on Mirai found that the botnet infected nearly 65,000 IoT devices in its first 20 hours, before reaching a steady population of 200,000 to 300,000 infections. At its peak, researchers tracked about 600,000 infections.
2. Brute-force the default login
If a device answers, Mirai tries a table of more than 60 common factory default usernames and passwords. These are logins like admin/admin or root/12345 that vendors shipped on cameras, DVRs, and routers — and that owners rarely changed.
Once a login works, the device sends its IP address and the working credential to a collection server. A loader program is then sent to the victim from the server to install Mirai.
3. Infect and hide
On infection, Mirai removes competing malware from memory and blocks remote administration ports so other attackers cannot take the device. Infected devices usually keep working normally, apart from occasional sluggishness and extra bandwidth use.
A device stays infected until it is rebooted. After a reboot, unless the login password is changed immediately, the device will be reinfected within minutes. That is why rebooting alone never fixes a Mirai infection.
4. Wait for attack orders
Each bot monitors a command-and-control server for its target. When an attack starts, all bots flood the target at once with SYN floods, DNS floods, and other traffic. Using many small devices helps bypass anti-DDoS systems that block a few large sources.
Which devices does Mirai target?
Mirai targets Linux-based IoT and embedded devices that stay online all the time and are rarely patched or monitored. The most common victims are home and office routers, IP cameras, DVRs and NVRs, printers, and set-top boxes.
The research paper found that Mirai's device mix was strongly shaped by a handful of consumer electronics makers. A few popular models with the same default password could supply a huge share of the botnet, which is why one vendor's mistake could affect the whole internet.
Later variants widened the net. Some targeted Android devices through the Android Debug Bridge on TCP port 5555, and others added exploits for specific router flaws. The core weakness stayed the same: devices exposed to the internet with weak or default access.
Check your own home first. If a camera, router, or smart device still uses its factory password, or exposes Telnet or remote admin to the internet, treat it as a Mirai candidate. Our guide to how to secure your Wi-Fi covers the home-network steps that matter most.
What were the biggest Mirai attacks?
Mirai announced itself in autumn 2016 with a series of record-breaking DDoS attacks. The timeline below shows how fast it went from a curiosity to an internet-wide problem.
| Date | Target | What happened |
|---|---|---|
| Aug 2016 | Internet-wide scanning | Mirai first found by MalwareMustDie; scanning and infections grow fast |
| 20 Sep 2016 | Krebs on Security | About 620 Gbps DDoS from more than 175,000 devices |
| Sep 2016 | OVH, France | Attack approaching 1 Tbps, among the largest seen at the time |
| 21 Oct 2016 | Dyn DNS | Multiple waves disrupt Twitter, Reddit, Netflix, GitHub, and others |
| Nov 2016 | Liberia telecom | Attack on Liberia's internet infrastructure, linked to the Dyn actor |
| Nov 2016 | Deutsche Telekom | About 900,000 routers crashed after failed Mirai exploitation attempts |
Krebs on Security: about 620 Gbps
On 20 September 2016, security journalist Brian Krebs saw his site hit with about 620 Gbps of traffic. The attack was sourced from hundreds of thousands of IoT devices and was among the largest on record at the time. It was nearly double the largest attack his DDoS mitigation provider had handled before.
Dyn: the attack that broke the internet for a day
On 21 October 2016, multiple DDoS attacks hit the DNS services of Dyn, a major DNS provider. Because DNS is the internet's address book, sites that relied on Dyn became unreachable even though their own servers were fine. GitHub, Twitter, Reddit, Netflix, and Airbnb were among those affected.
The Dyn attack used roughly 100,000 Mirai devices in three waves, according to later reporting. It showed that attacking shared infrastructure could cause wider damage than attacking one site directly. That lesson still shapes DDoS defense today.
OVH, Liberia, and Deutsche Telekom
French host OVH was struck by a DDoS approaching 1 Tbps in September 2016. In November 2016, Mirai was used in an attack on Liberia's internet infrastructure, and about 900,000 Deutsche Telekom routers crashed after failed exploitation attempts by a Mirai variant.
Mirai was also used in DDoS attacks against Rutgers University from 2014 to 2016, which left staff and students unable to reach the outside internet for several days at a time. The university later reported spending about $300,000 on consultation and raising its cybersecurity budget by $1 million in response.
Who created Mirai, and what happened to them?
Mirai was first used by its creators to DDoS Minecraft servers and companies offering DDoS protection to Minecraft servers, operating a protection racket. The source code was later published on Hack Forums as open source, which let many other actors build variants.
On 13 December 2017, Paras Jha, Josiah White, and Dalton Norman pleaded guilty to crimes related to the Mirai botnet. The trio assisted the government with other cybersecurity investigations and were sentenced to probation and community service without imprisonment.
Jha was later ordered to pay $8.6 million in restitution and sentenced to six months of home incarceration by a US District Court in New Jersey for the attack on Rutgers University. Publishing the source code, however, meant Mirai outlived its authors.
Is Mirai still a threat today?
Yes. Mirai has not been stopped after the arrest of its authors, because other actors used the published source code to evolve Mirai into new variants. Some variants add exploits for specific router flaws instead of relying only on default passwords.
Examples include Satori, found in December 2017, which exploited a flaw in Huawei HG532 routers, and Okiru, found in January 2018, which targeted ARC-based Linux devices. Later variants added proxy features, cryptocurrency mining, and attacks on new device types.
More recent Mirai-based botnets continue to appear. A Mirai-based botnet discovered in 2024, known as Gayfemboy, targets global systems, and another, Aisuru, first found in August 2024, was linked to record-breaking DDoS attacks. The names change; the weak-password problem does not.
That is why Mirai still matters for defenders. It proved that novice techniques, applied at internet scale to poorly secured devices, could threaten even the best-defended targets. The University of Virginia paper makes that point directly.
Mirai vs other botnets: what makes it different?
Earlier botnets mostly infected Windows PCs through email attachments or drive-by downloads. Mirai infected headless Linux devices that owners rarely logged into, patched, or monitored. That gave it a huge, quiet population to draw on.
Other IoT botnets such as BASHLITE preceded Mirai, but Mirai was the first to emerge as a high-profile DDoS threat. Its efficient scanning, its use of insecure default passwords, and its simple design let it infect many different kinds of hardware quickly.
Mirai also showed that IoT security is internet security. A camera in one country could help take down a website in another. Securing IoT devices is therefore not just a home problem; it is a shared infrastructure problem.
For a wider view of how attackers get in, see our guide to how to know if your phone is hacked, which covers signs of compromise on personal devices.
How do you protect against Mirai?
Protection is mostly basic hygiene, applied to every device on your network. No single tool fixes Mirai, but the steps below close the exact doors it uses.
- Change default passwords first. Use a password manager to give each device a long, unique password. This alone blocks the original Mirai infection path.
- Disable Telnet and remote administration. If you do not need remote access to a camera or router, turn it off. Close ports 23 and 2323 at your firewall.
- Update firmware. Check for updates on routers, cameras, and DVRs, and replace devices that no longer receive updates.
- Segment IoT devices. Put cameras and smart devices on a separate network from your computers and phones, so a compromised camera cannot reach your laptop.
- Watch for odd traffic. A camera that suddenly uploads a lot of data, or a router that slows down at odd hours, deserves a check.
For businesses, add the same steps to procurement: buy devices that support password changes, firmware updates, and secure defaults, and keep an inventory of every IoT device on the network. You cannot protect a device you do not know exists.
Read the original research in the University of Virginia Mirai paper for the full measurement data, including the 65,000 infections in the first 20 hours and the 600,000 peak.
What should you do if a device is infected?
Act in the right order: reboot, change the password, then update. Rebooting first clears Mirai from memory, but changing the password immediately after is what stops reinfection.
- Disconnect the device from the internet if you can, then reboot it.
- Change the password immediately after the reboot, before the device is exposed again.
- Update the firmware to the latest version from the vendor.
- Disable Telnet and remote admin unless you have a specific need for them.
- Check other devices on the same network for the same default password.
- Factory-reset the device if you cannot change the password or update it, then set it up securely or replace it.
The bottom line
Mirai proved that the weakest link in internet security can be a camera or a router with a default password. In 2016, that weakness powered attacks of about 620 Gbps on Krebs on Security and took down Dyn, disrupting Twitter, Reddit, Netflix, and GitHub.
The fix is still basic: change default passwords, disable Telnet, patch firmware, and separate IoT devices from your main network. Check what your network exposes with the Cysoro what-is-my-IP tool as a starting point, then work through your devices one by one.
Frequently asked questions
What is the Mirai botnet?
Mirai is malware that turns Linux-based Internet of Things devices into bots. Infected cameras, routers, and DVRs follow orders from a command server and flood a target with traffic in a distributed denial-of-service attack.
What does Mirai stand for?
Mirai comes from the Japanese word for future. According to researchers, the author named it after the anime series Mirai Nikki. It is not an acronym.
How does Mirai infect devices?
Mirai scans the internet for devices with Telnet ports 23 and 2323 open, then tries a list of more than 60 common factory default usernames and passwords. If one works, it downloads its code and the device joins the botnet.
Is the Mirai botnet still active?
Yes, in evolved form. The original source code was published in 2016, so many variants now exist. They use the same idea — weak IoT passwords and unpatched devices — and add new exploits for routers and other hardware.
What was the Dyn attack?
On 21 October 2016, Mirai bots attacked Dyn, a major DNS provider, in multiple waves. Many popular sites, including Twitter, Reddit, Netflix, and GitHub, became hard or impossible to reach because DNS lookups failed.
Can Mirai infect my phone or computer?
Mirai mainly targets Linux-based IoT devices, not phones or desktop computers in normal use. Some variants have targeted Android devices through the Android Debug Bridge, so keep that feature off unless you need it.
How do I know if my device is infected with Mirai?
Look for sluggish performance, unusually high bandwidth use, or a device that rejoins a botnet soon after a reboot. A reboot clears Mirai from memory, but the device is reinfected within minutes if the password is still the default.
How do I protect my home network from Mirai?
Change every default password, disable Telnet and remote admin access, update firmware, and put IoT devices on a separate network. Rebooting alone is not enough without changing the password.
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 the Mirai research paper from the University of Virginia, the Wikipedia history of Mirai, and CloudSEK's Mirai guide.
How we write and fact-check →