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

# SecHard

SecHard checks the configuration compliance of servers, network devices and other resources. OctoXLabs uses it to add the resources it manages to the device inventory.

## Use cases

* List resources that SecHard manages.

```
Adapters = sechard
```

* Find SecHard resources that no EDR covers.

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

## Before you begin

### Network

| Source              | Destination                 | Port                          | Protocol                           |
| ------------------- | --------------------------- | ----------------------------- | ---------------------------------- |
| OctoXLabs connector | SecHard host (IP you enter) | The port you enter (required) | HTTPS (HTTP when Is Secure is off) |

### Required permissions

| Scope or role   | Permission | Needed for                         |
| --------------- | ---------- | ---------------------------------- |
| SecHard account | Read       | Resource list and resource details |

## Create credentials in SecHard

Use a SecHard account that can read resources. The source instructions do not give the steps to create it. Not verified: the minimum role.

## Connection parameters

| Parameter    | Required | Type    | Default | Description                                                                                            |
| ------------ | -------- | ------- | ------- | ------------------------------------------------------------------------------------------------------ |
| IP           | Yes      | String  | None    | IP address of the SecHard host.                                                                        |
| Port         | Yes      | Integer | None    | Port of the SecHard API.                                                                               |
| Username     | Yes      | String  | None    | Account used to connect.                                                                               |
| Password     | Yes      | String  | None    | Password of that account.                                                                              |
| Is Secure?   | No       | Boolean | True    | Use HTTPS.                                                                                             |
| Timeout      | No       | Integer | 30      | Seconds to wait for API responses.                                                                     |
| Thread Count | No       | Integer | 32      | Parallel threads for resource detail requests. Min 1, max 32.                                          |
| Sleep Time   | No       | Integer | 0       | Seconds to wait while threads are created. A higher value lowers resource use and lengthens discovery. |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Status Code:  | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

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