Where should a connected device keep its keys?
Most OEM programmes reach the same point in a design review: the device needs an identity that cannot be copied, keys that firmware cannot read, and a way to check that an update is genuine. Then the question becomes which part holds those keys. Four options come up every time: a discrete secure element, a TPM, the security features of the microcontroller itself (TrustZone-class isolation and on-chip secure enclaves), or an external hardware security module.
They are not rivals for the same job. This guide sets out the decision criteria, the integration effort each choice carries, and the questions to put to any supplier. It is written for hardware and firmware leads, and it says where our own module, AmbiSEC, fits and where it does not.
The four options in one table
| Option | Where the keys live | Typical fit | Main trade-off |
|---|---|---|---|
| Discrete secure element | A separate tamper-resistant chip beside the host, reached over a serial bus | Devices that need a per-device identity and protected keys without changing the host processor | An extra component, a host driver, and a provisioning step in production |
| TPM | A separate chip (or firmware implementation) built to the Trusted Computing Group TPM specification | Platforms with an application processor and an operating system that already supports TPM interfaces | Designed around the PC-class platform model; less natural on a small microcontroller |
| MCU TrustZone or on-chip secure enclave | Inside the same silicon as the application, behind a hardware isolation boundary | Cost-sensitive designs with a part that already has the feature, and a team that can own the secure-world firmware | One die, one attack surface; the strength depends on the particular part and on how well the secure-world code is written |
| External HSM | A network or rack appliance, or a card in a server | Back-end work: certificate authorities, signing release firmware, key ceremonies | Not a device component at all; it protects the fleet’s keys, not the keys inside each device |
The external HSM is the one most often confused with the others. It belongs on your back end, where it signs firmware releases and issues device certificates. A device still needs something local to hold its own private key. For a general explanation of the HSM class, see our hardware security module overview.
Decision criteria that actually separate the options
- Threat model. Who can touch the device? A unit on a street pole or in a car park can be opened and probed; a unit in a locked cabinet may not need the same protection. Decide whether you defend against remote software compromise only, or also against physical extraction and fault injection.
- Isolation from the application. If an attacker takes over the application firmware, can they read the key, or only ask for signatures? A separate chip keeps the key outside the host’s reach altogether. On-chip isolation reduces the exposure but shares silicon with the code being attacked.
- Host interface and effort. Which bus does the part use, and does your host already have a driver or middleware for it? A separate chip adds a bus and a driver; on-chip features add no hardware but demand secure-world firmware work.
- Cryptographic coverage. List the algorithms you need today, such as ECDSA on P-256 or P-384, AES, SHA-2, HMAC and RSA, and confirm each one for the exact part and software build you would ship. Do not read it from a family datasheet.
- Lifecycle and supply. Is the part available for the life of your product, and what happens to your provisioning flow if the supplier changes?
- Evidence you can show. Which certifications exist, for what exactly, and who holds them (see below).
Host interface and integration effort
A discrete secure element sits beside the controller you already have and is reached over a serial bus. The host sends commands and receives results; the private key never travels back. Integration work is therefore on your side: choosing the bus, porting a driver to your controller, and deciding when the application asks for a signature and what it does with the answer.
A TPM usually assumes a software stack and operating system that speak its command set. That suits an application processor running Linux; it is a heavier fit on a small bare-metal controller. On-chip enclaves need no extra bus, but you take on the secure-world firmware, its update path and its testing.
Whichever you choose, ask who writes and maintains the host-side driver, and whether reference code exists for your processor family.
Key provisioning and lifecycle
Provisioning is where many secure-hardware projects slip. Settle these before you choose a part:
- Is the device key generated inside the chip, and is it non-exportable?
- Who injects or registers keys, at which factory step, and who has custody of the issuing keys?
- How are applets or firmware on the secure part loaded and updated? Many secure elements use a GlobalPlatform secure channel such as SCP03 for loading and personalisation.
- How are operational keys rotated in the field while the device identity stays the same?
- What happens at end of life or on a return: can a device be revoked and re-provisioned?
For the identity side of this decision, see our note on IoT device identity and lifecycle management.
Certificates and attestation
A device that proves who it is needs a certificate chain that your back end can verify. Decide which certificate authority issues device certificates (the strongest position is that you control it), how certificate signing requests leave the device, and whether you need the chip to attest that a key was generated inside it. Attestation matters when an auditor or a customer asks you to show that a key never existed outside protected hardware. IEEE 802.1AR defines a standard model for secure device identity and is a useful vocabulary to share with your back-end team.
Certification considerations
Read certification claims by asking three things: what was evaluated, who holds the certificate, and does it cover the module you will buy or only the chip inside it.
- Common Criteria (ISO/IEC 15408) evaluations are usually granted to a specific chip and configuration. A chip-level result does not certify a module, a software build or your finished product. The Common Criteria portal lists certified products.
- FIPS 140-3 validation applies to a cryptographic module and is run through the NIST Cryptographic Module Validation Program. Check the validated module and version listed on the NIST CMVP site against what you would ship.
- TPMs follow the specification of the Trusted Computing Group, which is also published as ISO/IEC 11889.
- GlobalPlatform specifications describe the card and secure-element platform, including secure channel protocols; see GlobalPlatform.
- Regulation. The EU Cyber Resilience Act (Regulation (EU) 2024/2847) sets cybersecurity requirements for products with digital elements. A secure component can help a manufacturer meet them; no component makes a product compliant on its own.
Questions to ask any supplier
- Which exact part number and software build will ship, and which algorithms and curves are confirmed for that build?
- Are the private keys generated on the part, and is there any supported interface that exports them?
- What is the host bus, and is a reference driver available for our processor?
- Who provisions keys, at which step, and who holds the issuing authority?
- How are updates to the secure part’s own software authorised and delivered?
- Which certifications are held, by whom, and for what scope: chip, module or finished product?
- What are the minimum order quantities, lead times and long-term supply commitments?
- What do you not do, and what stays with our team?
Where AmbiSEC fits, and where it does not
AmbiSEC is our security module for OEMs. It is a 25 × 25 mm solder-down module, based on NXP secure elements, that sits beside the controller you already use. The host keeps its processor, firmware, operating system and network stack. AmbiSEC generates and keeps the device’s keys inside a tamper-resistant boundary, signs and verifies on request, holds anti-replay counters and checks firmware-image signatures. It is the discrete secure element option in the table above.
It is a good fit when you are adding hardware-backed identity to connected equipment that sits in public or unattended places, you want to keep your existing controller, and your team can own the host driver and provisioning plan with our help. The published application targets are street lighting, HVAC and building-automation gateways, public infrastructure, EV charger controllers, utility metering modules and industrial IoT. These are design targets for OEM integration, not a list of existing deployments.
Cryptography. The product page lists ECC P-256 and P-384 (ECDSA), AES-128 and AES-256, SHA-256 and SHA-384, and HMAC. RSA 2048 and 3072 and Ed25519 depend on the secure element and the applet build chosen for the project and are confirmed in the integration brief.
It is not the right answer when
- you need a radio or network connectivity: AmbiSEC is not a radio and does not provide the device’s connectivity;
- you want a part that makes your product compliant on its own: compliance is a function of the whole system, and the certification path is planned with you per programme;
- you need a back-end device registry, a certificate authority or fleet revocation policy: those stay with your back end;
- you want a plug-in with no engineering effort: the hardware is ready for OEM integration, but the host driver, provisioning and system validation are project work;
- your design already has a suitable on-chip enclave and your threat model does not include physical attack: a separate module may be more than you need.
On certification, the secure-element silicon is certified by its manufacturer to Common Criteria EAL6+ at the chip level. That is not a certificate for the AmbiSEC module, the applet or your device, and the product page asserts no module-level certificate as issued.
Evaluation hardware, a reference design and reference host code are discussed under NDA and scoped per project. Module photographs and mechanical drawings are shared under NDA.
The full technical reference is on the AmbiSEC product page. Sector detail and what AmbiSEC does not do are in the AmbiSEC applications guide, and the AmbiSEC product brief (PDF) is a three-page summary you can share with your team.
Frequently asked questions
Is a secure element better than a TPM for an embedded device?
It depends on the platform. A TPM suits a processor running an operating system that already supports it. A secure element reached over a serial bus suits a smaller controller that needs protected keys and signing without changing the host.
Does an on-chip secure enclave make a separate secure element unnecessary?
Sometimes. If the chip you already use has the feature and your threat model is mainly remote software compromise, it may be enough. If physical extraction is in scope, or you want the key outside the host’s silicon, a separate secure element gives a stronger boundary.
Do I still need an HSM if the device has a secure element?
Usually yes, on the back end. The device holds its own key; an HSM protects the keys that issue device certificates and sign firmware releases.
Does a certified chip mean a certified product?
No. A chip-level evaluation covers that chip in its evaluated configuration. The module, the software on it and your finished device each have their own evidence requirements.
Does AmbiSEC provide connectivity?
No. It is a security boundary beside your controller. Your host keeps its radios and protocols.
Talk to us about your device
Tell us the kind of equipment, the host controller, how it connects, what you need to protect, and where the programme stands. We will tell you whether a secure element fits, including when the better answer is a different option from the table above.