PAM Self-Hosted Master Key and Password Best Practices and FAQ

PAM Self-Hosted Master Key and Password Best Practices and FAQ

79
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 13:03 PM


Question


What are the best practices for the master key and password?



Environment


10.5;10.10;11.5;11.6;11.7;12.0;12.2;12.6;13.0;23.2 Privileged Access Manager (PAM, self-hosted) Vault

Answer


What is the best practice for storing the master key and Password?

CyberArk strongly recommends storing physical CDs or keys on USB drives in tamper-evident envelopes inside a physical safe with strict audit controls. These safes are typically located in secure data centers or corporate headquarter offices. In some cases, organizations may also choose to split the master password in half, only making them accessible to two different people.

What are the Vault Keys used for?

Vault keys are used to encrypt and decrypt data within the CyberArk Vault. They form the foundation of the vault's security architecture. Reference: What are the Vault Keys for?

What is the difference between the keys on the Operator CD and the Master CD?

The Operator CD contains keys used for day-to-day vault operations (like the Server Key). The Master CD contains the private recovery key (recprv.key), which is only used for emergency recovery, master authentication, and advanced administrative tasks. Reference: What is the usage of the keys that come with Operator and Master CD?

How does the Vault's Hierarchical Key Management work?

CyberArk uses a tiered encryption model where data is encrypted by safe keys, safe keys are encrypted by the server key, and the server key can be recovered using the private key from the Master key pair. Reference: Hierarchical Key Management  Reference: Hierarchical Key Management

What is the difference between the Administrator and Master accounts?

The "Administrator" is a standard built-in administrative user but does not automatically get access to all safes. The "Master" user is an emergency account that is automatically granted full access to all safes upon creation. Reference: About the Administrator and Master Accounts

Why are the Master Key and Password required for Privilege Cloud migrations?

While the migration tool doesn't strictly require them, the master credentials are the only way to guarantee access to all data, fix orphaned safes, and update permissions to ensure a complete export. Reference: See our comprehensive guide: Privilege Cloud Migrations: Master Key and Password Requirements

Where can I find the Master Key?

The Master Key may be located on physical CDs stored in a secure safe, downloaded digitally from the CyberArk Customer Community, or self-generated using the PAKeyGen utility. Although against best practice, the master key may be stored on the vault server file system or in a safe in the vault server.

How can I verify I have the correct Master Key?

You can verify the master key by comparing the file hash (SHA512) of the recpub.key in your master key folder with the recpub.key currently in use by the vault. Reference: How to verify ownership of the correct master key (recprv.key)

What is the RecoveryPrvKey parameter used for?

The RecoveryPrvKey parameter in the dbparm.ini file tells the Vault where to find the physical Master Key (recprv.key) when a master authentication or recovery action is attempted. Reference: What is RecoveryPrvKey parameter in DBParm.ini used for?

How do I log in as the Master User?

You must log in using the PrivateArk Client directly on the Vault server (or emergency station) using PrivateArk authentication. The recprv.key must be accessible to the vault during this process. Reference: How to log in as the Master user

How do I test if my Master Password is correct?

You can test it by attempting to log in as the Master user via the PrivateArk Client on the vault server. Reference: Vault: Testing the Master Password

How does the Master User authentication process work?

It relies on a challenge-response mechanism using the private recovery key (recprv.key) to cryptographically prove authorization before accepting the master password. Reference: Vault: How does the Master User Authentication Process Work?

How do I securely delete the master key from the vault server after use?

CyberArk provides a secure deletion utility (like SDelete) to ensure the master key file cannot be recovered from the vault's disk after it has been used. Reference: Securely deleting files from the Vault

Can I store the Master Key on an HSM or Smart Card?

The Master CD containing the Private Recovery Key (recprv.key) should not be stored on the HSM as this key is never used by the Vault. The Master key is required only on very specific recovery scenarios. All of these scenarios require manual intervention and therefore the CD should be stored in a secure physical location and used only as part of a procedure for handling these scenarios. 

What should I do if I forgot the Master Password?

If you have the Master Key, you can reset the master password using the Master Password Reset script. Contact your Account Executive for assistance. Reference: How to run the Master Password Reset script

What should I do if I lost the Master Key?

Engage your CyberArk Account Executive immediately to explore options for the Master Key Recovery service. Reference: Master Key Recovery (MKR) Service

 

 



Additional Information


Details

Q:
We have stored the Operator Key on the HSM. Is there an option to store the Master CD?

A:
The Master CD containing the Private Recovery Key (recprv.key) should not be stored on the HSM as this key is never used by the Vault. The Master key is required only on very specific recovery scenarios. All of these scenarios require manual intervention and therefore the CD should be stored in a secure physical location and used only as part of a procedure for handling these scenarios.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj000000133vCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail