> 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/i/imperva-dsf.md).

# Imperva DSF

Imperva DSF is a data security platform that monitors and protects databases, secret managers, log aggregators and cloud accounts. OctoXLabs reads the onboarded hosts from the DSF Hub as devices and the data resources it manages as services.

## Use cases

* List everything OctoXLabs collected from DSF.

```
Adapters = imperva-dsf
```

* Find DSF hosts that your EDR does not cover.

```
Adapters = imperva-dsf AND NOT Adapters = falcon-crowdstrike
```

* Check what one DSF connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination          | Port                | Protocol                                 |
| ------------------- | -------------------- | ------------------- | ---------------------------------------- |
| OctoXLabs connector | Imperva DSF Hub host | 8443 (configurable) | HTTPS, or HTTP when Is Secure is cleared |

### Required permissions

| Scope or role                                                      | Permission                      | Needed for                            |
| ------------------------------------------------------------------ | ------------------------------- | ------------------------------------- |
| Unified Settings Console role grant (under the SonarG global role) | Access Unified Settings Console | Using the DSF Open API with the token |

To manage users and roles and to create tokens, log in as the `secAdmin` user or a user with equivalent privileges.

## Create credentials in Imperva DSF

{% stepper %}
{% step %}

### Grant the Unified Settings Console role

In the DSF Portal, go to **Administration** > **Users/Roles**. Find the user the token is for and open **Manage User** (the three dots). Under **Global Roles**, open the **SonarG** role and click **Manage**. Check **Unified Settings Console** and click **Save**.
{% endstep %}

{% step %}

### Create a token

On the same user, go to the **Tokens** section and click **New**. Enter a reason, choose an expiration date in UTC or **Never expire**, and check **Access Unified Settings Console** among the grants.
{% endstep %}

{% step %}

### Save the token

Click **Save** and copy the token from the user details panel.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter          | Required | Type    | Default | Description                                                                                                  |
| ------------------ | -------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------ |
| IP                 | Yes      | String  | None    | IP address or host name of the DSF Hub.                                                                      |
| Port               | No       | Integer | 8443    | Port of the DSF Open API.                                                                                    |
| API Token          | Yes      | String  | None    | Bearer token for the Open API. Stored as a sensitive value.                                                  |
| Is Secure          | No       | Boolean | True    | Use HTTPS.                                                                                                   |
| Fetch Details      | No       | Boolean | False   | Make one extra request per asset for detailed data (admin, versions, connections). Increases discovery time. |
| Include Risk Score | No       | Boolean | False   | Request Imperva's risk score for data sources and keep it in the raw data.                                   |
| Thread Count       | No       | Integer | 32      | Parallel threads for detail requests. Minimum 1, maximum 32.                                                 |
| Sleep Time         | No       | Integer | None    | Seconds to wait while creating parallel threads. A higher value lowers resource use and slows discovery.     |
| Timeout            | No       | Integer | 30      | Seconds to wait for API responses.                                                                           |

## Troubleshooting

| Error message            | Cause                           | Fix                                       |
| ------------------------ | ------------------------------- | ----------------------------------------- |
| Max retries exceeded for | The DSF Hub kept answering 503. | Check the Hub health and try again later. |

## Change history

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