A Hardware Security Module (HSM) is a dedicated, tamper-resistant physical or network-attached appliance designed to generate, protect, manage, and perform operations with cryptographic keys. It provides a hardware root of trust by isolating sensitive key material and cryptographic processes within a secure boundary, protecting them from extraction even if the host system is compromised. HSMs are foundational for Public Key Infrastructure (PKI), code signing, database encryption, and transaction processing.
