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

# Sysdig Secure

Sysdig Secure is a cloud workload security platform. OctoXLabs reads the host inventory as devices. With Fetch Vulnerabilities on, it also reads the latest runtime scan of each host for the operating system, installed packages and vulnerabilities. It reads users with their team membership.

## Use cases

* List the hosts in the Sysdig inventory.

```
Adapters = sysdig-secure
```

* Find Sysdig hosts that no endpoint detection tool reports.

```
Adapters = sysdig-secure AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                                                                      | Port | Protocol |
| ------------------- | ------------------------------------------------------------------------------------------------ | ---- | -------- |
| OctoXLabs connector | Sysdig API host (SaaS regional host, for example api.us1.sysdig.com, or api.sysdig. on premises) | 443  | HTTPS    |

The connector always uses HTTPS on the default port. An optional HTTP proxy can be set.

### Required permissions

| Scope or role                         | Permission | Needed for                                                             |
| ------------------------------------- | ---------- | ---------------------------------------------------------------------- |
| Inventory                             | Read       | Hosts                                                                  |
| Vulnerability Management scan results | Read       | Operating system, packages and vulnerabilities (Fetch Vulnerabilities) |
| users.read                            | Read       | User roster                                                            |
| customer-teams.read                   | Read       | Teams                                                                  |
| memberships.read                      | Read       | Team members                                                           |

The permissions come from the source instructions. A user API token only sees the hosts of the team it belongs to. Use a token of a team that has access to the Entire Infrastructure, otherwise some hosts are not collected. Host scanning must be enabled in Sysdig, otherwise hosts have no scan to read.

## Create credentials in Sysdig Secure

{% stepper %}
{% step %}

### Open the user profile

In Sysdig, go to **Settings** > **User Profile**.
{% endstep %}

{% step %}

### Choose the token

Use the API token of an administrator, or a Global Service Account token. A Team-Based Service Account cannot hold every permission listed above.
{% endstep %}

{% step %}

### Check the team scope

Use a token of a team that has access to the Entire Infrastructure.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter             | Required | Type     | Default | Description                                                                                                                   |
| --------------------- | -------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Domain                | Yes      | Text     |         | Host of the Sysdig API. Do not include the scheme or a trailing path. The host is always reached over HTTPS.                  |
| API Token             | Yes      | Password |         | Sysdig Secure API token, sent as a Bearer token.                                                                              |
| Fetch Vulnerabilities | No       | Boolean  | False   | Read the latest runtime scan of every host (operating system, packages, vulnerabilities). It makes one more request per host. |
| Page Size             | No       | Integer  | 1000    | Records per page. Sysdig accepts at most 1000 for hosts and scan results. Users and teams use at most 200.                    |
| Thread Count          | No       | Integer  | 8       | Scan results read in parallel. Minimum 1, maximum 32. Lower it if Sysdig rate limits requests.                                |
| Proxy URL             | No       | Text     |         | Proxy address.                                                                                                                |
| Timeout               | No       | Integer  | 30      | Seconds to wait for API responses.                                                                                            |

## Troubleshooting

| Error message                                     | Cause                                            | Fix                                            |
| ------------------------------------------------- | ------------------------------------------------ | ---------------------------------------------- |
| Max retries exceeded. Status Code: {status\_code} | Sysdig kept returning HTTP 429 after 5 attempts. | Lower Thread Count or Page Size and run again. |

## Change history

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