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

# Picus

Picus runs breach and attack simulations through agents. OctoXLabs reads the agents as devices and the Picus console users as users.

## Use cases

* List Picus agents that OctoXLabs has collected.

```
Adapters = picus
```

## Before you begin

### Network

| Source              | Destination                                                  | Port | Protocol |
| ------------------- | ------------------------------------------------------------ | ---- | -------- |
| OctoXLabs connector | `api.picussecurity.com` (or your on-prem Picus Manager host) | 443  | HTTPS    |

### Required permissions

| Scope or role                    | Permission | Needed for       |
| -------------------------------- | ---------- | ---------------- |
| Read scope on the REST API token | Read       | Agents and users |

## Create credentials in Picus

{% stepper %}
{% step %}

### Open the token settings

In the Picus console go to **Settings > Rest API Token**.
{% endstep %}

{% step %}

### Generate a refresh token

Generate a refresh token. It is shown only once and is valid for 6 months. A read scope is enough, because the connector exchanges it for a short-lived access token.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default               | Description                                                     |
| ------------- | -------- | ------- | --------------------- | --------------------------------------------------------------- |
| Domain        | No       | String  | api.picussecurity.com | Picus API host. For on-prem Picus Manager, enter your own host. |
| Refresh Token | Yes      | String  |                       | Refresh token from the console.                                 |
| Proxy         | No       | String  |                       | Proxy address as `host:port`.                                   |
| Timeout       | No       | Integer | 30                    | Seconds to wait for API responses.                              |

## Troubleshooting

| Error message            | Cause                            | Fix                                                           |
| ------------------------ | -------------------------------- | ------------------------------------------------------------- |
| Max retries exceeded for | Picus kept answering 401 or 429. | Check the refresh token (valid for 6 months) and rate limits. |

## Change history

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