Black Duck
Black Duck by Synopsys is an application security tool that scans your open source components and projects to identify potential vulnerabilities. You can bring component, project, and security data from Black Duck into Brinqa to construct a unified view of your attack surface, thus strengthening your cybersecurity posture.
This document details the information you must provide for the connector to authenticate with Black Duck and how to obtain that information from Black Duck. See create a data integration for step-by-step instructions on setting up the integration.
Required connection settings
When setting up a data integration, select Black Duck from the Connector drop-down. If you cannot find the connector in the drop-down, make sure that you have installed it first. You must provide the following information to authenticate Black Duck with Brinqa:
-
Server URL: Your organization's Black Duck Server URL. The default format is
https://<server_name>
. -
API token: The API token associated with the Black Duck account, which must have permissions to log in to the API server and return data.
Generate a Black Duck API token
For the Black Duck connector to use the Black Duck API, you must provide an API token. Since Black Duck prohibits retrieving API tokens for existing users, you'll need to generate a new one. To do so, follow these steps:
-
Log in to your organization's Black Duck account.
-
Click the User Account menu, and then select Access Tokens from the drop-down.
-
Click Create Token. The Create Token dialog displays.
Provide the following information:
-
Name: Provide a name for the API token.
-
Description: (Optional) Provide a description for the API token.
-
Scope: Select Read Access Only. The Black Duck connector does not require write access to retrieve data.
-
-
Click Create.
The new API token displays. You cannot view the token again. Copy the token and save it in a secure location.
If you do not have the permissions to create an API token, contact your Black Duck administrator. For additional information, see Black Duck documentation.
Additional settings
The Black Duck connector contains additional options for specific configuration:
-
Parallel requests: The maximum number of parallel API requests. The default setting is 4.
-
Page size: The maximum number of records to get per API request. The default setting is 100. It is not recommended to go over 100.
-
Skip certificate verification: Select this option to allow for untrusted certificates.
Types of data to retrieve
The Black Duck connector can retrieve the following types of data from the Black Duck REST API:
Table 1: Data retrieved from Black Duck
Connector Object | Required | Maps to Data Model |
---|---|---|
Component | Yes | Package |
Component Version | No | Not mapped |
Open Source Finding | Yes | Open Source Finding |
Open Source Finding Definition | Yes | Open Source Finding Definition |
Project | Yes | Code Project |
Project Version | No | Not mapped |
The Black Duck connector does not currently support operation options for the types of data it retrieves.
For detailed steps on how to view the data retrieved from Black Duck in the Brinqa Platform, see How to view your data.
Attribute mappings
Expand the sections below to view the mappings between the source and the Brinqa data model attributes.
Component
Table 2: Component attribute mappings
Source Field Name | Maps to Attribute |
---|---|
CATEGORIES | categories |
DESCRIPTION | description |
NAME | name |
PROJECTS | projects |
PROJECT_VERSIONS | Local variable |
SYS_ID | uid |
URL | url |
Local variable indicates that the field is processed within a specific context, such as a particular workflow or calculation. Unlike other attributes, local variables aren't mapped to the unified data models. They only exist on the source data model.
Open Source Finding
Table 3: Open Source Finding attribute mappings
Source Field Name | Maps to Attribute |
---|---|
COMPONENT_VERSION_ORIGIN_ID | Local variable |
Component.vulnerabilitywithremediation.vulnerabilityName | type, uid |
Component_VERSION_ID | Local variable |
EXPLOIT_PUBLISHED_DATE | Local variable |
FIRST_FOUND | firstFound |
LAST_FOUND | lastFound |
LAST_MODIFIED | sourceLastModified |
PROJECT | project |
PROJECT_ID | targets |
PROJECT_VERSION | Local variable |
PROJECT_VERSION_ID | Local variable |
PUBLISHED_DATE | publishedDate |
SYS_ID | uid |
WORKAROUND | Local variable |
Local variable indicates that the field is processed within a specific context, such as a particular workflow or calculation. Unlike other attributes, local variables aren't mapped to the unified data models. They only exist on the source data model.
Open Source Finding Definition
Table 4: Open Source Finding Definition attribute mappings
Source Field Name | Maps to Attribute |
---|---|
COMPONENT_VERSION_ORIGIN_ID | Local variable |
Component.vulnerabilitywithremediation.vulnerabilityName | type, uid |
Component_VERSION_ID | Local variable |
CVE | cveIds |
CVSSV2_BASE_SCORE | cvssV2BaseScore |
CVSSV2_TEMPORAL_SCORE | cvssV2TemporalScore |
CVSSV2_VECTOR | cvssV2Vector |
CVSSV3_BASE_SCORE | cvssV3BaseScore |
CVSSV3_TEMPORAL_SCORE | cvssV3TemporalScore |
CVSSV3_VECTOR | cvssV3Vector |
CWE | cweIds, weaknesses |
DESCRIPTION | description |
EXPLOIT_PUBLISH_DATE | Local variable |
EXPLOIT_PUBLISHED_DATE | Local variable |
LAST_MODIFIED | sourceLastModified |
PROJECT | project |
PROJECT_ID | targets |
PROJECT_VERSION | Local variable |
PROJECT_VERSION_ID | Local variable |
PUBLISHED_DATE | publishedDate |
SEVERITY | severity, sourceSeverity, severityScore |
SOLUTION | recommendation |
STATUS | status, statusCategory |
TITLE | name |
Local variable indicates that the field is processed within a specific context, such as a particular workflow or calculation. Unlike other attributes, local variables aren't mapped to the unified data models. They only exist on the source data model.
Project
Table 5: Project attribute mappings
Source Field Name | Maps to Attribute |
---|---|
APPLICATION_IDS | Local variable |
CATEGORIES | categories |
DESCRIPTION | description |
LAST_SCANNED | lastScanned |
NAME | name |
POLICY_STATUS | Local variable |
SYS_ID | uid |
TAGS | tags |
TIER | Local variable |
Local variable indicates that the field is processed within a specific context, such as a particular workflow or calculation. Unlike other attributes, local variables aren't mapped to the unified data models. They only exist on the source data model.
APIs
The Black Duck connector uses the Black Duck REST API. Specifically, it uses the following endpoints:
Table 6: Black Duck REST API Endpoints
Connector Object | API Endpoint |
---|---|
Component | GET /api/components/{componentId} |
/api/projects/{projectId}/versions/{projectVersionId}/components | |
Component Version | GET /api/projects/{projectId}/versions/{projectVersionId}/components |
Open Source Finding | GET /api/projects/{projectId}/versions/{projectVersionId}/vulnerable-bom-components |
GET /api/vulnerabilities/{vulnerableComponentId} | |
Open Source Finding Definition | GET /api/projects/{projectId}/versions/{projectVersionId}/vulnerable-bom-components |
GET /api/vulnerabilities/{vulnerableComponentId} | |
Project | GET /api/projects |
Project Version | GET /api/projects/{projectId}/versions |
Changelog
The Black Duck connector has undergone the following changes:
3.0.0
- Initial Integration+ release.