Managing HSM Users in AWS CloudHSM - AWS CloudHSM

Managing HSM Users in AWS CloudHSM

In AWS CloudHSM, you must use CloudHSM Management Utility (CMU), a command line tool to create and manage the users on your HSM. You can also setup quorum authentication. For more information about the types of users available and what actions those users can perform, see Understanding HSM Users.

Understanding HSM Users

Most operations that you perform on the HSM require the credentials of an HSM user. The HSM authenticates each HSM user and each HSM user has a type that determines which operations you can perform on the HSM as that user.

Precrypto Officer (PRECO)

The precrypto officer (PRECO) is a temporary user that exists only on the first HSM in an AWS CloudHSM cluster. The first HSM in a new cluster contains a PRECO user with a default user name and password. The PRECO user can only change its own password and perform read-only operations on the HSM. You use the PRECO user to activate a cluster. To activate a cluster, you log in to the HSM and change the PRECO user's password. When you change the password, the PRECO user becomes the primary crypto officer (PCO).

Crypto Officer (CO | PCO)

A crypto officer (CO) can perform user management operations. For example, a CO can create and delete users and change user passwords. PCO is the designation for first CO you create, the primary CO. For more information about CO users, see the HSM User Permissions Table. When you activate a new cluster, the user changes from a Precrypto Officer (PRECO) to a crypto officer (CO).

Crypto User (CU)

A crypto user (CU) can perform the following key management and cryptographic operations.

  • Key management – Create, delete, share, import, and export cryptographic keys.

  • Cryptographic operations – Use cryptographic keys for encryption, decryption, signing, verifying, and more.

For more information, see the HSM User Permissions Table.

Appliance User (AU)

The appliance user (AU) can perform cloning and synchronization operations. AWS CloudHSM uses the AU to synchronize the HSMs in an AWS CloudHSM cluster. The AU exists on all HSMs provided by AWS CloudHSM, and has limited permissions. For more information, see the HSM User Permissions Table.

AWS uses the AU to perform cloning and synchronization operations on your cluster's HSMs. AWS cannot perform any operations on your HSMs except those granted to the AU and unauthenticated users. AWS cannot view or modify your users or keys and cannot perform any cryptographic operations using those keys.

HSM User Permissions Table

The following table lists HSM operations sorted by the type of HSM user or session that can perform the operation.

Crypto Officer (CO) Crypto User (CU) Appliance User (AU) Unauthenticated Session
Get basic cluster info¹ Yes Yes Yes Yes
Zeroize an HSM² Yes Yes Yes Yes
Change own password Yes Yes Yes Not applicable
Change any user's password Yes No No No
Add, remove users Yes No No No
Get sync status³ Yes Yes Yes No
Extract, insert masked objects⁴ Yes Yes Yes No
Key management functions⁵ No Yes No No
Encrypt, decrypt No Yes No No
Sign, verify No Yes No No
Generate digests and HMACs No Yes No No
  • [1] Basic cluster information includes the number of HSMs in the cluster and each HSM's IP address, model, serial number, device ID, firmware ID, etc.

  • [2] When an HSM is zeroized, all keys, certificates, and other data on the HSM is destroyed. You can use your cluster's security group to prevent an unauthenticated user from zeroizing your HSM. For more information, see Create a Cluster.

  • [3] The user can get a set of digests (hashes) that correspond to the keys on the HSM. An application can compare these sets of digests to understand the synchronization status of HSMs in a cluster.

  • [4] Masked objects are keys that are encrypted before they leave the HSM. They cannot be decrypted outside of the HSM. They are only decrypted after they are inserted into an HSM that is in the same cluster as the HSM from which they were extracted. An application can extract and insert masked objects to synchronize the HSMs in a cluster.

  • [5] Key management functions include creating, deleting, wrapping, unwrapping, and modifying the attributes of keys.