6 Configuring and Maintaining OPENVAS SECURITY INTELLIGENCE

6.1 Upgrading OPENVAS SECURITY INTELLIGENCE

6.1.1 Migrating from Version 1.6.1 to Version 1.7.0

Upgrading OPENVAS SECURITY INTELLIGENCE from version 1.6.1 to version 1.7.0 requires a database migration.

This migration consolidates database services to reduce overhead and improve resource utilization while preserving existing data. It also prepares the database structure for future features.

The migration must be started immediately before upgrading to version 1.7.0 and must be completed after the upgrade.

The migration procedure depends on the installation method of OPENVAS SECURITY INTELLIGENCE:

  • OPENVAS SECURITY INTELLIGENCE installed on OPENVAS OS (see Chapter 6.1.1.2)

  • OPENVAS SECURITY INTELLIGENCE installed on Linux using Docker (see Chapter 6.1.1.3)

6.1.1.1 Prerequisites and Important Notes

The following prerequisites must be met before starting the migration:

  • The migration can only be performed from OPENVAS SECURITY INTELLIGENCE version 1.6.1. If an earlier version is installed, it must first be upgraded to version 1.6.1 as described in the corresponding migration procedure.

  • If OPENVAS SECURITY INTELLIGENCE is installed on OPENVAS OS, version 0.16.0 or later of the os-container-management component must be installed. The installed version can be checked by running the following command on OPENVAS OS:

    os-cli upgrade show os-container-management
    

    If an earlier version is installed, OPENVAS OS must be updated as described in the OPENVAS OS manual before starting the migration.

  • Python 3.6 or later and OpenSSL must be installed on the system. Both should already be available on all supported operating systems.

  • A maintenance window must be scheduled for the backup, upgrade, and data restoration. The duration of the migration depends on the amount and structure of the stored data.

  • All running data imports must be stopped before starting the migration. Otherwise, it cannot be ensured that the backup contains all data.

  • A secure backup location with sufficient free storage space must be available for the backup and data restoration.

    • Backup: Approximately as much free storage space as is currently occupied by the OPENVAS SECURITY INTELLIGENCE databases is required.

    • Data restoration: Depending on the amount and structure of the stored data, the restoration process may temporarily require several times the storage space currently occupied by the databases. The actual storage space required cannot be reliably estimated in advance.

    It is therefore recommended to provide as much free storage space as possible before starting the migration.

    Note

    The migration scripts check the available storage space. However, a successful check does not guarantee that sufficient storage space is available for the entire data restoration process.

  • The scripts required for the migration are already included in the OPENVAS SECURITY INTELLIGENCE installation.

Warning

OPENVAS SECURITY INTELLIGENCE must not be used from the start of the backup until the data restoration has been completed.

Although OPENVAS SECURITY INTELLIGENCE is temporarily accessible during the upgrade, any data created or modified after the backup and before the restoration is lost.

During the migration, the system must not be rebooted, commands must not be interrupted, additional upgrades must not be performed, and the system configuration must not be changed.

Note

The backup, restore, and cleanup commands each create a diagnostic log file in the current working directory.

If OPENVAS SECURITY INTELLIGENCE is installed on OPENVAS OS, these log files are also included in the OPENVAS OS support package (see OPENVAS OS user manual).

The log files and the command output should be retained in case troubleshooting is required.

6.1.1.2 Migrating OPENVAS SECURITY INTELLIGENCE on OPENVAS OS

  1. Access the shell of OPENVAS OS as the admin user.

  2. Switch to the root user:

    su -
    
  3. If a version of OPENVAS SECURITY INTELLIGENCE earlier than 1.6.1 is installed, upgrade to version 1.6.1:

    os-cli container-management upgrade-product security-intelligence --version 1.6.1
    
  4. Define an alias for the backup script:

    alias backup-databases-before-upgrade.sh='/var/lib/docker/compose/greenbone_operator/compose/backup-databases-before-upgrade.sh'
    

    Note

    All subsequent commands must be executed in the same shell session.

  5. Specify an absolute path to a directory in which the backup is to be stored:

    BACKUP_DIR='<ABSOLUTE_PATH_TO_NEW_BACKUP>'
    

    Note

    If the specified directory already exists, it must be empty.

  6. Create a backup of the existing data:

    backup-databases-before-upgrade.sh --backup-dir "$BACKUP_DIR"
    
  7. Enter a new backup passphrase and confirm it by entering it again.

    Note

    The backup passphrase must be stored securely, for example, in a password manager. If the passphrase is lost, the backup cannot be restored and must be created again.

    → The backup is being created.

    Warning

    Wait until the backup has been completed successfully.

    If the backup fails, OPENVAS SECURITY INTELLIGENCE must not be upgraded. See Chapter 6.1.1.4 for troubleshooting.

    The entire backup directory must be retained.

  8. Immediately upgrade OPENVAS SECURITY INTELLIGENCE to version 1.7.0:

    os-cli container-management upgrade-product security-intelligence --version 1.7.0
    

    Note

    OPENVAS SECURITY INTELLIGENCE must be upgraded to version 1.7.0. Upgrading directly to a later version is not supported during the migration.

    → OPENVAS SECURITY INTELLIGENCE is being upgraded.

    Note

    The upgrade will make the login page accessible, so continue directly with the next step after the upgrade is finished. Starting the restore script will make OPENVAS SECURITY INTELLIGENCE unavailable to users again.

  9. Define an alias for the restore script:

    alias restore-databases-after-upgrade.sh='/var/lib/docker/compose/greenbone_operator/compose/restore-databases-after-upgrade.sh'
    
  10. Restore the data from the backup:

    restore-databases-after-upgrade.sh --backup-dir "$BACKUP_DIR"
    
  11. Confirm the replacement of the newly initialized product databases with the data from the backup.

  12. Enter the backup passphrase.

  13. Confirm that the upgrade attempt has ended by entering yes.

    Note

    Only enter yes after the upgrade attempt has ended.

    In some cases, the data can also be restored after a failed upgrade, particularly if the failure is related to a previously failed or interrupted data restoration.

    The restore script checks whether the prerequisites for the data restoration are met and reports any missing prerequisites.

    → The data is being restored.

    During the data restoration, the restore script verifies the restored data, reorganizes the data structures, and verifies that OPENVAS SECURITY INTELLIGENCE starts successfully.

    Note

    Wait until the data restoration has been completed successfully.

    If the data restoration fails, see Chapter 6.1.1.4 for troubleshooting.

    → OPENVAS SECURITY INTELLIGENCE is available to users again.

  14. Verify that OPENVAS SECURITY INTELLIGENCE is working as expected.

  15. If desired, free up storage space by removing the contents of the legacy databases:

    Warning

    The contents of the legacy databases are deleted immediately without further confirmation. After the contents of the legacy databases have been deleted, reverting to version 1.6.1 is no longer possible.

    restore-databases-after-upgrade.sh --cleanup-legacy-volumes
    

    Note

    The script only allows the contents of the legacy databases to be removed after the migration has been completed successfully.

    → OPENVAS SECURITY INTELLIGENCE remains available while the contents of the legacy databases are removed.

    Once the migration has been verified as successful and the legacy database contents have been removed, the backup directory can also be deleted.

6.1.1.3 Migrating OPENVAS SECURITY INTELLIGENCE on Linux Using Docker

Note

All commands using the openvas-deployment script in this chapter must be executed from the working directory used to initialize the deployment. This directory must contain the openvas-deployment script.

  1. Access the shell of the system on which OPENVAS SECURITY INTELLIGENCE is installed.

  2. Ensure that the user executing the commands has access to Docker.

    If required, switch to the root user, for example:

    sudo -i
    
  3. Change to the working directory used to initialize the deployment:

    cd "<DEPLOYMENT_DIRECTORY>"
    
  4. If a version of OPENVAS SECURITY INTELLIGENCE earlier than 1.6.1 is installed, upgrade to version 1.6.1:

    ./openvas-deployment --product security-intelligence --update --version 1.6.1
    
    ./openvas-deployment --product security-intelligence --run --version 1.6.1
    
  5. Determine the location of the backup and restore scripts:

    docker compose ls --all
    

    → Both scripts are located in the same directory as the configuration file listed for the entry security-intelligence in the output.

  6. Define an alias for the backup script:

    alias backup-databases-before-upgrade.sh='<SCRIPT_DIRECTORY>/backup-databases-before-upgrade.sh'
    

    Note

    All subsequent commands must be executed in the same shell session.

  7. Specify an absolute path to a directory in which the backup is to be stored:

    BACKUP_DIR='<ABSOLUTE_PATH_TO_NEW_BACKUP>'
    

    Note

    If the specified directory already exists, it must be empty.

  8. Create a backup of the existing data:

    backup-databases-before-upgrade.sh --backup-dir "$BACKUP_DIR"
    
  9. Enter a new backup passphrase and confirm it by entering it again.

    Note

    The backup passphrase must be stored securely, for example, in a password manager. If the passphrase is lost, the backup cannot be restored and must be created again.

    → The backup is being created.

    Warning

    Wait until the backup has been completed successfully.

    If the backup fails, OPENVAS SECURITY INTELLIGENCE must not be upgraded. See Chapter 6.1.1.4 for troubleshooting.

    The entire backup directory must be retained.

  10. Immediately upgrade OPENVAS SECURITY INTELLIGENCE to version 1.7.0:

    ./openvas-deployment --product security-intelligence --update --version 1.7.0
    
    ./openvas-deployment --product security-intelligence --run --version 1.7.0
    

    Note

    OPENVAS SECURITY INTELLIGENCE must be upgraded to version 1.7.0. Upgrading directly to a later version is not supported during the migration.

    → OPENVAS SECURITY INTELLIGENCE is being upgraded.

    Note

    The upgrade will make the login page accessible, so continue directly with the next step after the upgrade is finished. Starting the restore script will make OPENVAS SECURITY INTELLIGENCE unavailable to users again.

  11. Define an alias for the restore script:

    alias restore-databases-after-upgrade.sh='<SCRIPT_DIRECTORY>/restore-databases-after-upgrade.sh'
    
  12. Restore the data from the backup:

    restore-databases-after-upgrade.sh --backup-dir "$BACKUP_DIR"
    
  13. Confirm the replacement of the newly initialized product databases with the data from the backup.

  14. Enter the backup passphrase.

  15. Confirm that the upgrade attempt has ended by entering yes.

    Note

    Only enter yes after the upgrade attempt has ended.

    In some cases, the data can also be restored after a failed upgrade, particularly if the failure is related to a previously failed or interrupted data restoration.

    The restore script checks whether the prerequisites for the data restoration are met and reports any missing prerequisites.

    → The data is being restored.

    During the data restoration, the restore script verifies the restored data, reorganizes the data structures, and verifies that OPENVAS SECURITY INTELLIGENCE starts successfully.

    Note

    Wait until the data restoration has been completed successfully.

    If the data restoration fails, see Chapter 6.1.1.4 for troubleshooting.

    → OPENVAS SECURITY INTELLIGENCE is available to users again.

  16. Verify that OPENVAS SECURITY INTELLIGENCE is working as expected.

  17. If desired, free up storage space by removing the contents of the legacy databases:

    Warning

    The contents of the legacy databases are deleted immediately without further confirmation. After the contents of the legacy databases have been deleted, reverting to version 1.6.1 is no longer possible.

    restore-databases-after-upgrade.sh --cleanup-legacy-volumes
    

    Note

    The script only allows the contents of the legacy databases to be removed after the migration has been completed successfully.

    → OPENVAS SECURITY INTELLIGENCE remains available while the contents of the legacy databases are removed.

    Once the migration has been verified as successful and the legacy database contents have been removed, the backup directory can also be deleted.

6.1.1.4 Troubleshooting

If problems occur during the migration, the following troubleshooting measures can be taken:

Problem

Troubleshooting measures

OPENVAS SECURITY INTELLIGENCE does not start after the upgrade.

Check the migration guard logs as the root user (see below). If prerequisites are missing, follow the instructions provided in the logs. Otherwise, check the logs of the affected application or contact the Greenbone Support Team.

The backup fails or is interrupted.

Follow the recovery instructions provided by the backup script and execute the same backup command again. Do not upgrade OPENVAS SECURITY INTELLIGENCE.

The data restoration fails before the migration is completed.

Do not use OPENVAS SECURITY INTELLIGENCE. Follow the recovery instructions provided by the restore script and execute the same restore command again using the same backup. Successfully completed phases are preserved. Only redeploy if instructed to do so. Do not upgrade to a later product version to resolve the issue.

The data restoration is completed, but OPENVAS SECURITY INTELLIGENCE does not start.

Execute the same restore command again. The restored and reconstructed data is preserved, and the restore script attempts to start the application again.

The data restoration repeatedly fails.

Follow the recovery instructions provided by the restore script. If the issue persists after repeated attempts, restart the data restoration using the --replace-completed option or contact the Greenbone Support Team. If required, revert to version 1.6.1 (see Chapter 6.1.1.5).

The data restoration fails due to insufficient free storage space.

Do not use OPENVAS SECURITY INTELLIGENCE. If possible, provide additional free storage space and follow the recovery instructions provided by the restore script. If the issue cannot be resolved, revert to version 1.6.1 (see Chapter 6.1.1.5) and contact the Greenbone Support Team.

The backup is outdated and a new backup is required.

Execute the restore command. After the age of the backup is displayed, decline the confirmation prompt and follow the instructions provided by the restore script to create and restore a new backup.

A specific backup needs to be restored again.

Execute the restore command with the --replace-completed option to restart the data restoration from the beginning.

Checking the migration guard logs

The migration guard logs can be displayed by executing the following command as the root user:

docker logs security-intelligence-osi-postgres-migration-guard-1

Restarting the data restoration

The data restoration can be restarted from the beginning by executing the following command:

Note

The following command assumes that the alias for the restore script and the variable BACKUP_DIR are still defined as described in the corresponding migration procedure.

Warning

When the --replace-completed option is used, the existing contents of the databases are replaced with the data from the specified backup. Any subsequent changes to the data are lost.

restore-databases-after-upgrade.sh --backup-dir "$BACKUP_DIR" --replace-completed

Checking the availability of version 1.7.0

The availability of OPENVAS SECURITY INTELLIGENCE version 1.7.0 can be checked programmatically using the script check-osi-1.7-release.py.

The script is located in the same directory as the backup script and the restore script.

The script returns one of the following exit codes:

  • 0: Version 1.7.0 is available.

  • 1: Version 1.7.0 is not available.

  • 2: The availability check failed.

Contacting the Greenbone Support Team

When contacting the Greenbone Support Team for assistance with the migration, the following information should be provided:

  • Installation method

  • Product version and operating system version

  • Diagnostic log files created by the migration scripts

  • Executed commands and their output

  • Migration step that failed and the corresponding error message

If OPENVAS SECURITY INTELLIGENCE is installed on OPENVAS OS, the OPENVAS OS support package should also be provided (see OPENVAS OS user manual).

6.1.1.5 Reverting to Version 1.6.1

If problems occur during the migration and cannot be resolved, it is possible to temporarily revert to OPENVAS SECURITY INTELLIGENCE version 1.6.1.

This is only possible as long as the contents of the legacy databases have not been deleted.

Note

Downgrading OPENVAS SECURITY INTELLIGENCE without a prior backup is generally not supported. Downgrading from version 1.7.0 to version 1.6.1 is an exception.

OPENVAS SECURITY INTELLIGENCE installed on OPENVAS OS

  1. Access the shell of OPENVAS OS as the admin user.

  2. Revert to version 1.6.1:

    os-cli container-management upgrade-product security-intelligence --version 1.6.1
    

    Warning

    Before upgrading to version 1.7.0 again, a new backup must be created and completed successfully as described in the corresponding migration procedure.

    Otherwise, any data created or modified in the meantime is lost.

OPENVAS SECURITY INTELLIGENCE installed on Linux using Docker

Note

All commands using the openvas-deployment script in this chapter must be executed from the working directory used to initialize the deployment. This directory must contain the openvas-deployment script.

  1. Access the shell of the system on which OPENVAS SECURITY INTELLIGENCE is installed.

  2. Change to the working directory used to initialize the deployment:

    cd "<DEPLOYMENT_DIRECTORY>"
    
  3. Download the product artifact for version 1.6.1 and start the deployment:

    ./openvas-deployment --product security-intelligence --update --version 1.6.1
    
    ./openvas-deployment --product security-intelligence --run --version 1.6.1
    

    Warning

    Before upgrading to version 1.7.0 again, a new backup must be created and completed successfully as described in the corresponding migration procedure.

    Otherwise, any data created or modified in the meantime is lost.

6.1.2 Upgrading OPENVAS SECURITY INTELLIGENCE on OPENVAS OS

Warning

Upgrading OPENVAS SECURITY INTELLIGENCE from version 1.6.1 to version 1.7.0 requires a database migration.

Instead of following the instructions described below, follow the migration instructions described in Chapter 6.1.1.

OPENVAS SECURITY INTELLIGENCE can be updated to a newer version as follows:

  1. Access the shell of OPENVAS OS as the admin user.

  2. Upgrade OPENVAS SECURITY INTELLIGENCE by running the following command:

    os-cli container-management upgrade-product security-intelligence
    

6.1.3 Upgrading OPENVAS SECURITY INTELLIGENCE on Linux Using Docker

Warning

Upgrading OPENVAS SECURITY INTELLIGENCE from version 1.6.1 to version 1.7.0 requires a database migration.

Instead of following the instructions described below, follow the migration instructions described in Chapter 6.1.1.

Note

The following commands must be executed from the working directory used to initialize the deployment. This directory must contain the openvas-deployment script.

OPENVAS SECURITY INTELLIGENCE can be updated to a newer version as follows:

  1. Download the latest product artifact:

    ./openvas-deployment --update
    
  2. Run the deployment:

    ./openvas-deployment --run
    
  3. Check the running services:

    ./openvas-deployment --ps
    

6.2 Configuring the Logout Timer

Note

The logout timer can only be configured by a super admin.

The time after which a user is automatically logged out if no action is taken can be changed as follows:

  1. Select Settings > User Management in the menu.

    → The user management is opened in a new browser tab.

  2. Select Realm settings in the menu.

  3. Select the Sessions tab.

  4. Enter the desired time in the input box SSO Session Idle and select the desired unit in the drop-down list.

  5. Click Save.

6.3 Updating the Meta Feed

Note

The meta feed can only be updated by a super admin or an operator.

The meta feed that delivers CVEs, CSAF advisories, EUVD records, CPEs, and vulnerability tests is updated daily at 7:00 a.m. CET/CEST.

It can also be updated manually as follows:

  1. Select Data Management > Feed in the menu.

  2. Click Update Feed.

    → The feed update is running.

    Note

    The timestamp displayed for Last feed update changes only when a feed update includes new content.

6.4 Enabling the Automatic Removal of Assets

Note

The automatic removal of assets can only be configured by a super admin or an operator.

Inactive assets are assets for which the last scan was performed some time ago and which may no longer exist. These assets can be automatically removed from OPENVAS SECURITY INTELLIGENCE. The removal happens automatically once per day.

Note

The time of the last scan can be found, for example, on the Assets page in the Last scan column (see Chapter 9.2.2.1).

The automatic removal of assets can be configured as follows:

  1. Select Settings > Asset Configuration in the menu.

  2. Select the Inactive assets tab.

  3. Click on the toggle switch to enable the automatic asset removal.

  4. Enter the minimum number of days since the last scan of an asset for it to be automatically deleted.

    Note

    Values from 1 to 365 can be entered.

    Assets whose last scan was performed more than the specified number of days ago are removed.

    Example: if the value 30 is entered, assets that were last scanned 31 days ago or earlier will be removed.

  5. Click Save.

_images/automatic-removal-assets.png

Fig. 6.1 Enabling the automatic removal of assets

6.5 Managing Appliance Scopes

Note

Appliance scopes can only be configured by a super admin or an operator.

Appliances connected to OPENVAS SECURITY INTELLIGENCE can be grouped into scopes.

A scope is a named group of appliances that allows for the logical organization of appliances, for example, by location, organizational unit or network environment.

6.5.1 Creating an Appliance Scope

An appliance scope can be created as follows:

  1. Select Settings > Asset Configuration in the menu.

  2. Select the Scopes tab.

  3. Click Add scope.

    _images/add-scope.png

    Fig. 6.2 Creating an appliance scope

  4. Enter a name for the scope in the Scope name input box.

  5. Select the appliances to be included in the scope from the Appliances drop-down list.

    Note

    An appliance can be assigned to only one scope at a time.

  6. Click Save.

6.5.2 Viewing Appliance Scopes

All appliance scopes can be displayed by selecting Settings > Asset Configuration in the menu and then selecting the Scopes tab (see Fig. 6.3).

_images/scopes-overview.png

Fig. 6.3 Scopes page

Tip

In the Column options drop-down menu, the columns to be displayed in the table can be selected.

The columns can be rearranged using drag and drop.

For each appliance scope listed on the page, the following information is displayed:

Scope name

Name that was specified for the appliance scope when it was created.

Appliances

Appliances included in the scope.

Assets

Total number of assets across all appliances in this scope.

For all appliance scopes, the following actions are available:

  • Edit the appliance scope (see Chapter 6.5.3).

  • Delete the appliance scope (see Chapter 6.5.4).

6.5.3 Editing an Appliance Scope

Editing an appliance scope may be necessary in the following cases:

  • Changing the scope name.

  • Adding or removing appliances from the scope.

An appliance scope can be edited as follows:

  1. Select Settings > Asset Configuration in the menu.

  2. Select the Scopes tab.

  3. Click in the Action column.

  4. Update the scope as desired.

    Note

    An appliance can be assigned to only one scope at a time.

  5. Click Save.

6.5.4 Deleting an Appliance Scope

Note

If a scope is deleted, the assigned appliances remain connected to OPENVAS SECURITY INTELLIGENCE but are no longer assigned to a scope.

An appliance scope can be deleted as follows:

  1. Select Settings > Asset Configuration in the menu.

  2. Select the Scopes tab.

  3. Click in the Action column.

    → A warning dialog is displayed asking to confirm the deletion.

    _images/delete-scope.png

    Fig. 6.4 Deleting an appliance scope

  4. Click Delete scope.

6.6 Configuring Alerts

Note

Communication channels and alerts can only be configured by a super admin or an operator.

With alerts, notifications can be sent via various communication channels. This can be used to receive information about completed or failed processes on the system.

6.6.1 Setting up a Communication Channel

Alerts can be sent via e-mail, Mattermost, or Microsoft Teams. Before an alert can be created and used, the corresponding communication channel must be configured.

6.6.1.1 Configuring a Mail Server

Note

Only one mail server can be configured.

A mail server can be configured as follows:

  1. Select Settings > Communications in the menu.

  2. Click Add in the section SMTP host.

    → The Set up an SMTP host dialog is opened.

  3. Enter the host name or IP address of the mail server in the input box Mailhub.

    _images/mail-server.png

    Fig. 6.5 Configuring a mail server

  4. Enter the port the e-mails are delivered through in the input box Port.

  5. Enter the e-mail address that should be displayed as the sender in the input box Sender email address.

  6. If the mail server requires authentication, click on the toggle switch SMTP authentication.

  7. Enter the user name and the password for the SMTP authentication.

  8. If the mail server uses TLS for encryption, click on the toggle switch SMTP enforced TLS.

  9. Define the maximum size of attachments per e-mail in the input box Max. attachment size.

  10. Define the maximum size of an e-mail including attachments in the input box Max. email size.

  11. Click Test connection.

    → The result of the test is displayed next to the button.

    If the connection is not successful, error messages are shown below the input boxes that require changes.

  12. Click Save.

6.6.1.2 Configuring a Microsoft Teams Webhook

Note

A maximum of 20 webhooks can be configured simultaneously.

A Microsoft Teams webhook can be configured as follows:

  1. Select Settings > Communications in the menu.

  2. Click Add in the section MS Teams webhook.

    → The Set up an MS Teams webhook dialog is opened.

  3. Enter a name for the webhook.

    _images/ms-teams-webhook.png

    Fig. 6.6 Configuring a Microsoft Teams webhook

  4. Enter the URL of the webhook in the input box Webhook.

    Note

    Instructions for how to create a Microsoft Teams webhook can be found in the Microsoft Teams documentation.

  5. If required, add a description for the webhook.

  6. Click Test connection.

    → The result of the test is displayed next to the button.

    If the connection is not successful, error messages are shown below the input boxes that require changes.

  7. Click Save.

6.6.1.3 Configuring a Mattermost Webhook

Note

A maximum of 20 webhooks can be configured simultaneously.

A Mattermost webhook can be configured as follows:

  1. Select Settings > Communications in the menu.

  2. Click Add in the section Mattermost webhook.

    → The Set up a Mattermost webhook dialog is opened.

  3. Enter a name for the webhook.

    _images/mattermost-webhook.png

    Fig. 6.7 Configuring a Mattermost webhook

  4. Enter the URL of the webhook in the input box Webhook.

    Note

    Instructions for how to create a Mattermost webhook can be found in the Mattermost documentation.

  5. If required, add a description for the webhook.

  6. Click Test connection.

    → The result of the test is displayed next to the button.

    If the connection is not successful, error messages are shown below the input boxes that require changes.

  7. Click Save.

6.6.2 Creating an Alert

A new alert can be created as follows:

  1. Select Settings > Alert Settings in the menu.

  2. Click Add alert.

  3. Enter a name for the alert.

    _images/add-alert.png

    Fig. 6.8 Creating an alert

  4. Select the event types the alert should be sent for in the drop-down list Event types.

    • Info: An action finished successfully, or a user interaction was carried out successfully. Examples:

      • An SBOM scan finished successfully.

      • The download of new CSAF files finished successfully.

      • An SBOM scan was canceled successfully.

      • The download of new CSAF files was canceled successfully.

      • An import from an appliance was started.

      • An import from an appliance was finished successfully.

    • Warning: An action failed due to an incorrect user action. Example:

      • An SBOM scan was interrupted by a server shutdown.

    • Error: An action failed due to an incorrect configuration. Examples:

      • The download of new CSAF files failed due to an error on the CSAF provider side.

      • An SBOM main CPE generation failed because the necessary fields are invalid.

      • An import from an appliance failed.

    • Urgent: An event requires immediate attention.

  5. Select the components of OPENVAS SECURITY INTELLIGENCE the alert should be sent for in the drop-down list Origin.

  6. Select a previously created communication channel in the drop-down list Channel (see Chapter 6.6).

  7. Click Save.

6.6.3 Managing Alerts

All existing alerts can be displayed by selecting Settings > Alert Settings in the menu (see Fig. 6.9).

  • Display details of the alert.

  • Edit the alert.

  • Delete the alert.

  • An alert can be activated or deactivated by clicking on the toggle switch.

_images/alerts-overview.png

Fig. 6.9 Managing alerts