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

# KeepNetLabs

KeepNetLabs is a security awareness and phishing simulation platform. OctoXLabs reads the phishing reporter records and adds them to the device inventory.

## Use cases

* **List KeepNetLabs records.** Review the records that Keepnet reports.

```
Adapters = keepnet
```

* **Find records without a recent sighting.** Last seen comes from `lastSeen`.

```
Adapters = keepnet AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination                         | Port | Protocol |
| ------------------- | ----------------------------------- | ---- | -------- |
| OctoXLabs connector | api.keepnetlabs.com (URL parameter) | 443  | HTTPS    |

The connector always uses HTTPS.

### Required permissions

| Scope or role      | Permission | Needed for                                  |
| ------------------ | ---------- | ------------------------------------------- |
| Company admin role | Required   | The user that owns the client ID and secret |

The baseline says the user role must be company **admin**.

## Create credentials in KeepNetLabs

{% stepper %}
{% step %}

### Use a company admin user

Sign in to KeepNetLabs as a user whose role is company **admin**.
{% endstep %}

{% step %}

### Open REST API settings

Go to **Company > Company Settings > Rest API**.
{% endstep %}

{% step %}

### Create the client

Create a Client ID and Client Secret key. The secret is displayed only at the time of creation. Copy it and store it in a safe place.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter         | Required | Type    | Default             | Description                                                |
| ----------------- | -------- | ------- | ------------------- | ---------------------------------------------------------- |
| URL               | No       | String  | api.keepnetlabs.com | Host name of the KeepNetLabs API server, without a scheme. |
| Client ID         | Yes      | String  | None                | Generated client ID.                                       |
| Client Secret Key | Yes      | String  | None                | Generated client secret.                                   |
| 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. | Read the status code and body in the message, then check the credentials, permissions and URL. |

## Change history
