> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/o/owasp-dependency-track.md).

# OWASP Dependency Track

OWASP Dependency-Track tracks the components (dependencies) of your software projects and their known vulnerabilities. OctoXLabs turns each project into a device and attaches its components as installed software and its findings as vulnerabilities.

## Use cases

* List Dependency-Track projects that OctoXLabs has collected.

```
Adapters = owasp-dependency-track
```

* Find projects that were not updated for 90 days.

```
Adapters = owasp-dependency-track AND NOT LastSeen last now-90d/d
```

## Before you begin

### Network

| Source              | Destination                 | Port                | Protocol                         |
| ------------------- | --------------------------- | ------------------- | -------------------------------- |
| OctoXLabs connector | Dependency-Track API server | 8080 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role                        | Permission | Needed for              |
| ------------------------------------ | ---------- | ----------------------- |
| Team permission `VIEW_PORTFOLIO`     | Read       | Projects and components |
| Team permission `VIEW_VULNERABILITY` | Read       | Findings                |

## Create credentials in OWASP Dependency-Track

{% stepper %}
{% step %}

### Open Teams

In the Dependency-Track administration interface open **Teams** and select or create a team with the `VIEW_PORTFOLIO` and `VIEW_VULNERABILITY` permissions.
{% endstep %}

{% step %}

### Create an API key

Create an **API Key** inside that team and copy it from the popup. Save it. From Dependency-Track 4.13 the key is hashed and cannot be viewed again.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                 | Required | Type    | Default | Description                                                                                         |
| ------------------------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------------------- |
| IP                        | Yes      | String  |         | Hostname or IP address of the server, for example `dtrack.example.com`.                             |
| Port                      | No       | Integer | 8080    | API server port.                                                                                    |
| API Key                   | Yes      | String  |         | Key of the team, sent in the `X-Api-Key` header.                                                    |
| Is Secure                 | No       | Boolean | True    | Use HTTPS.                                                                                          |
| Fetch Vulnerabilities     | No       | Boolean | True    | Include each project's findings. Off skips the per-project findings call.                           |
| Fetch Installed Softwares | No       | Boolean | True    | Include each project's components as installed software. Off skips the per-project components call. |
| Thread Count              | No       | Integer | 32      | Parallel threads for enriching projects. Min 1, max 32.                                             |
| Sleep Time                | No       | Integer | 0       | Seconds to wait between starting threads.                                                           |
| Timeout                   | No       | Integer | 30      | Seconds to wait for API responses.                                                                  |

## Troubleshooting

| Error message | Cause | Fix |
| ------------- | ----- | --- |

## Change history

{% hint style="info" %}
Available starting from version 6.6.2.
{% endhint %}
