To install the Black Duck integration for Vulnerability Response, confirm that Vulnerability Response is active on your instance, install the Vulnerability Response Integration with Black Duck from the ServiceNow Store, generate a Black Duck API token, and then configure and test the connection. Run the Project List Integration before the other Black Duck integrations.
Confirm the subscriptions and roles before installing
Start by checking Subscription Management > Subscriptions on the instance. The list shows the subscriptions your organization has purchased, and Vulnerability Response has to appear there and be activated. If it is missing or not activated, install and activate Vulnerability Response before you add the integration. The Black Duck Software Composition Analysis (SCA) tool is available as a separate subscription from Vulnerability Response, so check that your organization holds it before you plan the install.
Roles are split between the admin role and the App-Sec Manager group, and each step has its own requirement:
- Installing the application: admin role.
- Assigning users to the App-Sec Manager group, if not already assigned: admin role.
- Configuring the integration: App-Sec Manager user group.
- Running the pre-integration tasks and verifying expected results: App-Sec Manager group.
Check the group roles for Application Vulnerability Response before you assign access, so each person has the access their step needs. For help planning this work, see ServiceNow implementation.
Install the application from the ServiceNow Store
Order matters. Confirm the subscription and roles, install the application, create the Black Duck credentials, configure the connection, and then run the integrations in sequence. Log in to the instance you plan to use, then follow these steps.
- Navigate to the ServiceNow Store.
- In the ServiceNow Store, search for Vulnerability Response Integration with the Black Duck application and select the application tile.
- Read the application details. Review the Other Requirements and Dependencies sections as they apply to your instance.
- Select Request App and enter your Now Support login credentials.
- Select Get.
- Enter the instance name and the reason for the instance, then select Validate Instance.
- Select Request.
- Watch for the email with detailed installation instructions.
- Navigate to System Applications > Applications, locate the application, select it, and select Install.
After you select Install, the application installs on the instance automatically. Configuration comes later, under the App-Sec Manager user group.
Create the Black Duck API URL and token
The integration needs an API URL and an API token. Generate the token in Black Duck before you open the configuration form, and record it for later use.
- Log in to the Black Duck platform.
- Open the user account menu and select API Credentials.
- Select Generate API Credentials.
- Record the credentials for later use.
Prepare the instance before the first run
Three checks come before the first run. The Black Duck integration assumes you are familiar with the Black Duck Software Composition Analysis application and its APIs, so bring someone who knows that tool into the planning.
- Run and install the Common Weakness Enumeration (CWE) integration before you install and configure the Black Duck integration. The CWE integration is installed with Vulnerability Response by default, and Application Vulnerability Response uses the same CWE data.
- Validate the instance sizing against the number of application vulnerable items you expect to import. An undersized instance can lead to long load times.
- Make any configuration changes that your requirements call for before the integration runs.
If you do not know the size of your instance, contact Customer Service and Support before you schedule the first import. For the wider picture of how external tools connect to Vulnerability Response, see vulnerability response integration patterns.
Configure the connection on the Configuration form
Open All > Blackduck Vulnerability Integration > Configuration. The App-Sec Manager user group role is required for this form.
- Select the Basic Authentication type. Basic Authentication on an on-premises instance requires a MID Server.
- Fill in the fields described below.
- Select Save and Test credentials, and review the result before you go further.
- Run the Black Duck Project List Integration before you run any other Black Duck integration.
- API URL: The Black Duck API URL for enterprise or on-premises instances. For an on-premises instance, enter your Black Duck endpoint URL.
- API Token: The token you generated in the Black Duck console.
- MID Server: The MID Server required for on-premises instances that use Basic Authentication.
- Include SCA: Vulnerabilities from Software Composition Analysis (SCA) scans are included by default. SCA scans identify vulnerabilities in open-source components.
- Select the option to manage False positives in ServiceNow: Leave this option activated to triage imported application vulnerable items (AVIs) with the Source states marked False Positive or Potential False Positive. AVIs with those Source states that normally map to Closed are mapped to Open instead. You can request a False positive from the AVI record.
- Integration Instance: The instance you use to import the data.
Deactivate the false positive option if you want to preserve the Source states imported from your scanner. When it is deactivated, the Request exception and False Positive actions are not visible on the AVIs.
Map Black Duck states and fields in the transform
Imported data lands in the Black Duck AppVul Item Import table, sn_vul_blackduck_appvul_item_import. The Black Duck AppVul Item Transform map then transforms each record. To open the map, navigate to System Import Sets > Transform Maps and search for Black Duck AppVul Item Transform.
Key field mappings
- app_id maps to source_app_id, and issueid maps to source_avit_id.
- app_name maps to app_name, and version maps to app_version.
- build_id maps to source_scan_id, and last_update_time maps to last_scan_date.
- level maps to source_severity, and category_name maps to category.
- line maps to line_number, and module maps to application_module.
- affects_policy_compliance maps to complies_with_policy, with values of Yes or No.
- sourcefile maps to source_notes.
- url maps to location for a dynamic flaw. Sourcefilepath plus sourcefile maps to location for a static flaw.
- scope, type, and exploitLevel populate source_additional_info as name value pairs for static flaws.
- mitigation_status_desc maps to source_mitigation_status, and remediation_status maps to source_remediation_status.
Source states to ServiceNow states
Source states map to ServiceNow states as follows.
- New, Needs Review, and Remediation Required map to Open. New means the vulnerability affects this component version. Needs Review means it cannot be determined whether the vulnerability affects this component version. Remediation Required means remediation is required for this version.
- Remediation Complete, Mitigated, Patched, and Ignored map to Closed. Remediation Complete means remediation for the vulnerability is complete. Mitigated and Patched mean the vulnerability has been mitigated or patched. Ignored means the vulnerability has been ignored.
A finding ignored in Black Duck shows as Closed on the instance, so it will not appear when you filter for open AVIs. New and Needs Review both map to Open alongside Remediation Required, so the open queue mixes findings that affect the component version with findings where it cannot yet be determined whether the vulnerability affects it.
Check the first run and continue the import
After the project list loads, check the imported records against the mapping above. Work through these checks on a sample of AVIs.
- The target state matches the mapping for the source state.
- The Source severity matches the level value from Black Duck.
- complies_with_policy shows Yes or No, based on the affects_policy_compliance value.
- The load time is in line with the sizing you planned.
For more on checking imported records after a run, see checking vulnerable item detection data after an integration run. Once the connection and first records check out, move on to importing Black Duck project versions into Application Vulnerability Response.
Questions about entitlements, run-as users and NVD data
Do non-production instances need entitlements before installing?
Entitlements apply to applications downloaded to production instances. For non-production or development instances, skip the entitlement step and follow the procedure to activate a ServiceNow Store application.
Can the run-as user for the integration records be changed?
Each integration record has a configured run-as user, and the default is VR.System. Leave that value as it is.
Is NVD data required before the first Black Duck run?
No. The NVD data is not needed to install the Black Duck integration, but it helps to have it loaded. The guide to importing data with the NVD and CWE integrations explains how to load it and manage third-party libraries.
What do the onStart and onBefore transform scripts do?
The onStart script runs when an import set creates a transformation, and it records how many entities were created, updated, or left unchanged. The onBefore script runs before the transformation completes. It defines how invalid records are ignored and sets the global object used for record processing. Both scripts are for internal use, so do not modify or delete them.