> 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-dra.md).

# Imperva DRA

Imperva DRA detects risky data access. OctoXLabs reads the security events and builds a device for each source host in them. Optionally it also builds a database service inventory from the databases that the events reference.

## Use cases

* List source hosts that appear in Imperva DRA security events.

```
Adapters = imperva-dra
```

* Find those hosts that are not in your EDR.

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

## Before you begin

### Network

| Source              | Destination      | Port           | Protocol |
| ------------------- | ---------------- | -------------- | -------- |
| OctoXLabs connector | Imperva DRA host | 8443 (default) | HTTPS    |

### Required permissions

| Scope or role                                             | Permission                          | Needed for                           |
| --------------------------------------------------------- | ----------------------------------- | ------------------------------------ |
| Active Directory user in the **CounterBreach\_API** group | Read security events                | Devices                              |
| Same user                                                 | Read incident and anomaly databases | Services (when Fetch Services is on) |

## Create credentials in Imperva DRA

{% stepper %}
{% step %}

### Use Active Directory authentication

DRA must be configured for Active Directory authentication.
{% endstep %}

{% step %}

### Choose the user

The user must be a valid Active Directory user and a member of the **CounterBreach\_API** group. The local **admin** user cannot call the API.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type    | Default | Description                                                                                            |
| -------------- | -------- | ------- | ------- | ------------------------------------------------------------------------------------------------------ |
| IP             | Yes      | Text    | None    | IP address or host name of the DRA host.                                                               |
| Port           | No       | Integer | `8443`  | Port.                                                                                                  |
| Username       | Yes      | Text    | None    | Active Directory user.                                                                                 |
| Password       | Yes      | Text    | None    | Password of the user.                                                                                  |
| Is Secure      | No       | Boolean | `true`  | Use HTTPS.                                                                                             |
| Fetch Services | No       | Boolean | `false` | Also build a database service inventory. Makes one extra request per event.                            |
| Thread Count   | No       | Integer | `32`    | Parallel threads (1 to 32).                                                                            |
| Sleep Time     | No       | Integer | `0`     | Seconds to wait while threads are created. A higher value lowers resource use and lengthens discovery. |
| Timeout        | No       | Integer | `30`    | Seconds to wait for API responses.                                                                     |

## Troubleshooting

| Error message                                                      | Cause                                                      | Fix                                |
| ------------------------------------------------------------------ | ---------------------------------------------------------- | ---------------------------------- |
| `Skipping security event <id>: no sourceHost to key the device on` | An event has no source host. Logged as a warning.          | No action needed.                  |
| `Could not fetch databases for <category> <id>: <reason>`          | The database call of an event failed. Logged as a warning. | Check the user's group membership. |

## Change history

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