Vault: Can Hardening be re-executed?

Vault: Can Hardening be re-executed?

86
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 15:55 PM


Question


Can the vault be "re-hardened" after an upgrade?

Environment


9.6;9.7;9.8;9.9;9.9.5;9.10;10.0;10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9

Answer


Yes, the vault can be "re-hardened" after an upgrade.
Reminder: It's recommended to backup your inbound and outbound firewall rules if you need them. Running the hardening removes all static rules. Any rules in your dbparm.ini should get added back in after starting the service, same with the cluster vault service. You'll need to recreate or reimport your previous rules if needed. 

Stop the Vault services before running the steps below.

The command to run vault hardening is "CAVaultHarden" which is located in %InstallDir%/Server/Hardening.
Note: The %InstallDir% is the top level directory of the vault installation. By default, this is C:\Program Files (x86)\PrivateArk

The CAVaultHarden command has two mandatory parameters: 
* Configuration folder: This is the folder that contains the configuration files which can be HAVault or StandaloneVault 
* Log folder: Where it writes the log file to 

You can run it as such 
CAVaultHarden <Configuration Folder> <Log Folder> 

To get output of the script: 
CAVaultHarden <Configuration Folder> <Log Folder> > .\Hardening.log 

The Hardening log will point to the specific log file that was generated by the actual Windows hardening commands

Note 1: If the vault hardening was already done, the log file may contain error messages related to components that were already hardened by the previous command.

Note 2: If RDP is to be allowed to the vault, the command must be run with the /allowRDP switch, as below:

CAVaultHarden.exe StandAloneVault "[Full Path of Current Directory]" /AllowRDP [RDP Station IP]

Note 3: A reboot of the server is required after running the hardening steps



Actions
  • Print
  • Copy Link

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