> 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/u/upguard.md).

# UpGuard

UpGuard is a cyber risk and attack surface management platform. OctoXLabs reads hostnames, user risk data, domains and vendors from your UpGuard organization and adds them to the inventory, together with the risks found on each hostname.

## Use cases

* **Find users reported by UpGuard that have no directory account.** How accounts are matched depends on your user merge settings.

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

* **Review the external attack surface.** List the hostnames and domains UpGuard sees for your organization.

```
Adapters = upguard
```

## Before you begin

### Network

| Source              | Destination                               | Port | Protocol |
| ------------------- | ----------------------------------------- | ---- | -------- |
| OctoXLabs connector | cyber-risk.upguard.com (Domain parameter) | 443  | HTTPS    |

The connector always uses HTTPS. If a proxy is set, requests go through it.

### Required permissions

| Scope or role         | Permission        | Needed for                                         |
| --------------------- | ----------------- | -------------------------------------------------- |
| Administrator account | Create an API key | Only administrators can access and create API keys |
| Organization API key  | Read              | All asset types                                    |

Which endpoints the key can reach is Not verified.

## Create credentials in UpGuard

{% stepper %}
{% step %}

### Sign in

Sign in to the UpGuard platform with an administrator account.
{% endstep %}

{% step %}

### Open the API tab

Click the Settings icon in the top-right corner, then open the **API** tab.
{% endstep %}

{% step %}

### Create the key

Click **Create New API Key** and copy the generated key. You can manage or delete keys from this tab.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
The API key is sensitive. Never share it publicly.
{% endhint %}

## Connection parameters

| Parameter      | Required | Type    | Default                | Description                                                                                            |
| -------------- | -------- | ------- | ---------------------- | ------------------------------------------------------------------------------------------------------ |
| Domain         | No       | String  | cyber-risk.upguard.com | UpGuard API host, without a scheme.                                                                    |
| API Key        | Yes      | String  | None                   | Organization API key. Sent in the `Authorization` header.                                              |
| Proxy          | No       | String  | None                   | Proxy address, used as `http://<value>` for HTTP and HTTPS.                                            |
| Timeout        | No       | Integer | 30                     | Seconds to wait for an API response.                                                                   |
| Thread Count   | No       | Integer | 32                     | Parallel threads for domain detail requests. Minimum 1, maximum 32.                                    |
| Sleep Time     | No       | Integer | 0                      | Seconds to wait while threads are started. A higher value lowers resource use and lengthens discovery. |
| Fetch Users    | No       | Boolean | True                   | Include user risk users.                                                                               |
| Fetch Domains  | No       | Boolean | True                   | Include domains with detail enrichment.                                                                |
| Fetch Services | No       | Boolean | True                   | Include vendors as services.                                                                           |

## Troubleshooting

| Error message                                                   | Cause                                                                                | Fix                                                            |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -------------------------------------------------------------- |
| Request to {url} failed after {n} retries (last status: {code}) | The API kept answering 429.                                                          | Lower Thread Count, raise Sleep Time, and run discovery again. |
| Status Code: `, followed by URL, Method and the response body`  | The API answered with an unexpected status. This is the shared REST connector error. | Check the API key and the domain.                              |

## Change history

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