> 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/a/algosec.md).

# AlgoSec

AlgoSec AppViz maps application connectivity. OctoXLabs reads the network objects defined in the AppViz tenant and adds them as devices.

## Use cases

* Find devices that AlgoSec reports but your EDR does not cover.

```
Adapters = algosec AND NOT Adapters = falcon-crowdstrike
```

* Review devices that AlgoSec has not seen recently.

```
Adapters = algosec AND NOT LastSeen last now-30d/d
```

* Check what one AlgoSec connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                                     | Port | Protocol |
| ------------------- | --------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | us.app.algosec.com (default regional host, configurable Domain) | 443  | HTTPS    |

### Required permissions

| Scope or role | Permission           | Needed for |
| ------------- | -------------------- | ---------- |
| Access key    | Read network objects | Devices    |

The Client ID must belong to an AlgoSec access key with permission to read network objects.

## Create credentials in AlgoSec

{% stepper %}
{% step %}

### Get the Tenant ID

Use the Tenant ID that AlgoSec gave you when you purchased AppViz.
{% endstep %}

{% step %}

### Create an access key

Generate an AlgoSec access key. The source does not give the menu path.
{% endstep %}

{% step %}

### Copy the credentials

Copy the Client ID and Client Secret. The secret is shown only when the key is created.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default            | Description                                                                      |
| ------------- | -------- | ------- | ------------------ | -------------------------------------------------------------------------------- |
| Domain        | Yes      | String  | us.app.algosec.com | Regional host of your AppViz tenant. Login and network object calls both use it. |
| Tenant ID     | Yes      | String  | None               | Tenant ID from AlgoSec.                                                          |
| Client ID     | Yes      | String  | None               | Client ID of the access key.                                                     |
| Client Secret | Yes      | String  | None               | Client Secret of the access key.                                                 |
| Proxy URL     | No       | String  | None               | Proxy address. The connector sends requests through `http://<value>`.            |
| Timeout       | No       | Integer | 30                 | Time in seconds to wait for API responses.                                       |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Max retries exceeded for                                               | The API answered 401, 429 or 500 five times in a row.                  | Check the access key. Wait and try again if the service is rate limiting.                                                                     |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

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