AWS CloudHSM
Cloud service · AWS · Updated

AWS CloudHSM

In short

AWS CloudHSM is a cloud-based hardware security module service offered by Amazon Web Services that provides key storage and cryptographic operations within a tamper-resistant hardware appliance.

Cloud Services Hub →

7 key features of AWS CloudHSM

AWS CloudHSM offers secure and comprehensive key management, full user control, compliance with major standards, seamless integration with AWS services, high availability, and scalable infrastructure to meet cryptographic needs.

01
Secure Key Management

AWS CloudHSM provides a highly secure environment for key generation, storage, and management, allowing users to safeguard their cryptographic keys within tamper-resistant hardware security modules (HSMs).

02
Full Control and Ownership

Users have complete control over their HSMs, including key management and access controls, ensuring that only authorized users can access sensitive cryptographic material.

03
Compliance and Certifications

CloudHSM is designed to meet rigorous compliance standards, including FIPS 140-2 Level 3 certification, aiding organizations in meeting regulatory requirements.

04
Integration and Compatibility

Applications can use standard cryptographic APIs including PKCS#11, Java Cryptography Extensions (JCE), and Microsoft KSP/CNG. AWS services integrate with CloudHSM through AWS KMS custom key stores rather than directly.

05
High Availability and Durability

High availability requires at least two HSMs spread across two Availability Zones in the cluster; with this configuration, no additional high-availability configuration is required.

06
Scalability

Customers manage HSM capacity and control costs by adding and removing HSMs from their cluster.

07
Certificate Storage

Certificate storage is available only on hsm2m.medium clusters, with a maximum of 60 stored certificates per cluster.

Where AWS CloudHSM is used

AWS CloudHSM offers secure key management, enables digital signatures, supports blockchain and cryptocurrency applications, provides data encryption solutions, and helps achieve regulatory compliance, serving as a comprehensive tool for enhancing data security and integrity.

  1. 01
    Secure Key Management

    AWS CloudHSM provides a highly secure environment for generating, storing, and managing cryptographic keys used in various encryption processes. By using dedicated hardware security modules (HSMs), businesses can ensure that their keys are protected against unauthorized access, meeting stringent compliance requirements for data security.

  2. 02
    Digital Signatures

    Companies can leverage AWS CloudHSM to implement digital signature systems, ensuring the authenticity and integrity of digital documents. This use case is essential for legal, financial, and governmental entities that need to secure transactions and documents, maintaining non-repudiation and trust.

  3. 03
    Blockchain and Cryptocurrency Applications

    For organizations developing blockchain applications or handling cryptocurrencies, AWS CloudHSM offers a secure mechanism to create and manage the cryptographic keys required for blockchain addresses and wallets. This ensures enhanced protection against theft or unauthorized transactions.

  4. 04
    Data Encryption

    AWS CloudHSM supports the encryption of data at rest and in transit, enabling businesses to protect sensitive information such as customer data, financial records, and intellectual property. By using CloudHSM, businesses can implement custom encryption solutions that comply with their specific security policies and regulatory standards.

  5. 05
    Regulatory Compliance

    AWS CloudHSM helps organizations meet regulatory compliance requirements concerning data protection and privacy. By providing a secure environment for key management and encryption, businesses can adhere to standards such as GDPR, HIPAA, and PCI-DSS, which mandate stringent data security measures.

How AWS CloudHSM is priced

AWS CloudHSM pricing includes an hourly fee for each HSM instance, standard data transfer fees for egress, and no additional software fees.

Hourly Fee

AWS CloudHSM charges an hourly fee for each HSM instance that you launch. This fee varies by the AWS region in which your HSM instance is launched.

Data Transfer Fees

Network data transfers to and from HSMs are charged separately according to Amazon EC2 data transfer pricing.

Services AWS CloudHSM works with

Amazon RDSAmazon RDS

CloudHSM does not directly support Amazon RDS for Oracle TDE; use AWS KMS with a custom key store to secure Amazon RDS data using keys generated and stored in a CloudHSM cluster.

Amazon CloudWatchAmazon CloudWatch

AWS CloudHSM publishes HSM metrics to CloudWatch and sends HSM audit logs to CloudWatch Logs. You can monitor cluster health, review cryptographic activity, and set alarms for conditions such as insufficient available HSMs.

Amazon EventBridgeAmazon EventBridge

AWS CloudHSM management API activity recorded by CloudTrail can be matched by EventBridge rules. For example, a rule can trigger a notification or remediation workflow when someone deletes an HSM or changes a cluster's configuration.

Amazon S3Amazon S3

AWS CloudHSM stores encrypted cluster backups in an Amazon S3 bucket controlled by the service. These backups contain HSM users, keys, and configuration and can be used to restore a cluster.

Amazon VPCAmazon VPC

AWS CloudHSM places network interfaces for your HSMs in the VPC subnets you select. VPC security groups control which clients can connect to the HSMs, and placing HSMs in subnets across Availability Zones provides resilience.

AWS CloudTrailAWS CloudTrail

AWS CloudHSM records management API calls in CloudTrail, including requests to create clusters, add HSMs, and manage backups. These records identify the caller and request details; cryptographic operations within the HSM are tracked separately through HSM audit logs.

AWS Identity and Access Management (IAM)AWS Identity and Access Management (IAM)

AWS CloudHSM uses IAM policies to control access to management operations such as creating clusters, deleting HSMs, and managing backups. Access to cryptographic keys and operations inside the HSM is controlled separately through HSM users.

AWS Key Management Service (AWS KMS)AWS Key Management Service (AWS KMS)

AWS CloudHSM can provide the backing HSM cluster for an AWS KMS custom key store. KMS creates and uses key material in that cluster, allowing compatible KMS-integrated services to use encryption keys protected by HSMs you control.

AWS PrivateLinkAWS PrivateLink

AWS CloudHSM supports interface VPC endpoints through AWS PrivateLink for its management API. Clients can manage clusters, HSMs, and backups without routing those API requests through the public internet; cryptographic traffic connects separately to the HSM network interfaces.

AWS Resource Access Manager (AWS RAM)AWS Resource Access Manager (AWS RAM)

AWS CloudHSM uses AWS RAM to share cluster backups with other AWS accounts. An authorized recipient can restore a new cluster from a shared backup, enabling controlled migration or recovery across accounts.

What is AWS CloudHSM

3 min read

AWS CloudHSM offers a highly secure, robust solution for cryptographic operations within the Amazon Web Services environment. It allows customers to generate, store, and manage cryptographic keys using Hardware Security Modules (HSMs) that are designed to meet the rigorous standards established by various compliance and regulatory frameworks. By leveraging CloudHSM, organizations can ensure the security of their data in the cloud while retaining full control over their cryptographic keys and operations. 

CloudHSM data-plane communication is end-to-end encrypted and is not visible to AWS. Customers manage HSM users outside IAM roles and bear the associated user-management responsibility.

CloudHSM creates an elastic network interface (ENI) in the selected subnet of your AWS account for each HSM; the HSM itself resides in a separate, CloudHSM-owned VPC in the same Availability Zone. Applications use CloudHSM client software to communicate through these ENIs. The client can run on any compatible computer with connectivity to the HSM ENIs, not only on EC2 instances in the same VPC.

One of the primary benefits of AWS CloudHSM is its ability to facilitate the management of sensitive data in compliance with strict regulatory requirements. For businesses that handle financial transactions, personal data, or any other type of information necessitating high levels of security, CloudHSM provides an effective solution to meet these demands. It is configured to comply with standards such as the Payment Card Industry Data Security Standard (PCI DSS), offering peace of mind to businesses in finance and retail that are required to uphold these standards. 

AWS services integrate with AWS CloudHSM through AWS Key Management Service custom key stores. Configuring a custom key store in AWS KMS allows services such as Amazon EBS, Amazon S3, and Amazon RDS to use their server-side encryption capabilities with CloudHSM-backed keys.

AWS CloudHSM automatically monitors HSM health, while customers control capacity by adding or removing HSMs from their clusters. Adding and removing HSMs can be performed through the AWS CloudHSM API or AWS CLI.

Default service quotas are four clusters and six HSMs per AWS account per Region; both are adjustable. Each cluster has a non-adjustable maximum of 28 HSMs.

AWS CloudHSM is built on a foundation of security and trust. The service uses tamper-resistant HSMs that are validated against global standards for hardware security, such as FIPS 140-2 Level 3. This exemplary level of security assurance means that even in the event of a physical attempt to access the HSM, the device is designed to erase all sensitive data, thus protecting the information from unauthorized access. 

CloudHSM offers hsm1.medium and hsm2m.medium instance types. The hsm2m.medium instance type supports FIPS 140-3 Level 3 and non-FIPS clusters.

The hsm1.medium HSM type is reaching end of support, and new clusters cannot be created with this type.

Cluster mode determines which keys and algorithms are available: FIPS mode permits only FIPS-validated keys and algorithms, while non-FIPS mode permits all keys and algorithms supported by CloudHSM regardless of FIPS approval.

Key-storage capacity depends on the HSM type: hsm1.medium supports at most 3,300 keys per cluster, while hsm2m.medium supports 16,666 total keys, including at most 3,333 asymmetric keys. These system quotas are not adjustable.

In conclusion, AWS CloudHSM stands out as a comprehensive, secure, and scalable solution for managing cryptographic operations in the cloud. It combines the flexibility of AWS with the stringent security requirements of hardware-based key management, offering businesses a path to secure their data without compromising on the benefits of cloud computing. Whether for compliance, data protection, or both, CloudHSM presents a compelling choice for organizations navigating the complexities of security in the digital age.

Concepts related to AWS CloudHSM

AWS CloudHSM exam questions

Real practice exam questions on AWS CloudHSM, with the correct answer and its explanation. Answer them with every option in the exam simulator.

CLF-C02

A financial company is developing an application on AWS that encrypts confidential records before storing them. Company policy requires encryption keys to be held in dedicated, single-tenant, tamper-resistant hardware. The company's administrators must control the cryptographic users and keys within that hardware. Which solution meets these requirements?

Show answerCORRECT ANSWER

Create an AWS CloudHSM cluster and have the company's administrators manage its cryptographic users and keys.

AWS CloudHSM provides dedicated, single-tenant hardware security modules. The company controls the cryptographic users and keys, and the application can use the HSMs for cryptographic operations supporting encryption of stored records.

SAP-C03

A securities exchange is migrating a message-processing application to Amazon EC2. Its trading partners require an existing protocol that encrypts messages with AES-256-GCM and transmits the ciphertext, initialization vector, and authentication tag in a prescribed format. Partners cannot accept AWS-specific ciphertext formats or change the protocol.

A regulator requires cryptographic keys and encryption operations to remain inside dedicated, single-tenant HSMs. The exchange must directly control the supported cryptographic mechanisms and key attributes. The application needs both persistent keys that survive application restarts and temporary keys for individual processing sessions. Plaintext key material must never enter EC2 instance memory. The exchange can modify its cryptographic integration and operate the required HSM infrastructure.

Which solution meets these requirements?

Show answerCORRECT ANSWER

Deploy an AWS CloudHSM cluster and integrate the application directly through the CloudHSM PKCS #11 library. Generate nonextractable persistent token keys and temporary session keys in the HSM, and invoke its supported AES-GCM mechanism to produce the fields required by the partner protocol.

Direct CloudHSM integration gives the exchange control over supported algorithms, mechanisms, and key attributes. CloudHSM supports persistent token keys and temporary session keys. Generating nonextractable keys and performing AES-GCM operations inside the HSM keeps plaintext key material out of EC2 memory while allowing the application to assemble the required protocol format.

SCS-C03

A payments company imports an AES key from its on-premises HSM into an AWS CloudHSM cluster. The key is a persistent, nonextractable object owned by a crypto user named keycustodian. A production application currently uses keycustodian's credentials to perform cryptographic operations through PKCS #11.

The company must move the application to a dedicated crypto user named paymentapp without interrupting access to existing encrypted records. The existing key object must remain owned by keycustodian, and the application must not receive keycustodian's credentials. The paymentapp user can authenticate to the cluster but cannot find or use the key.

Which solution meets these requirements?

Show answerCORRECT ANSWER

Authenticate to the cluster as keycustodian and share the existing key with paymentapp. Configure the application to authenticate as paymentapp and use the shared key.

A key's owning crypto user can share it with another crypto user in the cluster. Sharing allows paymentapp to use the existing key for permitted cryptographic operations without changing ownership, exporting the material, or disclosing keycustodian's credentials. The key remains nonextractable.

Practice AWS CloudHSM in a full exam

Questions on AWS CloudHSM in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn AWS CloudHSM in lessons

11 short lessons on AWS CloudHSM in 5 certification courses.

and 5 more lessons

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.