Join our Newsletter — 33% off our NHI Course
Home› Guides› The Mirai Botnet for Beginners: How Hacked Home…
Guide Attack Techniques & Malware

The Mirai Botnet for Beginners: How Hacked Home Devices Powered Huge Attacks

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 3 December 2026 10 min read
On this page

Mirai was harmful software that took over cameras and routers with factory passwords and used them to flood websites.

This guide is for anyone who owns a smart camera, router or video recorder, or looks after them at work. You do not need to be a target to be part of the problem: a device you own could be borrowed for someone else's attack.

In short

  • In 2016, Mirai spread to home routers, network cameras and video recorders by trying a short list of common factory usernames and passwords [1].
  • Researchers measured a peak of about 600,000 infected devices [2]. Together, they flooded targets with traffic in large attacks [1].
  • Dyn, a company that helps people's browsers find websites, said much of the traffic in a major October 2016 attack came from Mirai-based botnets, as reported at the time [4].
  • The main fix is simple: change factory passwords, update devices and turn off remote features you do not use [1].

What you will learn

  • Explain what Mirai was and why it spread so fast.
  • Describe how many small devices together can take a website offline.
  • Spot devices at home or work that still use a factory password.
  • Check the settings that make a device a harder target.

Status: correct as at 3 December 2026, based on the UK government's product security regime page and the US Department of Justice's December 2017 announcement. Laws change; check the official text.

This guide explains the rules in general terms and is not legal advice.

Factory password (default password)
the password a device has when it leaves the factory, before anyone changes it.
Army of hijacked devices (botnet)
many infected devices controlled together by one criminal.
Traffic flood (DDoS attack)
sending so much traffic at a service that real visitors cannot get through.

What is the Mirai botnet?

Think of a crowd of hired hands controlled by one boss. Each worker does a small job. Together, they can block a whole street.

Mirai was harmful software that built such a crowd from internet-connected devices. The US Department of Justice says it was made in 2016 and targeted things like wireless cameras, routers and video recorders [3]. The infected devices formed a botnet (a group of hijacked devices that take orders from one place).

Researchers called it a "sea change" because such simple methods took over enough cheap devices to threaten some of the best-defended targets [2].

Where the comparison stops working: hired hands know they are working. A hijacked camera keeps recording as normal, so its owner may not notice anything.

Why does it matter?

Mirai showed that small, cheap devices can add up to a big threat. Its code was later posted online, and other criminals built new versions [3].

If you have smart devices at home

What could happen: your camera or router joins a botnet and is used to attack others.

Check this: make sure each device has its own password, not the one it came with.

Next: Smart Home Security for Beginners

If you run a shop or small office

What could happen: the security camera recorder in the back room is taken over and slows your internet.

Check this: ask your installer whether the factory password was changed and updates are on.

Next: IoT Security for Beginners

If you run a website or online service

What could happen: a flood of traffic from many devices makes your site slow or unreachable.

Check this: know who you would call, and what protection you have, before an attack starts.

Next: DDoS Attacks for Beginners

What does it look like?

Here is a made-up settings screen for a home camera. It shows the kind of settings that made devices easy targets.

Example only. All values are made up.

EXAMPLE-Cam 0000  device settings  (FAKE)
Admin user:        admin                    (1)
Admin password:    FAKE-factory-0000        (2)
Remote access:     ON                       (3)
Firmware:          v0.0 (update available)  (4)
UPnP on router:    ON                       (5)
  1. A common factory username, shared by many devices.
  2. In a real screen, this line would show whether the factory password was ever changed.
  3. A remote feature switched on, even if nobody uses it.
  4. An update is waiting but has not been installed.
  5. A router feature that can open the device to the internet without asking you.

Why this is risky: US cyber officials said Mirai tried a short list of 62 common factory usernames and passwords [1]. A device like this one could be on that list.

The safer way: a unique password, updates installed, and remote features off unless you need them [1].

How does it work?

These steps explain what happened so you can defend against it. They are not instructions.

  1. Searching for devices. Infected devices kept scanning the internet for other devices to take over [1].
  2. Trying factory passwords. Mirai tried its short list of common usernames and passwords on each device it found [1].
  3. Joining the crowd. Devices that still had a factory password were taken over. They then helped search for more [1].
  4. Taking orders. The people running the botnet told the devices to send traffic at chosen targets [3].
  5. Flooding the target. So much traffic arrived at once that the target could not cope. One attack on a security news site went over 620 gigabits per second [1].
Diagram titled How Mirai grew and struck, in two panels. The top panel, Risky, shows four boxes joined by arrows: 1, infected devices scan the internet for others; 2, they try a short list of factory passwords; 3, devices still on a factory password are taken over and join the crowd; 4, on command the crowd floods a website or service with traffic. The bottom panel, Safer, shows four green boxes: change factory passwords, install updates, turn off remote features and UPnP if unused, and buy from makers that support security. A note says this explains the pattern for defence and is not instructions.
Figure 1. How a factory password turned a camera into part of an attack, and what breaks the chain.

In October 2016, Dyn said a large share of the traffic in an attack on its service came from Mirai-based botnets. News reports at the time said access to many popular US websites slowed [4].

The people behind Mirai pleaded guilty in the US in December 2017, according to the Department of Justice [3].

Rules have changed since then. In the UK, since 29 April 2024, passwords on covered consumer connectable products must be unique per product, or set by the user [5].

A worked example

This story is made up to show the idea.

Tegan Rees runs Kestrel Hardware, a small shop with four security cameras and a video recorder in the stockroom. Her internet has felt slow for weeks, even at night when the shop is shut.

Her nephew, Idris Yates, works in IT support. He reads about Mirai and asks to see the recorder's settings.

The recorder still uses the username and password printed in its manual. Remote access is switched on, though Tegan only checks the cameras in the shop. A firmware update has been waiting for over a year.

Idris explains the risk. A device with a factory password can be found and taken over without anyone touching it. It could then be used to flood other people's websites.

Together they set a long, unique password and install the update. They turn off remote access and the router feature that can open devices to the internet without asking. Idris writes the new password in the shop's password manager.

The recorder had kept its factory settings for a long time. So they also ask the installer to check it and reset it if needed. After the changes, the night-time slowdown stops.

Tegan learned that a camera system is a computer too. It needs a real password and updates, like her laptop.

Myths and mistakes

What people thinkWhat is true
Nobody would bother hacking my camera.Mirai did not pick victims. It tried factory passwords on any device it found [1].
If my camera still works, it is fine.A hijacked device can keep working as normal while it helps an attack.
Botnets need clever hacking.Researchers said Mirai's methods were simple, yet it grew very large [2].
Mirai ended when its makers were caught.Its code was posted online, and others built new versions [3].
Restarting a device fixes everything.Unless the factory password is changed, the device can be taken over again.

What can I do this week?

  • List every connected device at home or work: router, cameras, recorders, doorbells and smart plugs.
  • Change any factory password to a long, unique one, and store it in a password manager.
  • Install waiting updates, and turn on automatic updates where offered.
  • Turn off remote access and the router feature called UPnP unless you need them [1].
  • Read Default Passwords for Beginners for more help.

Checklist

  • I know which connected devices I own or look after.
  • No device still uses its factory password.
  • Each device password is unique and stored safely.
  • Updates are installed, or set to install by themselves.
  • Remote features are off unless they are needed.
  • I replace devices that no longer get security updates.
  • I check a maker's security support before I buy.

Common questions

How big did Mirai get?

Researchers who studied it for seven months measured a peak of about 600,000 infected devices [2]. The US Department of Justice describes it as hundreds of thousands of devices at its peak [3]. Most were small, cheap devices such as cameras and routers.

What happened to Dyn?

Dyn helped people's browsers find websites. In October 2016 it faced a large traffic flood. Dyn said much of that traffic came from Mirai-based botnets, as reported in the news. Reports said many popular US sites slowed [4].

Is Mirai still around?

Versions of it are. The US Department of Justice says that after the code was posted online, other criminals used Mirai variants in more attacks [3]. So the same simple defences still matter today.

How can I tell if my device was infected?

Often you cannot tell from the outside. Signs can include a slow home internet or a device acting oddly. The safest step is to change the factory password, install updates and turn off remote features you do not use [1].

Do new laws help?

They can. In the UK, since 29 April 2024, passwords on covered connectable products must be unique per product or set by the user [5]. Older devices bought before then may still use shared factory passwords.

Where next?

Ready for the detail? Read the practitioner guide: Mirai and IoT Botnet Families Guide. It goes further into later Mirai variants, how teams detect them, and the controls that reduce the risk.

Also useful:

Related NHI Mgmt Group resources: IoT Security for Beginners, Smart Home Security for Beginners and IoT Security Guide.

Key terms

Botnet
A group of infected devices that one criminal controls together.
Default password
The password a device or system has before anyone changes it.
Distributed denial-of-service
An attack that floods a service with traffic from many places, so real users cannot reach it.
Internet of Things
Everyday devices, such as cameras and plugs, that connect to the internet.
Malware
Harmful software that damages, spies on or takes over a device.
DNS
The internet's address book, which turns website names into the numbers computers use.

Sources and further reading

  1. CISA (US Cybersecurity and Infrastructure Security Agency), "Heightened DDoS Threat Posed by Mirai and Other Botnets" (alert TA16-288A), 14 October 2016, revised 17 October 2017. https://www.cisa.gov/ncas/alerts/TA16-288A (accessed 3 Dec 2026).
  2. Antonakakis and others, "Understanding the Mirai Botnet", 26th USENIX Security Symposium, August 2017. https://www.usenix.org/conference/usenixsecurity17/technical-sessions/presentation/antonakakis (accessed 3 Dec 2026).
  3. US Department of Justice, "Justice Department Announces Charges and Guilty Pleas in Three Computer Crime Cases Involving Significant DDoS Attacks", 13 December 2017. https://www.justice.gov/opa/pr/justice-department-announces-charges-and-guilty-pleas-three-computer-crime-cases-involving (accessed 3 Dec 2026).
  4. Computerworld (news report quoting Dyn's statement), "DDoS attack on Dyn came from 100,000 infected devices", October 2016. https://www.computerworld.com/article/3135434/ddos-attack-on-dyn-came-from-100000-infected-devices.html (accessed 3 Dec 2026).
  5. UK Government (DSIT), "The UK Product Security and Telecommunications Infrastructure (Product Security) regime", last updated 2 May 2024. https://www.gov.uk/government/publications/the-uk-product-security-and-telecommunications-infrastructure-product-security-regime (accessed 3 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.