Skip to main content

JFrog Xray

JFrog Xray is an application security tool that scans for vulnerabilities in your applications. You can bring security data from JFrog Xray into Brinqa to gain a more comprehensive understanding of your risk and build a unified view of your attack surface, thus strengthening cybersecurity posture.

This document details the information you must provide for the connector to authenticate with JFrog Xray and how to obtain that information from JFrog. 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 JFrog Xray 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 JFrog Xray with Brinqa:

  • API URL: The JFrog API server URL.

  • Access token: The JFrog access token associated with the JFrog account, which must have permissions to log in to the API server and return data.

Generate a JFrog access token

For the JFrog Xray connector to use the JFrog API, you must provide an access token. JFrog does not allow retrieving the access token for an existing user. To generate a new token, follow these steps:

  1. Log in to your organization's JFrog server as an administrator.

  2. Click Platform configuration > User Management.

  3. Click Access Tokens.

  4. Click Generate Token, select Scoped Token, and then complete the following fields:

    • Description: Provide a description for the token.

    • Token scope: Click the drop-down and select the appropriate scope for your integration. You have three options:

      • Admin: Grants full administrative access. Use this option if retrieving your data requires complete control over all aspects of JFrog Xray. Proceed with caution, as this option provides extensive permissions.

      • User: Grants access based on a specific user's permissions. Use this option if retrieving your data requires performing actions that a typical user would require.

      • Group: Grants access based on a group of users' permissions. Use this option if retrieving your data needs permissions common to a specific group.

      note

      While all three options can be used to authenticate API requests, Brinqa recommends that you use the User or Group scope, as these can provide more controlled access. Consult the JFrog documentation to help you better understand which scope may better suit your needs.

    • Service: Click the drop-down and select Xray.

    • Expiration time: If desired, click the drop-down and set an expiry for the token. Options include: Never, 1 day, 3 days, 1 week, 1 month, or a custom time.

    • Create reference token: Not checked by default. Leave as is.

  5. Click Generate.

    A window displays with your access token. You cannot view the token after this, so copy the token and save it to a secure location.

note

For additional information on access tokens and permissions, see JFrog documentation.

Additional settings

The JFrog Xray connector contains additional options for specific configuration:

  • 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.

  • Parallel requests: The maximum number of parallel API requests. The default setting is 4.

Types of data to retrieve

The JFrog Xray connector can retrieve the following types of data from the JFrog Xray API:

Table 1: Data retrieved from JFrog Xray

Connector ObjectRequiredMaps to Data Model
VulnerabilityYesVulnerability
Vulnerability DefinitionYesVulnerability Definition
info

For detailed steps on how to view the data retrieved from JFrog Xray in the Brinqa Platform, see How to view your data.

Attribute mappings

Click the tabs below to view the mappings between the source and the Brinqa data model attributes.

Table 2: Vulnerability attribute mappings

Source Field NameMaps to Attribute
artifact_scan_timelastScanned
component_physical_pathLocal variable
cvetype
fixed_versionsfixedVersion
impact_pathresult
impacted_artifactresult
package_typeLocal variable
project_keystargets
providerLocal variable
repositorytargets
severity_sourceLocal variable
sys_iduid
vulnerable_componentLocal variable
info

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.

Operation options

The JFrog Xray connector supports the following operation options. See connector operation options for information about how to apply them.

Table 4: JFrog Xray connector operation options

Connector ObjectOptionAll Possible ValuesDescriptionExample
Vulnerability
Vulnerability Definition
publishEndAny date in the YYYY-MM-DD format.You can use this option to retrieve vulnerabilities by the specified published end date as determined by JFrog Xray.Key: publishEnd Value: 2023-07-20. This key and value combination only retrieves vulnerabilities published up to 2023-07-20.
publishStartAny date in the YYYY-MM-DD format.You can use this option to retrieve vulnerabilities by the specified publish start date as determined by JFrog Xray.Key: publishStart Value: 2023-07-01. This key and value combination only retrieves vulnerabilities published from 2023-07-01.
scanEndAny date in the YYYY-MM-DD format.You can use this option to retrieve vulnerabilities by the specified scan end date as determined by JFrog Xray.Key: scanEnd Value: 2023-07-20. This key and value combination only retrieves vulnerabilities scanned up to 2023-07-20.
scanStartAny date in the YYYY-MM-DD format.You can use this option to retrieve vulnerabilities by the specified scan start date as determined by JFrog Xray.Key: scanStart Value: 2023-07-01. This key and value combination only retrieves vulnerabilities scanned from 2023-07-01.
severitiesLow, Medium, High, CriticalA comma-separated list of severities. You can use this option to retrieve vulnerabilities of the specified severity level as determined by JFrog Xray.Key: severities Value: Medium,High. This key and value combination only retrieves vulnerabilities with severity levels of Medium and High.
note

The option keys and values are case-sensitive as they are shown in this documentation.

APIs

The JFrog Xray connector uses the Xray REST API. Specifically, it uses the following endpoints:

Table 5: JFrog Xray REST API Endpoints

Connector ObjectAPI Endpoints
VulnerabilityPOST /xray/api/v1/reports/vulnerabilities/{reportId}
Vulnerability DefinitionPOST /xray/api/v1/reports/vulnerabilities/{reportId}

Changelog

The JFrog Xray connector has undergone the following changes:

3.0.0