Skip to content
IoT Crest

IoT device security basics: default passwords, updates and network segmentation

Updated , 6 min read

IoT device security basics: change default passwords, turn on updates, close unused services, segment the network and check what a device talks to.

This article covers the changes that remove most of the exposure of a connected device in a home or small office, and a checklist to work through. It does not cover enterprise security programs, penetration testing, or the security of the vendor's cloud service itself.

A connected camera, a smart plug, a printer, a thermostat and a network-attached storage box have one thing in common: each is a small computer on your network that nobody thinks of as a computer. That is the whole problem. The fixes are not exotic. They are the same basics that apply to any computer, applied to devices that make them easy to skip, and they are the core of the IoT security best practices this site keeps returning to.

Why IoT devices are a soft target

Three properties make these devices attractive. They ship with defaults: a known administrator account, a known password, services switched on that most owners never use. They are rarely updated, because the update needs a person to open an app they forgot they had, or the manufacturer stopped issuing them. And they sit on the same network as everything else, for years, plugged in and forgotten.

An attacker does not need to be clever with a device like that. Automated scanning finds devices with open ports, tries the known default credentials, and logs in. Once inside, the device becomes a foothold: a place to scan the rest of the network from, a relay for traffic, a member of a botnet, or in the case of a camera or a microphone, a way to watch and listen. Large botnets have been built almost entirely from consumer devices with default passwords, as the Mirai example in the IoT vulnerabilities guide shows.

The good news is that the same three properties point at the fixes. Change the defaults. Keep the software current. Put the device where it cannot reach anything it should not.

what makes the device a soft target the fix it points at ships with defaults known account and password, services on change the defaults every password, every account rarely updated forgotten app, or updates stopped keep the software current turn on automatic updates on the same network as everything else plugged in and forgotten for years put it on its own network cannot reach what it should not
Diagram: the three properties that make a connected device easy to attack, each paired with the fix it points at: defaults are changed, software is kept current, and the device is moved to a network where it cannot reach anything it should not.

Change every default password

Start with the device’s own administration login, the one you use in its web page or app. If the device shipped with a password printed on a label or in the manual, change it. If it shipped with no password, set one. Use a password manager so each device gets a long, unique password you never have to remember.

Then find the other logins. Many devices have more than one: a web interface, a separate service login, a maintenance or support account, sometimes a hidden account documented only in a forum. Look through every settings page and every account the manufacturer’s documentation mentions. Disable any account you do not use.

Wi-Fi credentials count too. A device that was set up with your main Wi-Fi password holds that password in its memory. If the device is compromised, so is the password. This is one of the reasons for putting devices on their own network, below, with a password that is not shared with anything you care about.

Where a device offers two-factor authentication for its cloud account, turn it on. The cloud account is often the easier target: a password reused from a breached site is tried against every popular device service.

Keep firmware updated

Firmware is the software the device runs, and updates to it are how the manufacturer closes holes. Find the update setting. If the device can update itself automatically, turn that on. If it needs you to press a button in the app, put a reminder in your calendar and press it. If it needs you to download a file and upload it through a web page, do it now and again every few months.

Then check the manufacturer’s support page for the model and note when it last had an update. A device that has had none in years is unlikely to get one when the next vulnerability appears. That does not mean binning it, but it does mean treating it as untrusted and containing it on the network.

Before buying anything new, look for a stated support period, a public list of past updates, and a clear way to receive them. The article on firmware updates explains what a good update mechanism looks like and which questions to ask a vendor.

Turn off what you do not use

Every service a device runs is a door. Most devices open several by default: a web administration page, a remote access feature, an old file-sharing protocol, a universal plug-and-play (UPnP) service that asks your router to open ports to the internet, a telnet or SSH server, a debugging port. You use perhaps one of these.

Go through the settings and switch off anything you do not need. Two deserve special attention. Universal Plug and Play on the router lets any device on the network open holes in your firewall without asking you; turn it off on the router and add port forwards by hand for the rare case that needs one. And remote access features, which let you reach the device from the internet, are worth disabling in favor of a VPN into the house, as described in the local smart home article.

If a device cannot turn a service off, the network can do it for it: a firewall rule that blocks that port from everywhere except your own computer.

A quick way to see what a device is running is to scan it from a laptop on the same network with a port scanner, which lists every port the device answers on. Compare that list with the services you switched off. A port that is still open after you disabled its service is either a setting that did not take, or a service the manufacturer does not let you control, and either way it belongs in your notes and behind a firewall rule. Repeat the scan after a firmware update, because updates sometimes turn services back on.

Segment the network

Segmentation is the fix that works even when a device is compromised anyway. Put every IoT device on its own network, separate from the laptops, phones and anything holding data you care about, with a firewall between the two that lets your devices reach the IoT network and stops the IoT network reaching back.

On a home router that means a VLAN if it supports them, or a guest network if it does not, provided the guest network genuinely isolates clients. On a small office network it means a VLAN and a set of firewall rules, which the VLAN article sets out step by step.

The rules to aim for are simple. The main network can open connections to the IoT network, so your phone can control the lights. The IoT network cannot open connections to the main network, so a compromised plug cannot reach your laptop. And the IoT network’s access to the internet is limited to what each device actually needs, which for many devices is nothing.

Main network laptops, phones, NAS IoT network plugs, cameras, printer firewall on the router allowed blocked can reach devices cannot start a connection back internet: per-device rules
Diagram: two networks separated by the router's firewall. The main network may open connections to the IoT network; the IoT network cannot open connections back, and its internet access is limited per device.

A short IoT device security checklist

Work through this for every device you own, and again for every device you buy. Two published baselines say the same things in more formal language and are worth knowing if you buy for an organization: NIST’s core baseline for IoT device cybersecurity (NIST IR 8259A, with the manufacturer activities in NIST IR 8259 Rev. 1) and ETSI EN 303 645, the European consumer IoT security standard. The IoT security standards guide explains both, and the laws in the US, UK and EU that build on them.

  1. Change the administrator password to a long, unique one stored in a password manager. Check for additional accounts and disable them.
  2. Turn on automatic updates where they exist. Where they do not, note the update procedure and a date to repeat it.
  3. Check the last firmware date on the manufacturer’s page. No updates in years means contain the device and plan its replacement.
  4. Disable services you do not use: remote access, telnet, SSH, file sharing, debugging ports. Turn off Universal Plug and Play on the router.
  5. Put the device on the IoT network, with the firewall rules above.
  6. Block its internet access, then unblock only what it needs. Watch the firewall log for a day to see what it tries to reach.
  7. Turn on two-factor authentication on any cloud account tied to the device.
  8. Record the device: model, firmware version, where it is, what it may reach. A list you can review beats a memory you cannot.

None of these takes long, and together they remove almost all of what makes these devices easy to attack. The device that fails a step is the one that gets a stricter network rule until it can be replaced.

Written by the IoT Crest editorial team. Facts in this article follow the editorial policy: only well-established behavior is stated and no figures are invented.

More from IoT security

  1. IoT security standards and laws explained

    Which IoT security rules apply in the US, UK and EU: ETSI EN 303 645, NIST IR 8259, the Cyber Trust Mark, California's law, UK PSTI and the EU CRA.

  2. IoT vulnerabilities: the common weak points

    IoT vulnerabilities explained: the OWASP IoT Top 10 in plain words, why connected devices are exposed, how Mirai spread and how to look up a device's CVEs.

  3. What is UPnP, and should you turn it off?

    What is UPnP: how Universal Plug and Play lets devices open router ports without asking, why that is an IoT security risk, and what breaks if you turn it off.

  4. How to put IoT devices on a separate VLAN at home or in a small office

    How to put IoT devices on a separate VLAN: what you need, how to tag the Wi-Fi network, the firewall rules that contain devices, and discovery.

  5. Firmware updates for IoT devices: OTA, signing and rollback explained

    IoT firmware updates explained: how over-the-air updates are delivered, why images are signed, how rollback protects a device and what to ask a vendor.

All IoT security articles

Sponsor an article in this topic

Sponsored articles and in-article link placements for IoT vendors, agencies and SEO buyers. Every sponsored piece is labeled, edited to the same standard as the rest of the site, and placed in the hub its readers already visit. Rates on request.

Ask a question

Ask a question

Spotted an error, or want a topic covered? It goes straight to the editors, who reply by email, WhatsApp or SMS.