> 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/f/falcon-crowdstrike-kubernetes-protection.md).

# Falcon Crowdstrike Kubernetes Protection

CrowdStrike Falcon Kubernetes Protection gives visibility and runtime security for Kubernetes clusters and nodes. OctoXLabs reads the worker nodes from the Falcon Container Security API and adds them to the device inventory.

## Use cases

* **Find Kubernetes nodes that are not covered by another security tool.** List nodes known to Falcon Kubernetes Protection that another source does not report.

```
Adapters = falcon-crowdstrike-kubernetes-protection AND NOT Adapters = tenable-sc
```

* **Check node agent coverage.** Compare nodes seen by Kubernetes Protection with the Falcon sensor inventory.

```
Adapters = falcon-crowdstrike-kubernetes-protection AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                                     | Port | Protocol |
| ------------------- | --------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | CrowdStrike API (Domain parameter, default api.crowdstrike.com) | 443  | HTTPS    |

The Domain depends on your Falcon cloud region. If a proxy is set, requests go through it.

### Required permissions

| Scope or role             | Permission         | Needed for                                               |
| ------------------------- | ------------------ | -------------------------------------------------------- |
| Kubernetes Protection     | Read               | Listing nodes and node enrichment                        |
| Falcon Administrator role | Manage API clients | Creating the API client (done once, by an administrator) |

The baseline says the **Kubernetes Protection: Read** scope is required, and that you need the Falcon Administrator role to create or modify API clients.

## Create credentials in CrowdStrike Falcon

{% stepper %}
{% step %}

### Open API clients

In the Falcon console, go to **Support** > **API Clients and Keys**.
{% endstep %}

{% step %}

### Add an API client

Click **Add new API Client**. Enter a descriptive name and select the **Kubernetes Protection: Read** scope.
{% endstep %}

{% step %}

### Save and copy the secret

After you save, Falcon shows the **Client ID** and **Client Secret**. The secret is shown only once, so store it securely.
{% endstep %}

{% step %}

### Note the region domain

Use the API domain of the region where you created the client. Enter it as the Domain parameter.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                         | Required | Type    | Default                       | Description                                                                                                 |
| --------------------------------- | -------- | ------- | ----------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Domain                            | No       | String  | <https://api.crowdstrike.com> | CrowdStrike API base URL for your region, including the scheme.                                             |
| Client ID                         | Yes      | String  | None                          | API client ID.                                                                                              |
| Client Secret                     | Yes      | String  | None                          | API client secret.                                                                                          |
| Timeout                           | No       | Integer | 30                            | Seconds to wait for an API response.                                                                        |
| Fetch Node Enrichment Information | No       | Boolean | false                         | Makes one extra request per node to collect enrichment details. Increases discovery time on large clusters. |
| Thread count                      | No       | Integer | 15                            | Parallel workers for node enrichment, from 1 to 32. Used only when enrichment is on.                        |
| Sleep time                        | No       | Integer | 0                             | Seconds to wait between batches of parallel requests. Raise it if you hit the API rate limit.               |
| Proxy                             | No       | String  | None                          | Proxy address, used as `http://<value>` for HTTP and HTTPS.                                                 |

## Troubleshooting

| Error message                                                    | Cause                                                                                      | Fix                                                                                        |
| ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| Offset limit reached for {url}, remaining resources are skipped. | The tenant has more nodes than the nodes endpoint can page through. This is a log warning. | Not verified. The nodes beyond the limit are not collected.                                |
| Node enrichment failed for {node\_name}: {error}                 | The enrichment request for a node failed. This is a log warning.                           | The node is kept without enrichment. Check the scope and rate limit, and raise Sleep time. |

## Change history

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