> 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/c/contrast-security.md).

# Contrast Security

Contrast Security is an application security platform with runtime agents. OctoXLabs uses the TeamServer API to add servers that run the agent, with their vulnerability traces, to the inventory.

## Use cases

* List servers that Contrast monitors.

```
Adapters = contrast-security
```

* Find Contrast servers not seen in the last 30 days.

```
Adapters = contrast-security AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination                                                                           | Port | Protocol |
| ------------------- | ------------------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Contrast TeamServer (for example app.contrastsecurity.com or eu.contrastsecurity.com) | 443  | HTTPS    |

### Required permissions

| Scope or role                     | Permission | Needed for         |
| --------------------------------- | ---------- | ------------------ |
| view, edit, rules\_admin or admin | Read       | Servers and traces |

## Create credentials in Contrast Security

{% stepper %}
{% step %}

### Open your profile

Sign in to Contrast and open **User Settings > Profile**.
{% endstep %}

{% step %}

### Copy the keys

In the API section copy the **API Key** and the **Service Key**. The service key is next to the API key.
{% endstep %}

{% step %}

### Find the organization UUID

Find the Organization UUID under **User Settings > Profile** or on the **Organization Settings** page.
{% endstep %}

{% step %}

### Check the role

The username (service account or user) needs the view, edit, rules\_admin or admin role.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter         | Required | Type             | Default                  | Description                                                                                                          |
| ----------------- | -------- | ---------------- | ------------------------ | -------------------------------------------------------------------------------------------------------------------- |
| Domain            | Yes      | Text             | app.contrastsecurity.com | TeamServer host. Use your region host for SaaS or your own host for self-hosted. No scheme or path.                  |
| Organization UUID | Yes      | Text             |                          | UUID of the organization to collect from.                                                                            |
| API Key           | Yes      | Password         |                          | Organization API key.                                                                                                |
| Username          | Yes      | Text             |                          | Service account or user. Used with the service key.                                                                  |
| Service Key       | Yes      | Password         |                          | Service key of the username.                                                                                         |
| Proxy             | No       | Text             |                          | Proxy in `host:port` format.                                                                                         |
| Thread Count      | No       | Number (1 to 32) | 10                       | Parallel threads for vulnerability enrichment. Keep it moderate; Contrast advises against aggressive multithreading. |
| Timeout           | No       | Number           | 30                       | Seconds to wait for API responses.                                                                                   |

## Troubleshooting

No adapter-specific error messages are documented for this adapter.

## Change history

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