← Back to section · Security Risk & Assessment
Hard-Coded Keys and Default Credentials: The Master Key Baked into the Product
Hard-coded keys and factory default credentials are the cheapest legacy risks to exploit: the same key opens every unit of the same model, and no configuration change removes it. Their governance challenge is discovery and recall, not technology.
One Key Opens a Million Devices
An ordinary key compromise affects one device or one account; a hard-coded key is different. When a vendor bakes the same private key, the same symmetric key or the same set of default credentials into every unit of a product model, an attacker only has to buy one device and pull its firmware apart to obtain the key to every unit of that model. The pattern has recurred throughout history: default passwords on home routers and network cameras were harvested by botnets at a scale of millions of devices; in multiple incidents, researchers extracted vendors’ debug certificates and private keys from firmware, which were then usable to forge firmware updates or decrypt device communications. The common thread: the flaw does not live in any user’s configuration — it exists from the moment the product leaves the factory.
For legacy risk assessment, this class must be listed separately because its handling logic is entirely different from algorithm risk: there is no patch to apply, no parameter to tune, and configuration baseline checks cannot see it — the device runs perfectly normally; only its root of trust was public from the start.
Where They Hide
The most common form is default administrative credentials: factory-preset admin accounts and passwords printed in manuals and on vendor websites, valid until the user changes them. Next are hard-coded encryption keys: where firmware encryption, configuration-backup encryption or inter-device communication uses one key for the whole model line, reversing one unit grants passage across the fleet. Then there are debug and back-door credentials: test accounts left over from development and remote support channels kept for the vendor’s maintenance, forgotten or deliberately retained in mass production. There is also a cloud-side variant: API keys and object-storage credentials hard-coded into apps and firmware — extract those, and the attacker operates not on one device but on the vendor’s entire cloud estate. What these hiding places share is that conventional external security assessment rarely finds them; discovery usually takes firmware analysis or a vendor disclosure.
Why Changing the Password Does Not Save You
Users often assume that changing the default password after setup makes the device safe, but the crux of the hard-coded problem is layering: the password is one layer at the application level, while keys and debug credentials in the firmware sit deeper, with no management interface to change them. Some devices’ “factory reset” even restores credentials to their defaults, silently resurrecting a password that was changed with effort after a single troubleshooting event. Worse is the information asymmetry: users cannot know what is buried inside their devices and learn that a model is affected only after vendor disclosure or public exposure. For the user, this risk is decided at procurement time; during operation they can only mitigate consequences, not remove the root cause.
The User’s Playbook: Screening, Isolation, Replacement
Procurement is the most effective line of defence: write “no global default credentials, unique factory passwords, rotatable keys” into selection requirements, and prefer vendors with a track record of firmware security disclosure. For the existing estate, rely on network-side compensation: place IoT and legacy devices in isolated segments and restrict their outbound and lateral movement, so that even a compromised unit cannot spread far. On monitoring, watch for anomalous behaviour: fleets of the same model suddenly making abnormal connections in bulk is often the signal that a hard-coded credential is being exploited. The final disposition is scheduled replacement: models confirmed to carry hard-coded problems with no vendor fix planned should enter the device refresh plan ranked by risk, rather than being kept alive indefinitely on isolation measures.
Inventory: How Do You Know Your Devices Are Affected?
Users cannot pull firmware apart device by device, so the inventory has to follow indirect evidence. The first route is intelligence matching: compare the models and firmware versions of registered devices against public vulnerability databases and vendor security advisories, item by item, and book every model with a known hard-coded problem. The second is behavioural detection: observe the communication patterns of same-model devices from the network side — hard-coded cloud endpoints, fixed debug ports and anomalous heartbeat destinations can all be clues that a hard-coded channel exists. The third is procurement-archive archaeology: pull out historical purchase contracts and acceptance records and identify which models never went through a credential-policy review. Inventory results are booked in three grades — confirmed, suspected, unknown — and unknown does not mean safe: unknown devices carrying sensitive business should be treated as suspected, isolated first and verified at leisure.
Disposition also needs a total-cost reckoning: isolation and monitoring are recurring costs, while replacement is a one-off cost. For affected models with long remaining service life, early replacement is often cheaper than maintaining a set of compensating measures indefinitely, and cleaner besides. Presenting that arithmetic to decision-makers is the step in the assessment most easily omitted and most effective at producing action.
Office and Building Equipment: The Class Most Easily Missed
The devices most easily missed in an inventory are those procured outside IT: building automation, access control and attendance systems, video conferencing, smart lighting. These devices come through administrative procurement channels, never enter the IT asset register, yet sit on the same office network. Reconciling the administrative purchase list against network scan results routinely unearths a whole batch of connected devices the security team has never seen — and the worst hard-coded-credential territory is precisely in these unmanaged corners.
Closing: The Root Fix Happens at the Factory
The root cure for this class of risk can only happen on the production side: inject a unique credential into every device, generate and write keys inside a secure environment, and close debug channels before mass production. Several recent regulatory regimes for connected devices have begun mandating the end of universal default passwords precisely because voluntary market improvement was too slow. For assessors, tracking hard-coded keys and default credentials as a standing category is a reminder that some risks come not from the strength of algorithms but from the way trust is mass-replicated.
Tags: Hard-Coded KeysDefault CredentialsFirmware SecurityLegacy Risk