Automation Glossary • Hardware Security Module (HSM)

What Is a Hardware Security Module in OT?

Merobix Engineering • • 6 min read

A private key protecting a certificate authority is the most valuable secret in a whole trust hierarchy, and the worst place to keep such a secret is in ordinary software, where it can be copied by anyone who gets into the server. A hardware security module exists to solve exactly that problem. It is a dedicated, tamper-resistant device that generates cryptographic keys inside itself and never lets the private ones leave, performing signing and other operations on request without ever exposing the key. This guide explains what an HSM is, how it protects the root and signing keys behind an OT public-key infrastructure, and how it differs from the per-device secure chips found on individual endpoints.

Back to Blog

Hardware Security Module (HSM) in one line: A hardware security module, or HSM, is a tamper-resistant hardware appliance that generates, stores, and uses cryptographic keys so that private keys never exist in ordinary software or leave the device. In OT it protects the crown-jewel keys of a public-key infrastructure, such as the CA's root and issuing keys and code-signing keys, by performing signing operations inside the hardware itself. Because the keys are created and confined within the module and it resists physical tampering, an attacker who compromises the surrounding server still cannot extract them.

Keys That Never Leave the Hardware

The defining property of an HSM is that a private key generated inside it stays inside it. The module creates the key pair internally, and while the public half can be exported freely, the private half is confined to the hardware and is designed so that no normal operation ever reveals it. When something needs to be signed, the data is sent into the module, the signing happens inside using the protected key, and only the resulting signature comes back out. At no point does the private key exist in the memory of the server driving the operation, which is the whole point: software running on that server, including malware that has taken it over, has no key to steal because the key was never present in software to begin with.

This is reinforced by physical tamper resistance. An HSM is built to detect intrusion, whether someone drilling into the case or probing its internals, and to respond by destroying the keys it holds rather than surrendering them. That combination, keys that are born inside the hardware and never leave, plus a device that erases itself under attack, is what raises the bar from a soft secret sitting in a file to a hardware-protected one. It changes the attacker's problem entirely: instead of copying a key file off a compromised machine, they would have to defeat purpose-built hardware in physical possession, and even then the module is designed to zeroize its contents before yielding them.

Protecting CA and Code-Signing Keys in OT

The natural home for an HSM in an OT public-key infrastructure is the certificate authority. The root CA's signing key is the trust anchor for the entire environment, and its compromise would let an attacker mint certificates that every device accepts, so that key belongs in an HSM rather than on a disk. The same holds for issuing CA keys, which do the daily work of signing device certificates and are more exposed by virtue of being online; keeping them in an HSM means that even if the issuing CA's server is breached, the signing key itself cannot be carried away, only used while the attacker holds the server, which is a far more contained and detectable situation than silent theft of the key.

Code-signing keys are the other classic HSM custody problem in OT. The key that signs firmware or update packages is what lets devices trust that an update genuinely came from the vendor, so if that key leaks, an attacker can sign malicious firmware that passes every downstream verification. Because the consequence of losing a signing key is that all the protections it underwrites collapse at once, these keys are prime candidates for HSM storage, where signing happens inside the hardware and the key is never in a state that can be copied. Many regulated and high-assurance environments also look to the FIPS 140 standard, which defines validated security levels for cryptographic modules, as a benchmark for the HSMs guarding these keys, so the choice of module is often tied to a documented assurance level rather than left informal.

HSM Versus On-Device Secure Elements, and the SCADA Picture

An HSM is a centralized appliance, and that is what separates it from the small secure chips embedded in individual field devices. A TPM or similar secure element lives on one endpoint and protects that device's own keys, which suits per-device identity but is not built to be the high-throughput signing engine behind a whole CA. An HSM sits at the center, guarding the keys that many devices depend on and handling the volume of signing that issuing certificates across a fleet demands. The two are complements rather than substitutes: on-device elements protect each asset's individual key, while the HSM protects the central keys whose compromise would undermine every asset at once.

In a SCADA context, the HSM usually operates behind the scenes of the identity system rather than out at the wellsite. When a private CA issues certificates to the RTUs, gateways, and servers a control room depends on, an HSM is what keeps that CA's signing key from being the soft underbelly of the whole scheme. For a cloud SCADA platform such as Merobix, where a large population of devices authenticate against a central trust framework, protecting the keys at the core of that framework in tamper-resistant hardware is what keeps the fleet-wide trust dependable, because the point of maximum leverage for an attacker is not any single device but the signing key that vouches for all of them. The HSM is therefore less a feature operators interact with directly and more the hardened foundation that makes the certificates their field devices carry worth trusting.

Frequently Asked Questions

What does a hardware security module actually protect against?

It protects private keys from being copied out of software. Keys are generated inside the module and never leave it, and signing happens inside the hardware, so an attacker who compromises the surrounding server finds no key to steal because the key was never present in software. HSMs are also physically tamper-resistant and designed to destroy their keys if someone tries to open or probe them, so even physical possession does not easily yield the secrets.

What is the difference between an HSM and a TPM?

An HSM is a centralized appliance that guards the high-value keys many devices depend on, such as a certificate authority's root and issuing keys, and handles the signing volume of a whole fleet. A TPM is a small secure chip on an individual device that protects that one endpoint's keys and measurements. They complement each other: the TPM secures each asset's own identity, while the HSM secures the central keys whose compromise would undermine every asset at once.

Why keep OT code-signing keys in an HSM?

Because a code-signing key is what lets devices trust that firmware and updates genuinely came from the vendor, so if it leaks an attacker can sign malicious firmware that passes every downstream check. Keeping the key in an HSM means signing happens inside the hardware and the key is never in a copyable state, so even a breach of the signing server cannot carry the key away. The high consequence of losing such a key is exactly why it belongs in tamper-resistant hardware.

From Definitions to a Live Dashboard

Merobix reads your field devices into a cloud SCADA - the real thing behind these terms, live in days from any browser.

Request a Free Demo +1 (903) 307-7300
More in Automation Glossary
Cryptographic Key Rotation  •  Secure Boot  •  Hardware Root of Trust  •  Trusted Platform Module (TPM)  •  Firmware Code Signing  •  Security Level (SL)  •  All Automation Glossary →
Free SCADA operator training
Merobix University - 70 video lessons & 261 quiz questions, from first login to compliance reporting. No demo call required.
Start free →