Practical Security Habits

Why Default Credentials Are a Problem on Devices

How shared factory usernames and passwords get abused on routers, cameras and boards, and which settings to change first when you set up new gear.

On this page
  1. What default credentials are
  2. Why this matters
  3. What happens next
  4. Not only passwords
  5. What to change first
  6. Your own builds
  7. If you cannot change it
  8. A habit worth building

What default credentials are

Many devices ship with a built-in username and password so that you can sign in the first time. Often it is something simple and identical on every unit of the model, such as a generic word for both fields. Routers, cameras, network storage, printers, smart plugs, single-board computers and hobby boards with web interfaces have all used this approach.

It is convenient for the manufacturer and the buyer, since there is nothing to set up. The trouble is that if the same login works on thousands of devices, it is no longer a secret.

Why this matters

The combinations are not hidden. They appear in manuals, setup guides, support pages and community forums, and lists of common factory logins are widely shared, including among people who want to misuse them. An attacker does not need to be clever, only to try those combinations.

Attackers also do not pick targets by hand. Automated tools scan large ranges of internet addresses looking for devices that respond, then try known default logins. Any device reachable from the internet may be tried within a short time of appearing. Small projects are not exempt, because the scanner does not know or care what you built.

What happens next

Once an attacker signs in, what they can do depends on the device. Possible results include:

  • Taking control of the device and changing its settings, such as redirecting a router’s DNS to a malicious server.
  • Viewing private data, such as camera feeds or files on network storage.
  • Using the device in a botnet, a network of compromised gadgets controlled together, to send traffic that overwhelms other services or to hide the origin of other attacks.
  • Moving deeper into the home network and trying other devices from the inside.
  • Installing persistent changes, such as altered firmware, that survive a reboot.

Large networks of compromised devices have been documented over the years and were built largely from devices with unchanged default logins. You do not have to be a deliberate target for this to affect you.

Not only passwords

Default credentials come in several forms:

  • Web interface logins, the most obvious kind.
  • Remote access services, such as SSH or telnet, that some devices enable out of the box.
  • Shared keys and tokens, where every unit uses the same secret.
  • Wi-Fi setup passwords, like the one printed on a router label or a device’s temporary hotspot.
  • Pairing codes, such as a Bluetooth PIN of 0000.
  • Debug or maintenance accounts left in the firmware by the maker, sometimes undocumented.

Some manufacturers have moved to a unique password per unit, printed on a label, which is a significant improvement over a shared one. Even then, a label can be photographed or may be guessable, so replacing it with your own is still sensible.

What to change first

When you get a new device, work through a short routine before you connect it to a network you care about, if the device allows it.

  1. Change the admin password to a long, unique one, saved in a password manager. If the username can also be changed, do that.
  2. Check for other accounts and services. Disable or secure remote shells, guest accounts, demo users and any service you do not need.
  3. Update the firmware. Fixes may have been released since the unit was made, and an old version may contain known flaws.
  4. Review exposure. Turn off features that make it reachable from the internet, such as port forwarding or cloud relay, unless you need them. If you want to use it from outside, prefer remote access through a private route such as a VPN.
  5. Isolate it. Network segmentation, meaning a separate network for gadgets, limits what a compromised unit can reach.
  6. Change wireless and pairing secrets such as the Wi-Fi name and password and any default PIN.
  7. Turn on two-factor authentication if the device or its cloud account offers it.
  8. Record what you did, including model, version and where the credentials are stored.

Do these steps first, not later. A device is most exposed right after you plug it in.

Your own builds

If you make devices, the lesson applies in reverse. Shipping or flashing every unit with the same built-in password repeats the problem, even if the project is small or shared on a forum. Better options include forcing the user to set a password on first use, generating a unique secret for each unit, or avoiding a login entirely by keeping the device off the network unless it is paired locally. Do not leave a hidden maintenance account in your code, and do not put real passwords in the repository.

If you cannot change it

Some devices have a login that is hard-coded and cannot be changed. That is a serious design flaw. Keep such a device away from the internet, put it on its own network segment, limit which other devices can talk to it, and consider replacing it with a product that supports proper credentials. If you find one on a product you did not make, responsible disclosure explains how to tell the vendor.

A habit worth building

Treat every new device as untrusted until you have changed its defaults. It takes minutes and removes one of the most common ways devices are taken over. It is not a complete defence, since other flaws exist, but it covers one of the most common and preventable ones.

The complete guide to practical security habits

A Maker Guide to Securing Connected Projects
Read the guide

Keep exploring

Guides from other topics

All topics →