> 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/v/velociraptor.md).

# Velociraptor

Velociraptor is an endpoint monitoring and digital forensics platform. OctoXLabs reads the list of enrolled clients through the Velociraptor gRPC API. This adds host details and the agent version to the inventory.

## Use cases

* List all hosts that run the Velociraptor agent.

```
Adapters = velociraptor
```

* Find servers that are in your inventory but have no Velociraptor agent. Replace `active-directory` with any other source that lists your servers.

```
Adapters = active-directory AND NOT Adapters = velociraptor
```

## Before you begin

### Network

| Source              | Destination                    | Port                              | Protocol      |
| ------------------- | ------------------------------ | --------------------------------- | ------------- |
| OctoXLabs connector | Velociraptor server (gRPC API) | Configured per server, no default | gRPC over TLS |

### Required permissions

| Scope or role                                         | Permission      | Needed for                       |
| ----------------------------------------------------- | --------------- | -------------------------------- |
| API client certificate with access to the `Query` API | Run VQL queries | Listing clients with `clients()` |

The permission level the API user needs is Not verified in the code.

## Create credentials in Velociraptor

{% stepper %}
{% step %}

### Get the CA certificate

Open your `server.config.yaml` file and copy the CA certificate.
{% endstep %}

{% step %}

### Generate a client certificate

Generate a unique key and certificate for this client.
{% endstep %}

{% step %}

### Build the certificate file

Create one YAML file with three keys: `ca_certificate`, `client_cert` and `client_private_key`.
{% endstep %}

{% step %}

### Upload the file

Select the file in the **Certificate File** field of the connection.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter        | Required | Type        | Default            | Description                                                                                            |
| ---------------- | -------- | ----------- | ------------------ | ------------------------------------------------------------------------------------------------------ |
| IP               | Yes      | Text        |                    | IP address of the Velociraptor host.                                                                   |
| Port             | Yes      | Integer     |                    | Port of the gRPC API.                                                                                  |
| Certificate File | Yes      | File (YAML) |                    | YAML with the CA certificate, client certificate and client private key.                               |
| SSL Target Name  | No       | Text        | VelociraptorServer | Server name used to verify the server TLS certificate.                                                 |
| Thread Count     | No       | Integer     | 32                 | Parallel threads for API requests. Min 1, max 32.                                                      |
| Sleep Time       | No       | Integer     | 0                  | Seconds to wait while threads are created. A higher value lowers resource use and lengthens discovery. |

## Troubleshooting

| Error message                    | Cause                             | Fix                                                      |
| -------------------------------- | --------------------------------- | -------------------------------------------------------- |
| count\_query returned no results | The count query returned no rows. | Check the certificate, the port and the SSL target name. |

## Change history

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