
A gateway can pass every Modbus and MQTT test while still shipping with the same SSH password as the engineering sample. The problem becomes visible months later, when a service contractor needs remote access and nobody knows which credentials were installed in which batch.
For a Linux IoT gateway, security planning should cover identity, configuration, exposed interfaces, software updates, and the people who maintain the fleet. Start with the deployed network and carry those decisions through factory provisioning. A checklist becomes useful when each item has an owner, a verification method, and evidence tied to an image release.
Draw the boundaries before choosing controls
Sketch the field network, gateway, management network, cloud connection, and service laptop. Mark where data enters and where privileged commands can travel. An Ethernet port connected to machinery has a different purpose from one used for administration, even if both appear as ordinary Linux interfaces.
For industrial IoT gateways, agree whether routing between ports is required. If it is, specify permitted destinations and protocols. A dual-port gateway should not become an unrestricted bridge between equipment and an office network simply because a demo image enabled forwarding.
Include physical access in the discussion. A locked cabinet and a publicly accessible wall terminal present different risks. Exposed USB ports, recovery buttons, removable storage, and boot consoles belong on the same diagram as network services.
Give each unit an identity you can replace
A serial number identifies a device in inventory. It does not authenticate that device to a server. Define which certificate or credential proves identity, where it is provisioned, and what happens when a unit is repaired or transferred to another customer.
Prefer individual credentials over a shared fleet secret. If one gateway is compromised, the operator should be able to revoke its access without replacing credentials across the installation. Keep manufacturing records that link the serial number to the provisioning result without storing private keys in ordinary test logs.
Evaluate hardware-backed key storage when the threat model warrants it. Procurement needs to know whether the selected hardware, BSP, and provisioning tools actually support the proposed arrangement. A security component listed on the BOM is only one part of that implementation.
Turn the baseline into acceptance evidence
The NIST IoT cybersecurity baseline identifies capabilities including device identification, configuration, data protection, interface access, updates, and awareness of security state. Use those areas to organize requirements; the publication does not certify a particular gateway.
| Control area | Project decision | Evidence to request |
|---|---|---|
| Identity | Individual credentials and replacement process | Provisioning and revocation results |
| Interfaces | Allowed services on each network | Port inventory from the release image |
| Configuration | Who can change routes, users, and certificates | Role and permission tests |
| Updates | Authorized images and recovery behavior | Rejected invalid image and interrupted update |
| Diagnostics | Events retained without exposing secrets | Sample redacted incident record |
| Support | Patch owner and supported period | Named contact and delivery agreement |
For an OEM project, these records are more useful than a statement that the board is “secure Linux.” They let the buyer compare delivered behavior against a defined requirement.
Inspect the image that will actually ship
Development services tend to accumulate: SSH, a web dashboard, a discovery daemon, a file server, and a temporary debug listener. Build the service inventory from the production image. Confirm what listens on every interface and which account runs each service.
On a Linux image with iproute2 and systemd, these read-only commands provide a starting point:
ss -lntup
systemctl --type=service --state=running
ip route show
Run them with suitable administrative access when process details are needed. They are an inventory aid, not a complete security test. Compare the output with the intended service list and follow up on unexpected listeners, routes, and privileges.
During gateway protocol planning, specify which application endpoints require authentication and which legacy field protocols depend on network isolation. Adding TLS to a cloud connection does not protect every command path inside the cabinet.
Separate application access from administration
Give data acquisition services only the permissions they need. A process reading serial meters should not automatically have unrestricted administrative access because that was convenient during bring-up. Document the required device permissions and storage paths so a future update does not silently restore broad privileges.
For SSH, define approved authentication, source networks, session logging, and how temporary service access expires. Removing password login is helpful only when key enrollment, revocation, and recovery also work. Test the service procedure before disabling the last known working management route on a sample.
The Linux SBC platform evaluation should include this operating model. Ask who maintains the kernel, crypto libraries, network stack, and vendor packages, including components supplied only as binaries.
Treat updating and recovery as one responsibility
Verify the authenticity and hardware compatibility of an update before installing it. Keep signing credentials separate from routine factory flashing stations. Define how trusted signing keys can be rotated and how unsupported images are rejected.
Signed updates and secure boot solve related but different problems. The updater decides whether to accept an installation package; a correctly implemented secure boot chain checks authorized software during startup. Neither automatically prevents an old but legitimately signed vulnerable version from being used. Decide whether rollback restrictions are required and how emergency recovery remains possible.
Acceptance should include a damaged package, an unauthorized signature, an image for a different board revision, and a power interruption. Record what the operator sees and how the device returns to service. Avoid an update policy that is secure on paper but requires opening every enclosure after a recoverable network failure.
Provision securely without blocking the factory
Write a station procedure covering initial identity, image installation, credential enrollment, verification, and removal of temporary factory access. A retest should recognize an already provisioned device rather than assigning another identity without a record.
Keep secrets out of screenshots, serial-console captures, and support bundles. Distinguish test certificates from customer credentials. If provisioning depends on an external service, define a controlled hold state when that service is unavailable; a blank certificate field must not become an automatic pass.
Hardware access matters here. A custom gateway board can provide fixture contacts for programming and verification while keeping service connectors inaccessible during normal operation. Decide the debug policy before production locking or irreversible provisioning steps are approved.
Rehearse the incident that support will receive
Use a scenario such as a replaced router, an expired device certificate, or a stolen service laptop. Establish who can diagnose the problem, revoke access, enroll replacements, and preserve useful logs. Confirm that a customer can distinguish a cloud outage from a local gateway fault.
During field deployment validation, also test factory reset and ownership transfer. Reset should remove customer secrets according to the product policy without accidentally destroying the hardware identity needed for legitimate recovery.
Agree a maintenance commitment before the first large purchase order. It should state the supported software branch, notification channel, vulnerability triage owner, patch delivery expectations, and what happens at end of support. A board supply agreement and a software security support agreement cover different work.
Release the gateway with a reviewed service inventory, verified identities, reproducible update tests, and a practical support procedure. Those deliverables give engineering, procurement, and the operator something concrete to maintain as the fleet grows.
Frequently Asked Questions
Does a private network make an IoT gateway secure?
No. Private networks still contain service laptops, compromised devices, remote access tools, and configuration errors. Authenticate management access and limit what the gateway can reach across each interface.
Does secure boot protect gateway credentials?
Secure boot verifies authorized boot software when correctly implemented. Protecting credentials also requires suitable storage, access control, provisioning, and key rotation. The two controls address different risks.
What should a gateway security acceptance report contain?
Record the hardware and image versions, enabled interfaces, identity provisioning, update rejection tests, credential replacement, remote access policy, reset behavior, and the owner of future security fixes.