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

# Nessus

Nessus is a vulnerability scanner. OctoXLabs reads the scans of a Nessus host, takes the hosts of each scan as devices and, optionally, adds the vulnerabilities and open ports found on each host.

## Use cases

* List the hosts that Nessus scanned.

```
Adapters = nessus
```

* Find scanned hosts that no endpoint detection tool reports.

```
Adapters = nessus AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination | Port           | Protocol |
| ------------------- | ----------- | -------------- | -------- |
| OctoXLabs connector | Nessus host | 8834 (default) | HTTPS    |

Port 8834 is the default of the Port parameter. The connector uses HTTPS when SSL is on, and HTTP otherwise.

### Required permissions

Not verified. The source instructions do not list the role the account needs. The account must be able to read the scans, the hosts and the plugin outputs.

## Create credentials in Nessus

{% stepper %}
{% step %}

### Open Settings

In Nessus, click **Settings** in the top navigation bar. The **About** page appears.
{% endstep %}

{% step %}

### Open My Account

In the left navigation bar, click **My Account**.
{% endstep %}

{% step %}

### Open API Keys

Click the **API Keys** tab.
{% endstep %}

{% step %}

### Generate

Click **Generate**. A dialog box asks you to confirm. Click **Generate** again. Your new API key appears.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
See the [Tenable documentation](https://docs.tenable.com/nessus/Content/GenerateAnAPIKey.htm) for more information.
{% endhint %}

{% hint style="danger" %}
API keys are shown only when you generate them. If you generate new API keys for the same user, OctoXLabs can no longer fetch data from the Nessus host.
{% endhint %}

## Connection parameters

| Parameter              | Required | Type         | Default | Description                                                                                                 |
| ---------------------- | -------- | ------------ | ------- | ----------------------------------------------------------------------------------------------------------- |
| IP or Hostname         | Yes      | Text         |         | IP address or host name of the Nessus host.                                                                 |
| Access Key             | Yes      | Text         |         | Access key of the Nessus account.                                                                           |
| Secret Key             | Yes      | Password     |         | Secret key of the Nessus account.                                                                           |
| Port                   | No       | Integer      | 8834    | Nessus port.                                                                                                |
| SSL                    | No       | Boolean      | True    | Use HTTPS.                                                                                                  |
| Include Scans          | No       | List of text |         | Scan IDs to fetch. When set, only these scans are collected and Exclude Scans is ignored.                   |
| Exclude Scans          | No       | List of text |         | Scan IDs to skip. Used only when Include Scans is empty.                                                    |
| Include Folders        | No       | List of text |         | Folder IDs to limit the scans to, for example 1234,9876.                                                    |
| Fetch Vulnerabilities  | No       | Boolean      | True    | Fetch the vulnerability details of each host.                                                               |
| Enable MAC Aggregation | No       | Boolean      | False   | Use the host MAC address for aggregation.                                                                   |
| Enable IP Aggregation  | No       | Boolean      | False   | Use the host IP address for aggregation.                                                                    |
| Timeout                | No       | Integer      | 15      | Seconds to wait for API responses.                                                                          |
| Thread Count           | No       | Integer      | 32      | Parallel threads for API requests. Minimum 1, maximum 32.                                                   |
| Sleep Time             | No       | Integer      | 0       | Seconds between thread batches. Raise it if you hit rate limits.                                            |
| Filter Last Days       | No       | Integer      | 7       | Only scans modified in the last N days are read. Set 0 to read all scans. This can slow the discovery down. |

## Troubleshooting

The connector code does not define adapter specific error messages. Check the connection test result and the connector log.

## Change history

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