> 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/l/limacharlie.md).

# LimaCharlie

|                                |                                     |
| ------------------------------ | ----------------------------------- |
| Category                       | EDR / security telemetry            |
| Asset types                    | Devices                             |
| Authentication                 | Organization API key (JWT)          |
| Direction                      | OctoXLabs → LimaCharlie (read only) |
| Supported LimaCharlie versions | Not specified                       |
| Available since                | Not specified                       |

LimaCharlie is a security operations platform with endpoint sensors. OctoXLabs reads the sensor inventory of one organization and adds it to the device inventory.

## Use cases

* **Find sensors that stopped reporting.** Last seen comes from the sensor `alive` time.

```
Adapters = limacharlie AND NOT LastSeen last now-7d/d
```

* **Find LimaCharlie sensors missing from your asset sources.** List sensors that Active Directory does not know.

```
Adapters = limacharlie AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                         | Port | Protocol |
| ------------------- | ----------------------------------- | ---- | -------- |
| OctoXLabs connector | jwt.limacharlie.io (authentication) | 443  | HTTPS    |
| OctoXLabs connector | api.limacharlie.io (data requests)  | 443  | HTTPS    |

The connector must reach both hosts. Allow both in your egress rules or route them through the proxy option. The issued JWT is valid for one hour and the adapter renews it during long discoveries.

### Required permissions

| Scope or role | Permission                        | Needed for                   |
| ------------- | --------------------------------- | ---------------------------- |
| sensor.list   | Grant on the organization API key | Reading the sensor inventory |

`sensor.list` is the only privilege the adapter needs. A key without it is answered with HTTP 401 and the name of the missing privilege, so the connection test fails even though the key is valid. Use an organization API key, not a user API key. A user key grants access to every organization the user belongs to.

## Create credentials in LimaCharlie

{% stepper %}
{% step %}

### Select the organization

Log in to the LimaCharlie web app and select the organization to collect.
{% endstep %}

{% step %}

### Create an API key

Open the **REST API** section of that organization and create a new API key.
{% endstep %}

{% step %}

### Grant sensor.list

Grant the key the **sensor.list** privilege.
{% endstep %}

{% step %}

### Copy the secret

Copy the generated secret before you close the dialog and store it securely. The organization ID (a UUID) is shown on the same **REST API** page, next to the API keys.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
LimaCharlie registers its USP adapters, the connectors that ingest logs from third-party products such as Okta, CrowdStrike or Office 365, as ordinary sensors of the organization. They are collected as devices too. You can recognize them by the adapter name in place of a real hostname.
{% endhint %}

## Connection parameters

| Parameter       | Required | Type    | Default | Description                                                                                                                                                 |
| --------------- | -------- | ------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Organization ID | Yes      | String  | None    | UUID of the LimaCharlie organization.                                                                                                                       |
| Api key         | Yes      | String  | None    | Secret of an organization API key. The adapter sends the organization ID and this secret to jwt.limacharlie.io and uses the returned JWT as a bearer token. |
| Fetch devices   | No       | Boolean | True    | Collect the sensor inventory. Sensors are the only asset type, so discovery produces nothing while this is off.                                             |
| Per page        | No       | Integer | 100     | Sensors per request. The adapter follows the continuation token until all pages are read, so this changes only the number of requests.                      |
| Proxy URL       | No       | String  | None    | Proxy address, used as `http://<value>` for HTTP and HTTPS.                                                                                                 |
| Timeout         | No       | Integer | 30      | Seconds to wait for an API response.                                                                                                                        |

## What the connection test does

The test gets a JWT from jwt.limacharlie.io, then requests one sensor (`limit` 1) from the API. It passes when the API answers with status 200.

## API endpoints called

| Method | Path                                          | Purpose                                                                 |
| ------ | --------------------------------------------- | ----------------------------------------------------------------------- |
| POST   | <https://jwt.limacharlie.io>                  | Exchanges the organization ID (`oid`) and the API key secret for a JWT. |
| GET    | <https://api.limacharlie.io/v1/sensors/{oid}> | Lists sensors with `limit` and `continuation_token`.                    |

If the API answers 401, the connector requests a new JWT and retries, up to 3 times.

## Fields fetched

| LimaCharlie field   | OctoXLabs field                    |
| ------------------- | ---------------------------------- |
| hostname            | Hostname (primary identifier)      |
| int\_ip and ext\_ip | IpAddresses (valid addresses only) |
| mac\_addr           | MacAddresses                       |
| version             | AgentVersions (limacharlie)        |
| enroll              | First seen                         |
| alive               | Last seen                          |

## Troubleshooting

| Error message                                                                         | Cause                                                                                   | Fix                                                                                             |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| LimaCharlie request to {url} kept returning 401 after {n} re-authentication attempts. | The JWT was rejected on every attempt, for example because the key lacks sensor.list.   | Grant sensor.list to the key and check that it is an organization key for this organization ID. |
| Status Code: `, followed by URL, Method and the response body`                        | The API answered with a status other than 200. This is the shared REST connector error. | Read the status code and body in the message, then check the credentials, permissions and URL.  |

## Change history
