Study guide

1.3 Vault Cryptography, Encryption Keys & Master User Recovery

CyberArk Defender - PAM PAM-DEF

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Vault Architecture, Network & Security

1.1 CyberArk PAS Core Architecture & Component Topology 1.2 Vault OS Hardening, Network Isolation & Port Requirements 1.3 Vault Cryptography, Encryption Keys & Master User Recovery

2 Chapter 2: Vault Configuration, Administration & CLI Utilities

2.1 Vault Server Configuration Files & DBParm.ini Tuning 2.2 Vault Administrative Utilities & PARClient Commands 2.3 Event Notification Engine (ENE) & Notification Administration

3 Chapter 3: Password Vault Web Access (PVWA) Administration

3.1 PVWA Web Portal Architecture & Interface Configuration 3.2 PVWA REST API Administration & Lifecycle Automation 3.3 PVWA Security Settings, User Access & Session Timeouts

4 Chapter 4: Central Policy Manager (CPM) Architecture & Operations

4.1 CPM Service Architecture, Logs & Multi-CPM Load Distribution 4.2 The Credential Management State Machine: Change, Verify & Reconcile 4.3 CPM Plug-in Architecture, Process/Prompts Files & Custom Plug-in Troubleshooting 4.4 Loosely Connected Devices: Rotating Laptop & Workstation Credentials

5 Chapter 5: Safe Design, RBAC & Account Governance

5.1 Enterprise Safe Architecture & Naming Conventions 5.2 Safe Permissions, Authorizations & Safe Handler Delegation 5.3 Object Versioning, Retention Policies & Storage Quotas 5.4 Mandatory Account Properties, Account Types & Linked Accounts 5.5 Vault Users, Predefined Groups & Vault-Level Authorizations

6 Chapter 6: Account Discovery & Lifecycle Workflows

6.1 Automated Account Discovery, Detection Rules & Pending Accounts 6.2 Dual Control Workflows, Multi-Level Approvals & Master Approver 6.3 Exclusive Access, One-Time Passwords (OTP) & Check-out Automation 6.4 Bulk Onboarding: Password Upload Utility, Bulk Upload REST API & AccountUploader

7 Chapter 7: Master Policy & Platform Management

7.1 Master Policy Framework & Enterprise Compliance Rules 7.2 Platform Architecture, Settings Tree & Platform Duplication 7.3 Platform Policy Overrides, Advanced Settings & Target Tuning

8 Chapter 8: Privileged Session Manager (PSM) Core Architecture

8.1 PSM Architecture, Jump Host Isolation & Service Accounts 8.2 PSM Connection Components (PSM-RDP, PSM-SSH, PSM-Web) 8.3 PSM Universal Connector Framework & Custom Integrations 8.4 Split Workflow: Separating Session Use from Credential Retrieval

9 Chapter 9: PSMP, HTML5 Gateway & Session Security

9.1 PSM for SSH (PSMP) Architecture & Unix Proxy Brokering 9.2 PSM HTML5 Gateway Architecture & Clientless Web Access 9.3 Session Recording, Storage in Recordings Safes & Vault Retention 9.4 CyberArk Remote Access (Vendor PAM): Administering Third-Party Privileged Access

10 Chapter 10: Live Session Auditing, Reporting & Privileged Threat Analytics

10.1 Live Session Monitoring, Shadowing & Active Termination 10.2 Privileged Threat Analytics (PTA) Behavioral Anomaly Detection 10.3 PTA Automated Incident Response & SIEM Integration (CEF/Syslog) 10.4 Vault Reports, Report Authorizations & the Export Vault Data (EVD) Utility

11 Chapter 11: Application Access Manager (AAM) & Secrets Management

11.1 AAM Credential Provider (CP) Architecture & Local Memory Cache 11.2 Central Credential Provider (CCP) & Web Service Integration 11.3 Application Server Credential Provider (ASCP) & Application Authentication (AppID) 11.4 Conjur Secrets Manager & Cloud-Native DevOps Workflows

12 Chapter 12: Directory Integration, Disaster Recovery & Troubleshooting

12.1 Directory Integration: LDAP Mapping, RADIUS MFA & SAML 2.0 SSO 12.2 Disaster Recovery (DR) Vault & PADR Replication Architecture 12.3 Vault Backup Operations with PAReplicate & Safe Recovery 12.4 Diagnostic Procedures, Vault/CPM/PSM Error Codes & System Recovery

1.3 Vault Cryptography, Encryption Keys & Master User Recovery

Key Takeaways Explain This Topic AI

CyberArk implements a multi-tier envelope encryption model where unique Object Encryption Keys (OEK) are encrypted by Safe Keys, which are subsequently encrypted by the master Server Key.

The master Server Key (Server.key) is loaded into volatile, non-pageable memory only while the PrivateArk Server service runs, and can be safeguarded inside an HSM via PKCS#11.

The Master CD houses the asymmetric Recovery Private Key (recprv.key) and emergency Master user credentials, and must be physically secured offline under dual-custody control.

The public recovery key (recpub.key) resides permanently on the Vault to encrypt emergency key copies, but recovery decryption is impossible without the offline recprv.key.

Component credential (.cred) files securely store authentication secrets bound to local host entropy, preventing credential extraction or replay across differing servers.

Last updated: September 2026

1.3 Vault Cryptography, Encryption Keys & Master User Recovery

Quick Answer: The CyberArk Digital Vault secures privileged assets through a multi-tiered envelope encryption hierarchy . Every stored credential or secret file is encrypted with a unique Object Encryption Key (OEK) . In turn, OEKs are encrypted by their respective Safe Key , and all Safe Keys are encrypted by the master Server Key ( Server.key ) . For enterprise hardening, the Server Key is protected inside a Hardware Security Module (HSM) via PKCS#11. In disaster recovery or break-glass scenarios where the Server Key is lost, data is recovered using the asymmetric Recovery Private Key ( recprv.key ) and the built-in Master user credentials, stored offline on the Master CD .

The Hierarchical Envelope Encryption Model

CyberArk implements a hierarchical cryptographic architecture based on envelope encryption (key wrapping) using AES-256 (Advanced Encryption Standard with 256-bit keys). This design cryptographically isolates assets and enables rapid key rotation without requiring bulk re-encryption of underlying storage volumes.

The cryptographic hierarchy comprises three principal layers:

Object Level (Object Encryption Key - OEK): Every individual credential object (password, SSH key, or secret file) stored within a Safe is encrypted with its own unique symmetric 256-bit OEK. The encrypted payload is written to the Safe directory on disk as an encrypted file, ensuring independent protection.

Safe Level (Safe Key): Each Safe represents an isolated cryptographic domain protected by an individual Safe Key . The Safe Key encrypts and decrypts the Object Encryption Keys of all objects in that Safe. Compromising one Safe does not expose others.

Server Level (Master Server Key - Server.key ): The top-level master symmetric key of the Digital Vault. The Server Key encrypts all Safe Keys and internal database tables. When the PrivateArk Server service starts up, it reads Server.key , decrypts the Safe Keys into volatile memory, and uses them for real-time access. When the service stops, keys are purged from memory.

Server Key Protection & Hardware Security Modules (HSMs)

Because the Server Key ( Server.key ) unlocks all Safe Keys in the Vault, its safeguarding dictates the security posture of the PAM deployment.

CyberArk provides two deployment options for the Server Key:

1. File-Based Storage

In standard deployments, the Server Key is stored as Server.key :

Startup Loading: Defined in DBParm.ini via ServerKey=<Path>\Server.key .

Storage Medium: Historically mounted on removable media during boot; in modern virtualized environments, it resides on a dedicated, restricted NTFS partition granting access only to the local Windows SYSTEM account.

Operator Key: In environments requiring manual intervention to start the Vault, an Operator Key is maintained on removable media, requiring administrative insertion at startup.

2. Hardware Security Module (HSM) Integration

For environments requiring FIPS 140-2 Level 3 compliance, storing the Server Key on host file systems is prohibited. CyberArk integrates with dedicated Hardware Security Modules (HSMs) :

PKCS#11 Standard: The Vault interfaces with the HSM using the standard PKCS#11 API (Thales, Gemalto, Utimaco, AWS CloudHSM).

Hardware Boundary: The Server Key is generated directly inside the tamper-resistant hardware boundary of the HSM and marked non-exportable. It never exists in plaintext on host storage or OS memory.

Cryptographic Operations: Safe Keys are transmitted over PKCS#11 to the HSM, which executes symmetric operations internally, returning wrapped/unwrapped Safe Keys to Vault memory.

The Asymmetric Recovery Pair & The Master CD

CyberArk incorporates an asymmetric cryptographic recovery pair based on RSA public-key cryptography (2048-bit or 4096-bit), ensuring encrypted assets remain recoverable if the Server Key is lost or damaged.

1. The Public Recovery Key ( recpub.key )

Generated during initial installation:

Placed permanently on the Vault server: %ProgramFiles(x86)%\PrivateArk\Server\Conf\recpub.key .

Whenever a Safe is created, a secondary copy of the Safe Key is encrypted using recpub.key and stored in the database. As a public key, extracting recpub.key provides no capability to decrypt data objects.

2. The Private Recovery Key ( recprv.key ) & The Master CD

The Recovery Private Key ( recprv.key ) is the ultimate break-glass asset:

Physical Isolation: Written to the Master CD during installation and NEVER stored on the Vault hard drive .

Break-Glass Authority: Possession of recprv.key allows an administrator to decrypt emergency copies of Safe Keys, bypassing the Server Key.

Dual-Custody Governance: The Master CD must be stored in a tamper-evident envelope in a safe deposit box under a strict two-person rule (dual control). Access requires authorization from independent corporate custodians.

Emergency Recovery & Break-Glass Procedures

When standard access fails or database corruption occurs, CyberArk provides dedicated disaster recovery mechanisms.

The Built-In Master User

During installation, two built-in administrative accounts are created: Administrator and Master :

The Administrator Account: The daily administrative identity used to manage Safes and policies through PVWA or PrivateArk Client.

The Master User: The emergency break-glass identity. The Master user cannot log in via PVWA; authentication is permitted exclusively through the desktop PrivateArk Client directly to the Vault server IP.

Emergency Password Reset: If the primary Administrator password is lost or locked, an administrator attaches the Master CD containing recprv.key and logs in as Master to reset credentials or reassign Safe ownership.

Emergency Safe Decryption with PARestore

If total OS destruction or database loss occurs without an operational secondary Vault, Safe contents can be extracted from backups:

Retrieve raw encrypted Safe files ( .enc ) from backup storage.

On an isolated workstation, run the recovery utility PARestore.exe .

Mount the Master CD containing recprv.key .

PARestore uses recprv.key to decrypt Safe Key envelopes, decrypts Object Encryption Keys, and outputs raw plaintext credentials.

Key Rotation & Component Credential Lifecycle

Maintaining the cryptographic integrity of the PAS deployment involves regular rotation of operational keys and component authentication secrets:

Cryptographic Asset File / Mechanism Standard Storage Location Rotation Procedure

Server Key Server.key AES-256 Symmetric Disk, removable media, or HSM Rotated via ChangeServerKeys.exe ; re-encrypts all Safe Keys.

Safe Key Internal Token AES-256 Symmetric Vault database (wrapped) Regenerated during Safe migration or manual re-keying.

Object Key (OEK) Payload Key AES-256 Symmetric Prepended to encrypted object Regenerated automatically every time an account secret updates.

Public Recovery Key recpub.key RSA 2048/4096 Public Conf\recpub.key on Vault Generated at install; wraps Safe Keys for break-glass recovery.

Private Recovery Key recprv.key RSA 2048/4096 Private Offline Master CD (Safe Box) Generated once at install; never kept on the Vault host.

Component Credentials .cred files Host Entropy Token Component folders (PVWA, CPM, PSM) Rotated via CreateCredFile.exe ; bound to OS DPAPI, hostname, path.

Component Credential Files ( .cred )

Components authenticate to the Vault using credential files generated by CreateCredFile.exe , binding secrets to local machine entropy :

  • Current Windows User Security Identifier (SID)
  • Host Machine Name and IP Address
  • Windows Data Protection API (DPAPI) master keys
  • Absolute Application Executable File Path

If an attacker steals a .cred file, environment checks fail on any other system and the Vault rejects authentication, preventing lateral credential harvesting.

Loading diagram... Vault Envelope Encryption Hierarchy & Break-Glass Cryptographic Flow