Migration Guidance:Data retention from Tenable for Vulnerability Response to Vulnerability Response integration with TenableSummary<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Overview This article is intended to guide you migrate your data from the Tenable-built Vulnerability Response integration to the ServiceNow-built Vulnerability Response Integration with Tenable. You can learn the migration process from the video posted in the community. Note: This process is time consuming. It may take significantly longer time depending on the volume of the data you have on your instance. Role required: sn_vul.admin Supported Tenable connectors versions: v2.5, v2.6, v2.7, v3.0, v3.1 Note: Customer can consider this migration path only for the certified Tenable connector versions i.e v2.5, v2.6, v2.7, v3.0 and v3.1. For other versions of Tenable connector, customer should not consider this migration yet. Alternatively, you can delete the existing data of the Tenable connector and uninstall the tenable plugins. Follow the instructions outlined in the KB0863702 for the clean-up process. Data migration for the purposes of this article includes the following four phases: Perform pre-migration stepsConfirm completion of the pre-migration script and generate the reportMigrate dataPerform post-migration steps This Migration performs the following data transformations: Connectors are migrated to integration instances.Discovered Items are created for all assets. From 3.x, Discovered Items will be created for unique CIs only.Detections are created for Vulnerable Items. See the following section for more information.Vulnerable item data is enhanced by adding integration instances, discovered items. Note: Closed VIs will not be migrated as part of the process. However, closed VIs exist in the instance to maintain the history of closed VIs. If the same vulnerability exist in the asset and comes again in the future integrations, a new VI will be created Note: For additional details about the possible errors during migration, navigate to the Troubleshooting section in this document. VI granularity Duplicate vulnerable items are VIs that have the same combination of a vulnerability and a configuration item. By default, the ServiceNow Tenable integration identifies vulnerable item as a unique combination of a configuration item (CI), a vulnerability, and an integration instance. The Tenable for Vulnerability Response integration (Tenable-built application) creates vulnerable items with a granularity that includes unique Port i.e configuration item (CI), a vulnerability, port. To ensure distinct VIs are created, include Port in your new integration application from the migrated data from the Tenable-built application by enabling the Include Port option in the Configure VI key module just prior to your data migration. This option ensures that two distinct VIs, each a with a unique port, are created from the migrated data from the Tenable-built application. For example, if two existing VIs are migrated that have the same vulnerability and configuration item but with different ports, say Port1 and Port2, exists, then two unique VIs (one for each port) should be created in the new ServiceNow Tenable Integration application also. When the VI key granularity does not include Port, one VI with two VI detections associated to this VI are created for the corresponding two VIs (for each unique ports) that were originally created in the Tenable-build integration. As a result, if the Include Port option is not enabled prior to the migration, your instance might contain duplicate, stale VIs after the migration. Please note: When you enable the VI granularity, new detections create new vulnerable items as well that correspond to unique ports. If duplicate vulnerable items are found while migrating, VIs in the 'Open' state take precedence. When not in the 'Open' state, duplicate VIs are migrated in the descending order shown in the following list, starting with 'Under Investigation'. When there are duplicate VIs, only the VI with the highest precedence state is migrated. The detections are created for the remaining duplicate VIs, and these are not migrated. Vulnerable items in the 'Closed' state are not migrated. The order of precedence(order) is given below. Vulnerable items are processed by state in the following order: Open Under Investigation Awaiting Implementation Deferred Resolved The following table illustrates the precedence for how VIs are migrated: Existing VIs (states) -[Migrated]Processing VIs (states) -[Current]OpenUnder InvestigationAwaiting ImplementationDeferredResolved OpenOpenOpenOpenOpenOpenUnder Investigation Under InvestigationUnder InvestigationUnder InvestigationAwaiting Implementation Awaiting ImplementationAwaiting ImplementationAwaiting ImplementationDeferred DeferredDeferredResolved Resolved The following example illustrates the data migration with the granularity disabled NumberConfiguration ItemVulnerability PortStateVIT123CI1TEN-12380OpenVIT124CI1TEN-123443Under Investigation In the above example, VIT123 will be processed first as the vulnerable item is in open state. Detection will be created and "VIT123" will be enhanced by adding integration instances, discovered items. When the VIT124 is being processed, the migration script detects it as a duplicate. In this example a new detection with port 443 is created and it maps VIT123. VIT124 will not be enhanced and left as it is in the instance. Note: The duplicate vulnerable items report will be available in "sn_vul_tenable_duplicate_mapping" table post migration. To change the order in which VI's are migrated follow the below steps Navigate to System Definition -> Script Includes -> TenableMigrationHelper Change the list of states on line number 127 in the order in which vulnerable items should be migrated. If you would like to migrate closed vulnerable items include state 3 in the list. Parallel processing: The migration is configured to run on 4 parallel threads. The VI's with VI and CI which are not in closed state are divided into chunks. The chunks are created after the pre validation check. The asset mismatch reports generation starts after the chunks are created. Each chunk has 1000 VI's. If a configuration item has more than 1000 Vulnerable items, all the vulnerable items will be configured in the same chunk. In this case the chunk can have more than 1000 vulnerable items. Each chunk can be in one of the following state: NewPre Migration progressPre Migration CompleteMigration ProgressMigration CompletePre Migration ErrorMigration Error Number of threads that can run in parallel can be configured by changing the noOfThreads in the following scheduled job Pre Migration Script Migrate VI Monitor Chunk Data Note: The number of threads should be less than the total number of threads available in the instance. Steps to configure the number of threads After the resources are loaded into the instance Navigate to System maintenance > Scheduled Jobs > Pre Migration Script. Change the noOfThreads in line 1 of the scriptNavigate to System maintenance > Scheduled Jobs > Migrate VI. Change the noOfThreads in line 1 of the scriptNavigate to System maintenance > Scheduled Jobs > Monitor Chunk Data. Change the noOfThreads in line 1 of the script Note: Increasing the number of threads will use more Memory/DB. Please evaluate the available resources before changing the number of threads parameter Note: If there are more than 100000 configuration Items associated with vulnerable items glide.db.max.aggregates should be increased to the number of configuration items available Phase 1: Pre-migration steps Perform these steps prior to your migration. If any of the following steps are skipped or not completed before you start your migration, the migration might not complete successfully. Notes Tenable Additional Info is used to migrate the data.Vulnerable items without configuration item or Vulnerability or Tenable Additional info are not migrated. Vulnerable items which are not associated with the connectors are not migrated. Please refer to the summary record in the log table after the pre migration script execution.Don't change or customise the new Tenable application prior to performing the migration. Any configuration changes or creation of integration instances should be done after the migration is successfully completed. Steps to follow Install the Vulnerability Response Integration with Tenable application (built by ServiceNow).Disable all the integrations in the Tenable for Vulnerability Response application (built by Tenable). Before you proceed, verify that no two connectors in the Tenable for Vulnerability Response (Tenable-built) integration have same name. If multiple connectors have same name, add a prefix or suffix to differentiate connector names. Connector names cannot not be 'Tenable.io' or 'Tenable.sc'. If connectors have these names, add a prefix or suffix and change them. Disable all integrations. Verify that there are no integrations currently running, and that no integrations will launch or run during your data migration. If you discover any running integrations as you perform the pre-migration steps, either disable them, or wait until they are complete before you proceed.Reconcile all the Configuration Items from Asset Pending Approval class. This is applicable for the tenable connectors version till 2.7. The Source on Vulnerable items should either be Tenable.io or Tenable.sc. If you need to customize CI lookup rules, navigate to CI Lookup Rules under Security Operations.[Optional] Navigate to Vulnerability Response > Administration > Configure VI Granularity. Include port option should be enabled on the Configure VI granularity module so that vulnerable items are created with a granularity that includes unique port. Pre-migration step 1: Import the remote update set Follow these steps to import the required migration resources, the remote update set, and three scheduled jobs. Download the Remote Update set from scripts attached to this article. Navigate to System Update Sets > Retrieved Update Sets. In related links, click Import Update Set from XML. Click Choose file and select the sys_remote_update file that you downloaded in first step. Click Upload.After the upload is complete, Tenable Migration Script is displayed.On the form, click Preview Update Set.After the preview update is complete, the Commit update set button is displayed on the form.Click Commit update set. Pre-migration step 2: Load the scheduled jobs and tables Download the sys_auto_script. Navigate to System maintenance > Scheduled Jobs. Click on any one of the column options and select Import XML. Click Choose file and select the import file that you downloaded. Click Upload. Repeat the preceding steps to import the all the scheduled jobs. Verify the following scheduled jobs are uploaded in the instance: Pre Migration Script Migrate VI Post Migration Script Monitor Chunk Data Verify the following tables are uploaded in the instance: sn_vul_tenable_migration_logsn_vul_tenable_duplicate_mapping sn_vul_tenable_ci_mapping sn_vul_tenable_migration_chunk Phase 2: Confirm completion of the pre-migration script and generate the report Perform these steps to confirm that the pre-migration script has been run successfully Navigate to System maintenance > Scheduled Jobs > Pre Migration Script. Click Execute Now. Check the sn_vul_tenable_migration_log to check for any validation issues. If you see any validation errors in the sn_vul_tenable_migration_log, take appropriate actions, review the pre-migration steps, and, if needed repeat the steps. When the pre-migration script has run successfully. the Pre-migration script execution script complete message is displayed. Verify the script has run successfully before you proceed. https://<instance name>.<company name>/nav_to.do?uri=%2Fsn_vul_tenable_migration_log_list.do%3Fsysparm_query%3Du_message%3DPre%20migration%20script%20execution%20complete%26sysparm_first_row%3D1%26sysparm_view%3D NOTE: Check the summary of the Pre migration script for the warnings. If there are no validation errors, the Asset Mismatch report is generated. The Asset Mismatch report provides information about the assets that matched to different CIs with the new CI lookup rules from ServiceNow-built Vulnerability Response Integration with Tenable. For example, a mismatch exists if a VI maps to CI1 with the Tenable for Vulnerability response (Tenable-built) application's CI lookup rules, while it maps to another CI with new CI lookup rules using the same data with the ServiceNow-built application. These mismatches are entered in the mismatch report with data in the following fields: Vulnerable item, Existing CI, New CI, new Lookup rules. To view the mismatch report navigate to "sn_vul_tenable_ci_mappings.list". If you're not satisfied with the mapping, you can customize the CI lookup rules, then repeat from step 1 in this section, and then generate the report. After you are satisfied with the CI lookup rules and you verified that the pre-migration script has run successfully, you are ready to migrate data. Phase 3: Migrate data Navigate to Migrate VI Script from System maintenance > Scheduled Jobs > Migrate VI. Click Execute Now. Check the sn_vul_tenable_migration_log to check migration status. If you encounter any errors during migration, take appropriate actions and repeat the steps starting from step 1. Check the sn_vul_tenable_migration_log to view the percentage of VIs successfully migrated. The message, 100% completion is displayed when all the VIs are migrated to the new application with the log type as "Info" After a successful migration is complete, navigate to sn_vul_tenable_duplicate_mapping.list to check for duplicate vulnerable items. Verify that you see the message "Migration script execution complete "before you proceed to the post-migration phase. https://<instance name>.<company name>/nav_to.do?uri=%2Fsn_vul_tenable_migration_log_list.do%3Fsysparm_query%3Du_message%3DMigration%20script%20execution%20complete%26sysparm_first_row%3D1%26sysparm_view%3D Phase 4: Perform post-migration steps Perform the following steps to do a post migration cleanup. Navigate to System maintenance > Scheduled Jobs > Post Migration. Click Execute Now. Verify that you see the message, Post migration script execution script complete.https://<instance name>.<company name>/nav_to.do?uri=%2Fsn_vul_tenable_migration_log_list.do%3Fsysparm_query%3Du_message%3DPost%20migration%20script%20execution%20complete%26sysparm_first_row%3D1%26sysparm_view%3DAfter the post migration script is successfully completed, configure all the Tenable integrations from the Setup Assistant.Verify the Import since field is empty for the assets and plugin integrations for all the Tenable.io and Tenable.sc integrations. Launch the asset and plugin integrations for all the Tenable.io and Tenable.sc integrations to migrate third-party vulnerabilities and assets. Uninstall the Tenable for Vulnerability Response application (built by Tenable). Troubleshooting Script customisations You may want to customize the script, if you want to achieve what is described below. Change the order in which vulnerable items are migrated: Please follow the steps below to change the order in which the vulnerable items are migrated Navigate to System Definition -> Script Includes -> TenableMigrationHelperChange the list of states on line number 127 in the order in which vulnerable items should be migrated. If you would like to migrate closed vulnerable items include state 3 in the list. Pre-Migration Errors ServiceNow-built VR-Tenable doesn't allow integration instances with the same name. Multiple connectors are configured with the same name in the existing Tenable-built VR-Tenable integration. Please check the connector names and add some prefix or suffix to the connector name before executing the migration script <instance name>" Reason: The Connectors in the Tenable-built app are migrated as integration instances in ServiceNow-built app. The integration instances should have a unique name. If you see multiple connectors with same name add a prefix or suffix to the connector name. Example: If you have 2 connectors with the name 'test' change one of them to 'test_1'. Connector name in the existing Tenable-built VR-Tenable integration cannot be Tenable.io or Tenable.sc. Please change the connector names to continue with the migration Reason: The Connectors are migrated to the integration instances. There are integration instances with names Tenable.io and Tenable.sc those are shipped with "Vulnerability response integration with Tenable". To avoid having the integration instances with same name, change the connector name by adding some prefix or suffix. Please deactivate all VR-Tenable integrations to start the migration process. Reason: No integration from "Tenable for Vulnerability Response" should be active while running the integration. To check for the active integration navigate to If Tenable connector version is <v2.6 https://<instance-name>.<Company-name>/nav_to.do?uri=%2Fx_tsirm_tio_vr_scheduled_import_list.do If Tenable connector version is >=v2.6 https://<instance-name>.<Company-name>/nav_to.do?uri=%2F x_tsirm_api_access_scheduled_import_list.do The above integration should be disabled to proceed with the migration <JOBID> is running. Please execute the migration script only after the integration run is completed. Reason: Integrations should not run while running the migration. Wait for the running Jobs to complete or cancel the job and run the pre migration script again. The configuration items of the vulnerable items should not belong to Asset Pending Approval. Please reconcile the configuration items Reason: The class "Asset Pending Approval" is in "Tenable for assets " scope. These CI's should be reconciled before proceeding with the migration. The Vulnerable items source is Tenable. Please rename the source to either Tenable.sc or Tenable.io before proceeding with the migration.Reason: The source should either be Tenable.io or Tenable.sc. If you have the source as just Tenable please rename it. The vulnerable items with the source either in Tenable.io or Tenable.sc are migratedChunks are moved to Pre Migration Error or Logs contains the error "The Asset mismatch report generation is failed for VITXXXX"Reason: When the chunk is moved to pre migration error or if the asset mismatch report fails for particular vulnerable item then the difference in data should be analysed. The possible reasons for the asset mismatch generation failure can be Tenable additional info doesn't contain raw dataTenable asset additional info doesn't contain raw data"Vulnerability response integration with Tenable" plugin is not installed on the instance.After fixing the issue with the data additional scripts run the pre migration script to evaluate the Asset Mismatch Report Pre-Migration Warnings: The Vulnerable items exists with no vulnerability or configuration Item. Please check the data. These Vulnerable Items will not be migrated and left on the instance Reason: If the vulnerable item doesn't have CI or vulnerability they are not migrated. They are left as it is in the instance. The Vulnerable items exists with no 'Tenable Additional Info'. These vulnerable items will not be migrated Reason: The data from Tenable Additional info is used for migration. So, if the Tenable Additional Info for a Vulnerable item is empty the Vulnerable item is not migrated. The Vulnerable items connector is not available. These vulnerable items will not be migrated Reason: The connector information in Tenable Additional Info is used to map the vulnerable item to the integration instance. If the connector information is missing the Vulnerable items are not migrated. CI Lookup rules Please refer to the below documentation for additional details on CI Lookup rules https://docs.servicenow.com/bundle/paris-security-management/page/product/security-operations-common/task/create-ci-identifier-rules.html VI Granularity Please refer to the below documentation for additional details on VI granularity https://docs.servicenow.com/bundle/paris-security-management/page/product/vulnerability-response/task/vr-configure-vi-key.html Vulnerability Response with Tenable To configure integrations from Vulnerability response with tenable refer to https://docs.servicenow.com/bundle/paris-security-management/page/product/secops-integration-vr/tenable/concept/tenableIntegration.html Migration Errors: The migration is not successful as the pre migration validation is not SucceededReason: The Pre Migration validation is not executed or some Pre migration validations are failed. Execute the pre Migration script and resolve all the errorsThe Migration or Pre Migration is already in progress.Reason: The Migration or Pre Migration script is already in progress. Check the log table to know the status of the executing job Issues Fixed in this KB/Scripts: Note: This section will be updated with any issues fixed in the current version of the KB and scripts compared to the previous version of KB and scripts Changes in 2.0: Update monitor chunk status job. (Script)Populating the URL in new integration instances for Tenable.io. (Script)Added steps to customise the script to change the order of migration based on the state. (KB) Changes in 3.0 Added 3.0 support Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } All Versions