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

# Falcon Crowdstrike

Falcon Crowdstrike is a cloud-native endpoint detection and response platform. OctoXLabs reads hosts with their online state and host groups, and Falcon console users, and adds them to the device and user inventories.

## Use cases

* **Find devices without the Falcon sensor.** Compare another source with Falcon coverage. Replace `active-directory` with the adapter you use as the reference.

```
Adapters = active-directory AND NOT Adapters = falcon-crowdstrike
```

* **List Falcon console users.** Review who has access to the Falcon console.

```
Adapters = falcon-crowdstrike
```

Run this on the user inventory to list Falcon users.

## 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                                                    |
| --------------- | ---------- | ------------------------------------------------------------- |
| Hosts           | Read       | Device inventory, details, online state                       |
| Host groups     | Read       | Host group enrichment                                         |
| User Management | Read       | User accounts                                                 |
| Device Content  | Read       | Rapid Response content (only when Fetch Rapid Response is on) |

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

## Create credentials in Falcon Crowdstrike

{% stepper %}
{% step %}

### Open API clients

In the Falcon console, go to **Support** > **API Clients and Keys**. You can view clients, add clients or view the audit log here.
{% endstep %}

{% step %}

### Add an API client

Click **Add new API Client**. Enter a descriptive name and select the scopes from the table above with **Read** permission.
{% endstep %}

{% step %}

### Save the secret

Click save. The **Client ID** and **Client Secret** are shown. The secret is shown only when the client is created or reset, 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.                                                                         |
| Fetch Rapid Response Information | No       | Boolean            | false                         | Also reads Rapid Response content states. Needs the Device Content scope.                  |
| Use V2 version                   | No       | Boolean            | true                          | Uses the v2 device details endpoint.                                                       |
| Timeout                          | No       | Integer            | 30                            | Seconds to wait for API responses.                                                         |
| Enable IP Aggregation            | No       | Boolean            | false                         | When the hostname is an IP address, aggregate the device by IP instead of hostname.        |
| Thread count                     | No       | Integer            | 15                            | Parallel threads. Minimum 1, maximum 32.                                                   |
| Sleep time                       | No       | Integer            | 0                             | Seconds between thread batches. Increase it on rate limit errors.                          |
| Proxy                            | No       | String             | None                          | Proxy address, used as `http://<value>` for HTTP and HTTPS.                                |
| Verbose logging                  | No       | Boolean            | false                         | Detailed per-page logging for device ID and user ID fetches. Turn on only while debugging. |

## 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.                          |
| Rate limit hit at {url}. Sleeping {n}s                                                                                    | The rate limit was reached. This is a warning in the log. | Increase Sleep time or lower Thread count. |

## Change history

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