The defect is local. The lifecycle consequence can be systemic.
A hardcoded key is often treated as a coding flaw: remove the secret, rebuild the software and patch the affected product. That is necessary, but it is incomplete when the same trust material has been compiled into many long-lived devices.
The engineering chain becomes:
Once deployed, changing the key may require software distribution, compatibility handling, staged trust migration and recovery for devices that miss the transition. The security control is therefore not only secret storage. It is the ability to replace trust safely during the product lifecycle.
Shared secrets collapse isolation between products
If one static secret is reused broadly, compromise of one instance can weaken the assumption that each device represents an independent trust domain. The exact consequence depends on what the key protects and what access the attacker has, but the architecture has already lost an important property: compromise containment.
Product teams should prefer per-device or per-domain credentials, protected key generation and injection, explicit ownership of rotation, and cryptographic agility that lets old material be retired without rebuilding the entire trust model.
In vehicles, the hard part is the update and service path
Automotive cybersecurity makes this lifecycle pressure visible. A key embedded in an ECU, gateway or accessory may survive for a decade or more. Replacing it can interact with secure boot, diagnostics, manufacturing provisioning, backend services, dealer tooling and field-update constraints.
ISO/SAE 21434 and UNECE R155 do not reduce that problem to a ban on one implementation pattern. The useful engineering interpretation is to connect the threat scenario, security requirement, provisioning method, update capability and post-production monitoring into one lifecycle argument. If a secret cannot be rotated or revoked, that limitation belongs in the risk assessment and design assumptions.
- Inventory fixed or shared cryptographic material across products and deployed variants.
- Map each secret to the exact authority, confidentiality or integrity claim it supports.
- Verify whether compromise of one device exposes trust material usable elsewhere.
- Define secure provisioning, rotation, revocation and recovery mechanisms before deployment.
- Test migration when a subset of devices is offline or misses the normal update campaign.
- Document non-rotatable secrets and compensating controls explicitly in the product risk case.
Sources & further reading
Continue this decision.
Move from this analysis into a curated route across related incidents, evidence and operating constraints.