Integrating Invicti Enterprise with HashiCorp Vault
HashiCorp Vault is a secret management system that provides access to (secret key values), such as password and API keys, in a secure way. Due to its centralized system, HashiCorp Vault also records an audit log to check who accessed different features, such as a database. In addition to these benefits, it also encrypts secrets at rest and in transit, and provides applications with access to these secrets for a limited time.
Invicti Enterprise provides integration with HashiCorp Vault Key-Value (KV) to provide the following benefits:
- To eliminate the need to share sensitive credentials for vulnerability scanning on password-protected webpages.
- To automate credential retrieval to carry out vulnerability assessment on the target website.
- To manage credentials easily while also ensuring that vulnerability scanning is carried out.
For further information, refer to What Systems Does Invicti Integrate With? and Privileged Access Management and Invicti.
How to integrate Invicti Enterprise with HashiCorp Vault
- Sign in to Invicti Enterprise.
- In the main menu, select Integrations > New Integration.
- From the Secrets and Encryption Management section, select HashiCorp Vault.
- Enter a Name for the integration.
- Enter your base HashiCorp Vault URL.
- Select an authentication type:
- Token: Authentication is performed using access tokens provided by the Vault.
- TLS Certificate: Authentication is performed using a TLS certificate that you provide.
- Continue by following the relevant instructions below depending on your choice of authentication.
Token Authentication
- Under Agent Mode, select an option:
- Cloud: Invicti verifies the connection with a cloud agent available in the Invicti Enterprise environment.
- Internal: Invicti verifies the connection with an authentication verifier agent installed on your environment. For further information, refer to Configuring internal agents for secrets management services.
- Click Verify and Save to test the connection and save it. (If you have more than one authentication verifier agent, there is a drop-down to select the verifier agent.)
TLS Certificate Authentication
- Select Certificate File… and upload the required file.
- If your certificate has a password configured, enter the password in the Certificate Password field. Leave this field blank if your certificate does not require a password.
- If your certificate is installed using the default path, then you do not need to enter anything into the Path field. The default path is: cert
If your certificate is installed in a different location, enter the path in the Path field. - Under Agent Mode, select an option:
- Cloud: Invicti verifies the connection with a cloud agent available on the Invicti Enterprise environment.
- Internal: Invicti verifies the connection with an authentication verifier agent installed on your environment. For further information, refer to Configuring internal agents for secrets management services.
- Click Verify and Save to test the connection and save it. (If you have more than one authentication verifier agent, there is a drop-down to select the verifier agent.)
Verifying form authentication with HashiCorp Vault
After successfully integrating HashiCorp Vault, you can use this integration to verify a form authentication before launching a new scan.
This table lists and explains the fields in the HashiCorp Vault Settings dialog.
Field | Description |
Integrations | This is the name of the integration that you entered in the New Vault Integration window. |
KV Version | This section contains the Key-Value Version. There are two options: V1 and V2. Please select the relevant one. |
Secret Engine | This is the name you entered in the Vault for your engine. |
Secret | This is the name you entered in the Vault for the target website. |
Username Key | This holds the username value. Enable the Use static username checkbox only if you plan not to change a username routinely. |
Password Key | This holds the password value. |
How to use the Vault integration to verify form authentication
- Sign in to Invicti Enterprise.
- In the main menu, select Scans > New Scan.
- Enter the Target URL.
- From the Authentication settings, select the Form tab.
- Select Form Authentication.
- Click the New Persona drop-down, and select Hashicorp Vault.
- Complete the fields in the HashiCorp Vault Settings dialog box.
- Select Test Vault Settings to test the connection.
- Select Save.
- From the Personas' section, select Verify Login & Logout to test the new Persona.
Information | |
Select Test Value Settings to verify the username and password. |