> 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/n/nucleus.md).

# Nucleus

Nucleus Security is a risk-based vulnerability management platform that unifies findings from many scanners. OctoXLabs reads the assets of every project, optionally attaches their findings as vulnerabilities, and reads the project users.

## Use cases

* **Find Nucleus assets that no other source reports.** List assets known to Nucleus and missing from Active Directory.

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

* **Review assets with findings.** Keep Fetch Vulnerabilities on and review the vulnerabilities on the imported devices.

```
Adapters = nucleus
```

## Before you begin

### Network

| Source              | Destination                                                              | Port | Protocol |
| ------------------- | ------------------------------------------------------------------------ | ---- | -------- |
| OctoXLabs connector | Nucleus domain (Domain parameter, for example `your-org.nucleussec.com`) | 443  | HTTPS    |

The connector always uses HTTPS. If a proxy is set, it is used as `http://<value>` for HTTP and HTTPS.

### Required permissions

| Scope or role              | Permission                              | Needed for                                                      |
| -------------------------- | --------------------------------------- | --------------------------------------------------------------- |
| User that owns the API key | Read access to the projects to discover | `/nucleus/api/projects`                                         |
| Same                       | Read                                    | `/nucleus/api/projects/{project_id}/assets`                     |
| Same                       | Read                                    | `/nucleus/api/projects/{project_id}/users`                      |
| Same                       | Read                                    | `/nucleus/api/projects/{project_id}/assets/{asset_id}/findings` |

## Create credentials in Nucleus

{% stepper %}
{% step %}

### Open your profile

In Nucleus, open your **User Profile**.
{% endstep %}

{% step %}

### Create an API key

Create an API key. Make sure the user has read access to the projects you want to discover.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter             | Required | Type    | Default | Description                                                                                                           |
| --------------------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------------------------------------- |
| Domain                | Yes      | String  | None    | Base domain of your Nucleus instance, without the protocol prefix.                                                    |
| Api Key               | Yes      | String  | None    | Nucleus API key.                                                                                                      |
| Proxy                 | No       | String  | None    | Proxy address in `host:port` format.                                                                                  |
| Fetch Vulnerabilities | No       | Boolean | True    | Collect findings for every asset. This needs one extra request per asset. Turn it off if you only need the inventory. |
| Thread Count          | No       | Integer | 32      | Parallel workers that fetch findings. Minimum 1, maximum 32.                                                          |
| Sleep Time            | No       | Integer | Empty   | Seconds to wait between batches of parallel requests. Leave empty unless the API rate limits the connection.          |
| Timeout               | No       | Integer | 30      | Seconds to wait for an API response.                                                                                  |

## Troubleshooting

| Error message                                                  | Cause                                                                                   | Fix                                                        |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with a status other than 200. This is the shared REST connector error. | Check the API key, the domain and the project permissions. |

## Change history

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