> 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-container-security.md).

# Falcon Crowdstrike Container Security

CrowdStrike Falcon Container Security (Kubernetes Protection) gives visibility into Kubernetes environments. OctoXLabs reads Kubernetes nodes as devices and, when enabled, clusters and pods as services.

## Use cases

* **List Kubernetes nodes reported by Falcon.** Show every node collected as a device.

```
Adapters = falcon-crowdstrike-container-security
```

* **Find Kubernetes nodes without a regular Falcon sensor record.**

```
Adapters = falcon-crowdstrike-container-security AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

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

The domain depends on the region of your Falcon cloud. Use the domain shown where you created the client ID and secret. If a proxy is set, requests go through it. The connector does not verify the TLS certificate.

### Required permissions

| Scope or role          | Permission | Needed for               |
| ---------------------- | ---------- | ------------------------ |
| Kubernetes Protection  | Read       | Nodes, clusters and pods |
| Falcon Container Image | Read       | Required by the baseline |

To view, create or modify API clients you need the Falcon Administrator role.

## 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 grant **Read** on the scopes listed under Required permissions.
{% endstep %}

{% step %}

### Save the secret

Click save. Copy the **Client ID** and **Client Secret**. The secret is shown only once, so store it safely.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type               | Default                       | Description                                                                                                           |
| -------------- | -------- | ------------------ | ----------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| Domain         | No       | String             | <https://api.crowdstrike.com> | Base URL of the API for your region. Include the scheme.                                                              |
| Client id      | Yes      | String             | None                          | API client ID.                                                                                                        |
| Client secret  | Yes      | String (sensitive) | None                          | API client secret.                                                                                                    |
| Timeout        | No       | Integer            | 30                            | Seconds to wait for API responses.                                                                                    |
| Namespace      | No       | String             | Empty                         | Limits pod collection to these namespaces, separated by commas. Empty means all. Nodes and clusters are not affected. |
| Last seen days | No       | Integer            | 0                             | Collects only nodes and pods seen within this many days. 0 means no limit.                                            |
| Enrich node    | No       | Boolean            | false                         | Adds details from the node enrichment endpoint. Sends one extra request per node.                                     |
| Fetch services | No       | Boolean            | false                         | Collects clusters and pods as services. Nodes are always collected as devices.                                        |
| Thread count   | No       | Integer            | 15                            | Parallel requests for node enrichment. Minimum 1, maximum 32. Has no effect unless Enrich node is on.                 |
| Sleep time     | No       | Integer            | 0                             | Seconds between enrichment requests. Increase it on rate limit errors.                                                |
| Proxy          | No       | String             | None                          | Proxy address, used as `http://<value>` for HTTP and HTTPS.                                                           |

## Troubleshooting

| Error message                                                                                                             | Cause                       | Fix                        |
| ------------------------------------------------------------------------------------------------------------------------- | --------------------------- | -------------------------- |
| Max retries exceeded for {url}                                                                                            | The API kept answering 500. | Run discovery again later. |
| Crowdstrike servers has failed to respond in given time. Given time: {timeout}. You may try to increase timeout duration. | The request timed out.      | Increase Timeout.          |

## Change history

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