> 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/m/microsoft-defender-for-iot-formerly-cyberx.md).

# Microsoft Defender for IoT (formerly CyberX)

Microsoft Defender for IoT (formerly CyberX) discovers OT and IoT devices on the network. OctoXLabs reads the devices and the top CVEs of each device IP address.

## Use cases

* **Find IoT or OT devices that are not in another inventory.**

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

* **Check what one connection collected.**

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                          | Port          | Protocol                     |
| ------------------- | ------------------------------------ | ------------- | ---------------------------- |
| OctoXLabs connector | Defender for IoT host (IP parameter) | 443 (default) | HTTPS (HTTP when SSL is off) |

### Required permissions

| Scope or role | Permission   | Needed for      |
| ------------- | ------------ | --------------- |
| Any user role | Access token | Calling the API |

The baseline states that all user roles work with the API and that an access token is needed.

## Create credentials in Defender for IoT

{% stepper %}
{% step %}

### Open Access Tokens

In **System Settings**, select **Integrations > Access Tokens**.
{% endstep %}

{% step %}

### Generate a token

Select **Generate token**, enter a description and select **Generate**.
{% endstep %}

{% step %}

### Copy the token

Copy the token. It is not shown again. Select **Finish**.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter           | Required | Type    | Default | Description                                                |
| ------------------- | -------- | ------- | ------- | ---------------------------------------------------------- |
| IP                  | Yes      | String  | None    | Address of the Defender for IoT host.                      |
| Port                | No       | Integer | 443     | Port of the host.                                          |
| Authorization Token | Yes      | String  | None    | Access token, sent as the `Authorization` header value.    |
| Top                 | No       | Integer | 10      | Number of top-scored CVEs requested per device IP address. |
| SSL                 | No       | Boolean | True    | Use HTTPS.                                                 |
| Timeout             | No       | Integer | 30      | Seconds to wait for an API response.                       |
| Thread Count        | No       | Integer | 32      | Parallel threads for CVE requests. Minimum 1, maximum 32.  |
| Sleep Time          | No       | Integer | 0       | Delay in seconds between thread batches.                   |

## Troubleshooting

| Error message                                                  | Cause                                                                                 | Fix                             |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The host answered with an unexpected status. This is the shared REST connector error. | Check the token, host and port. |

## Change history
