Lesson 8 of 14 · 15m
One Private Key in Every Unit
SEC Consult's House of Keys, the Sercomm 32764 listener, and why a private key in firmware is a public key.
In June 2015 SEC Consult published an audit called House of Keys. They pulled firmware images from roughly 70 vendors and grepped them for embedded private keys — HTTPS certificates, SSH host keys. About 9% of the images contained private keys, and the same keys recurred across product lines. More than 580 products were implicated. The keys weren't hidden; they were extracted in minutes by anyone who ran the grep.
The vendors weren't careless in an exotic way — they'd made the cheap engineering choice. Provisioning a unique certificate per device requires factory infrastructure. Baking one PEM into the firmware image costs nothing. So one cert went into the image, and "private key" became a fiction maintained by obscurity.
The model this breaks
The assumption underneath is "TLS means secure." TLS provides encryption — it also provides authentication, and authentication is the part that collapses. When every unit of a camera model ships the same private key, anyone who extracts it can impersonate the device family, intercept "secure" connections, and sign as the device. Shared SSH host keys mean host authentication — the whole point of known_hosts — verifies nothing; every unit is the same host. The encryption still works fine. That's the trap: the tunnel is real, the identity is fake.
This is testable from the outside: ssh-keyscan a subnet of deployed units and compare fingerprints — identical host keys across different physical devices prove the keys were baked into the image, not generated per unit. No firmware extraction required; the fleet itself demonstrates the mistake.
The general principle: a private key in a downloadable or dumpable image is a public key with extra steps. There is no secret distribution mechanism hiding inside a file everyone can read.
Undocumented listeners are the same bug
The shared-key mistake has a sibling: services nobody documented.
Hidden management interfaces keep surfacing for the same reason — they're cheap to leave in. In December 2013 Eloi Vanderbeken published the TCP/32764 writeup — the press pile-on landed in January 2014 — on Linksys, Netgear and Cisco DSL gear built by Sercomm: an unauthenticated command interface that handed out a shell. The "fix" narrowed the listener to local interfaces — still undocumented, still unauthenticated command execution, just harder to reach.
These listeners are what your own nmap -p- run is for. Anything listening that the documentation doesn't explain is a backdoor until the vendor demonstrates otherwise — whether they meant to leave it or not.
The audit
On-device: ss -lnt and netstat, then port-scan LAN and WAN from outside — nmap -p- both interfaces, because a listener bound to LAN-only is still reachable by anything on that LAN. In firmware: hash every private key you extract and search it across the vendor's other images — reuse across SKUs is the House of Keys finding at single-vendor scale. Check the web tree for request-metadata auth tricks like the reversed-UA bypass; grep init for listeners nothing documents.
What actually fixes it
The remediation here is architectural, not a patch:
Per-device keys generated at provisioning — each unit gets its own certificate and host key, private material never shared. Secure elements (ATECC608-class chips, or eFuse key storage where the SoC offers it) hold the private key so it can't be extracted even from a chip dump. And every listener the device doesn't need is removed, not hidden — undocumented-but-local is still reachable, as Sercomm demonstrated.
The engineering cost is real: factory provisioning, key custody, test infrastructure, a signing station that has to be secured itself. The cost of not doing it is that your TLS is decoration and your audit findings are the incident sections of other people's writeups.
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.