Lesson 14 of 14 · 15m
Shipping Something That Resists
The full ledger: per-device identity, fused debug ports, signed updates with rollback floors, and minimal listening surface.
Everything in this course collapses into a short list of decisions a vendor makes at design and manufacturing time — not at patching time, not after the first incident. None of them are exotic. All of them cost something. The lesson is the honest ledger.
Identity and credentials
Every unit gets its own credential — a random admin password printed on the label, a per-device key pair generated on-device or injected at factory provisioning, its certificate unique per unit. The provisioning flow is concrete: the station derives or injects the key, signs the per-device certificate, writes it into the unit's secure element or eFuse key block, and the private material never leaves the device or the station — there is no fleet master list to leak. Secure elements (ATECC608-class parts, eFuse key blocks) hold it where the budget allows. This is the Mirai fix and the House of Keys fix: no shared secret to extract, no credential list to try. Cost: seconds of manufacturing and a provisioning rig. The UK PSTI Act has banned universal default passwords since April 2024; the EU Cyber Resilience Act extends the direction. The alternative is now priced.
Debug ports
JTAG/SWD fused off after manufacturing test — RDP2-class protection, DIS_JTAG eFuses, whatever the silicon offers — and the UART console disabled or password-gated in the production device tree and U-Boot environment, with console= removed and no getty on ttyS0. Test pads can stay populated and dead. Assume a funded attacker can glitch past readout protection; the fuse raises entry cost, it doesn't end it.
Updates
Signed payload plus signed manifest covering model and version floor; anti-rollback index in OTP/RPMB; A/B slots with health-check rollback; TLS as belt, payload signature as anchor. Update domains tracked as inventory with auto-renewal. Kill switch that can stop serving in minutes.
Storage and memory
Flash encryption where the SoC supports it; otherwise treat firmware contents as public — because they are, the day the image escapes. On MCU-class silicon there is no ASLR and often no MPU — a Cortex-M0 buffer overflow is fatal and there's no memory protection between tasks — so parsers get bounds-checked and a hardware watchdog plus fail-safe default state is non-negotiable: a watchdog timeout must land the device in a safe state, not mid-command. Sixty-four kilobytes of RAM won't carry a TLS handshake; DTLS or gateway mediation is the honest answer for constrained nodes.
Network and protocol surface
The listening surface is a shipping decision, not a default:
Nothing undocumented listens. Telnet is dead. UPnP is off WAN. nmap -p- the device before shipping and again before EOL — the port list is part of the release notes. MQTT brokers get per-device credentials and ACLs separating telemetry from commands. Zigbee commissioning uses install codes; bridges are segmented from the trusted LAN.
The ops layer
SBOM per release so component CVEs map to products — when the next OpenSSL advisory drops, you should know in minutes which SKUs carry it; a monitored security contact (security.txt); a stated EOL and last-update date. Customers plan around honesty; they can't plan around silence.
The tradeoff stated plainly
The costs are real and worth naming:
Secure elements add roughly a dollar of BOM. Provisioning adds factory seconds. Signed pipelines add ops burden. None of it is free, and pretending otherwise is how budgets kill the right control. What those buy is that the incident sections of this course — Mirai's credential list, House of Keys' shared keys, ShadowHammer's pipeline, the Hue worm — stop describing your product. The checklist is the whole lesson; the course was the argument for it.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
Running a Minecraft Network: Four JVMs, One Box, and the Settings That Lie to You
Four servers on one host means four JVMs each sizing its thread pools for a machine it does not own. The measured cost of that, the systemd ordering that guarantees nothing, and the throttle that switches itself back on when your forwarding breaks.
A Minecraft Mod Is a Program. In 2026, Attackers Started Acting Like It.
A Minecraft mod is a Java program that runs with your account's full permissions, and nothing in the game checks what it does.
Immich Had Fourteen Advisories and One Bug It Fixed Three Times
Immich's 2026 security record runs to fourteen advisories, and they cluster hard: the sharing features, the OAuth plumbing, and one login redirect parameter that took three separate fixes across eighty-three days. Plus the 3.0 migration traps still waiting for anyone who hasn't jumped yet.
Building a Minecraft Network: Four Servers Pretending to Be One Place
A proxy, a lobby, an SMP and a PvP arena is four JVMs that know nothing about each other. What actually has to be shared, why your permissions don't follow players, and the two LuckPerms defaults that silently share nothing at all.