When chips support Secure Boot and Secure Debug, how can OEMs protect signing and debug authorization private keys across multiple factories? This article explores HSM-based key protection, factory key delivery, offline production, and authorization management for rework and failure analysis.
Many chips already support Secure Boot and Secure Debug. Secure Boot verifies the source and integrity of software during device startup, preventing unauthorized software from running. Secure Debug controls access to device debugging functions.
Getting these processes working during development is usually not difficult. The challenge comes when the same product needs to be manufactured across multiple factories. Firmware and programming materials can be provided to factories, but what should be done with the private keys used for firmware signing and debug authorization? If plaintext private key files are handed directly to factories, it becomes difficult to control how they are copied and used. If every operation relies on cloud services, network disruptions can affect production.
Once mass production begins, firmware releases require signing authorization, while production rework and after-sales failure analysis may also require debug unlock operations. OEMs need to establish a complete approach to key protection, factory access, and subsequent authorization.

Core private keys should remain under the OEM's control and should never be handed to factories in plaintext. Firmware signing private keys are used to sign firmware approved by the OEM. During device startup, the firmware is verified against preconfigured trust information. Debug authorization private keys are used to generate or sign the credentials required to restore debug access under authorization. Different chips may use different keys and credentials, so the specific configuration should follow the requirements of the target chip.
If plaintext private keys are transferred through email, cloud storage, or other channels, once a file is copied, it becomes difficult to know who else holds it or whether it is still being used. If a firmware signing private key is compromised, an attacker may use it to generate valid signatures for unauthorized firmware. If a debug authorization private key is compromised, it may be used to unlock debug access without authorization.
Therefore, OEMs can protect private keys using HSMs (Hardware Security Modules) or cloud-hosted key management services, with controlled access permissions. Factories do not need direct access to plaintext private keys to perform necessary operations once authorized.
Once core private keys are centrally managed by the OEM, another question remains: how can different factories securely and reliably perform production and maintenance operations without accessing plaintext private keys?

Once the OEM has secured its keys, it also needs to consider how different factories can use them.
One approach is to send personnel on-site to provision keys into local factory HSMs, allowing the factories to perform relevant operations locally. However, if key provisioning depends on personnel being physically present, every new factory or key replacement may require another on-site deployment. This increases the costs of key delivery, on-site operations, and security auditing. Once keys are deployed at a factory, without centralized authorization and auditing mechanisms, it becomes difficult for the OEM to maintain visibility into how the keys are used and centrally control actual operations.
Another approach is to keep keys in the cloud and have factories access cloud services over the network to perform the required operations during production, without deploying the keys locally. However, when operations such as per-device authorization or credential generation need to be performed on the production floor, relying entirely on cloud services requires careful consideration of the impact of unstable network connections, service latency, or temporary service unavailability on production.
On-site deployment allows factories to perform operations locally but requires resources for deployment and ongoing maintenance. Real-time cloud access enables centralized management but introduces dependencies on network reliability. For OEMs manufacturing across multiple factories, the challenge is to protect and control keys throughout delivery and use while ensuring that production can continue reliably without being interrupted by network outages.

Protecting keys is only part of the task. OEMs also need to control what those keys are used for.
When releasing new firmware, OEMs need to control version approval and signing permissions to prevent unauthorized firmware from entering production or update processes.
When production rework is required, restoring debug access may be necessary if a locked chip needs to be programmed again. The OEM should first confirm whether the device's current protection state allows it to be unlocked, then authorize the relevant factory to perform the operation and define which devices can be handled and what operations are permitted.
When a device is sent to a failure analysis laboratory for after-sales investigation, the team should first determine whether unlocking will affect the device's existing data or failure information. Only the necessary permissions should then be granted for that individual device, avoiding excessive access rights simply to analyze one unit. After the analysis, the debug protection state should be reviewed according to the device's subsequent handling requirements, and the corresponding operation records should be retained.
Whether the operation involves firmware signing, production rework, or failure analysis, authorization must be clearly defined, the scope of operations restricted, and records retained to ensure traceability. Across multiple factories and large device volumes, it is difficult to consistently enforce these requirements through manual management alone.
From device mass production to subsequent rework and failure analysis, OEMs need not only to protect core private keys but also to ensure that factories can use them securely and reliably, with continuous control over the scope and execution of authorized operations.
Snowball Technology's OnBoard™ IoT Security (OBIS) platform supports HSM-based key protection. For keys that support secure wrapped delivery, OBIS can securely wrap and remotely deliver them to designated factory EdgeHSMs, reducing the need for on-site deployment. Keys remain securely wrapped during transmission, and Snowball Technology cannot unwrap them. Once a factory receives batch authorization, it can perform relevant production operations offline within the authorized scope, reducing dependence on real-time network connectivity.
OBIS supports OEM approval and authorization for firmware signing. For production rework and after-sales failure analysis, OBIS can manage debug unlock authorization by production batch or individual device, respectively. Whether debug access can actually be restored also depends on whether the necessary credentials have been provisioned to the device and whether its current protection state permits unlocking. Once operation results are uploaded, OEMs can query and trace them. This allows factories and laboratories to perform authorized operations without accessing plaintext private keys.