> 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/h/heimdal.md).

# Heimdal

Heimdal is an endpoint security and patching platform. OctoXLabs reads the active clients of one Heimdal customer, with hardware details and third party software.

## Use cases

* Find Heimdal endpoints that have open CVEs from unpatched third party software.

```
Adapters = heimdal AND Vulnerabilities.CveId = *
```

* Find servers that run the Heimdal agent.

```
Adapters = heimdal AND Category = Server
```

## Before you begin

### Network

| Source              | Destination                                                         | Port | Protocol |
| ------------------- | ------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Heimdal Dashboard host (`dashboard.heimdalsecurity.com` by default) | 443  | HTTPS    |

### Required permissions

| Scope or role    | Permission                                      | Needed for                                        |
| ---------------- | ----------------------------------------------- | ------------------------------------------------- |
| Personal API key | Read active clients                             | Devices                                           |
| Personal API key | Read third party and Linux third party software | Installed software and vulnerabilities (optional) |

## Create credentials in Heimdal

{% stepper %}
{% step %}

### Open the key page

Sign in to the Heimdal Dashboard and open the **Guide** tab, then the **Your Heimdal API Key** mini tab.
{% endstep %}

{% step %}

### Generate the key

Generate a key if you have no active one and copy it. Pressing **Delete** revokes the key and stops every connection that uses it.
{% endstep %}

{% step %}

### Trust the OctoXLabs IP

The Heimdal API answers only requests from IP addresses or ranges marked as trusted for your Dashboard user, under **Accounts**. Add the OctoXLabs connector address there.
{% endstep %}

{% step %}

### Find the customer ID

Copy the customer ID whose data you want. One connection collects one customer.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                | Required | Type    | Default                         | Description                                                                                                                                |
| ------------------------ | -------- | ------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Domain                   | Yes      | Text    | `dashboard.heimdalsecurity.com` | Dashboard host. Use the host you sign in to (production or release candidate).                                                             |
| Api Key                  | Yes      | Text    | None                            | Personal API key, sent as a bearer token.                                                                                                  |
| Customer Id              | Yes      | Text    | None                            | Customer whose data is collected. Mandatory on every endpoint.                                                                             |
| Use V1                   | No       | Boolean | `false`                         | Use the older API 1.0. Enable only if the key was issued as an old API key and 2.0 rejects it. Installed software is not collected on 1.0. |
| Days Ago                 | No       | Integer | `30`                            | Collection window in days (minimum 1). Endpoints last seen before the window are not returned.                                             |
| Fetch Installed Software | No       | Boolean | `true`                          | Collect third party software for Windows and Linux. No effect when Use V1 is on.                                                           |
| Thread Count             | No       | Integer | `10`                            | Parallel requests for hardware details on API 2.0 (1 to 32). Heimdal allows 10 requests per second.                                        |
| Sleep Time               | No       | Integer | `1`                             | Seconds to wait between request batches.                                                                                                   |
| Proxy URL                | No       | Text    | None                            | Proxy in `host:port` form. The connector prefixes it with `http://`.                                                                       |
| Timeout                  | No       | Integer | `30`                            | Seconds to wait for API responses.                                                                                                         |

## Troubleshooting

| Error message                                                                                                      | Cause                                                                 | Fix                                           |
| ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------- | --------------------------------------------- |
| `Max retries exceeded for <url>`                                                                                   | The API kept returning HTTP 429 after 5 attempts.                     | Lower Thread Count or raise Sleep Time.       |
| `Installed software is not collected over API 1.0: the whole inventory comes from a single activeclients request.` | Use V1 is on and Fetch Installed Software is on. Logged as a warning. | Turn Use V1 off if your key works on API 2.0. |

## Change history

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