> 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/s/secflowx.md).

# SecFlowX

SecFlowX collects assets and vulnerabilities from your security tools. OctoXLabs uses it to add its assets, such as IPs, domains and repositories, with their vulnerabilities to the inventory, and optionally its users.

## Use cases

* List assets that SecFlowX reports.

```
Adapters = secflowx
```

* Find SecFlowX assets that no EDR covers.

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

## Before you begin

### Network

| Source              | Destination                  | Port                         | Protocol                           |
| ------------------- | ---------------------------- | ---------------------------- | ---------------------------------- |
| OctoXLabs connector | SecFlowX host (IP you enter) | 5000 (default, configurable) | HTTPS (HTTP when Is Secure is off) |

### Required permissions

| Scope or role            | Permission | Needed for                        |
| ------------------------ | ---------- | --------------------------------- |
| User that owns the token | Read       | Users, Assets and Vulnerabilities |

Log in with a user that has read access to Users, Assets and Vulnerabilities.

## Create credentials in SecFlowX

{% stepper %}
{% step %}

### Log in

Log in to the SecFlowX web interface with a user that has read access to Users, Assets and Vulnerabilities.
{% endstep %}

{% step %}

### Open Personal Access Tokens

Open your account menu and go to **Settings > Personal Access Tokens**.
{% endstep %}

{% step %}

### Generate a token

Click **Generate New Token**, give it a descriptive name and choose an expiry date.
{% endstep %}

{% step %}

### Copy the token

Copy the token right away. It is shown only once.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter    | Required | Type    | Default | Description                                                  |
| ------------ | -------- | ------- | ------- | ------------------------------------------------------------ |
| IP           | Yes      | String  | None    | IP address of the SecFlowX host.                             |
| Port         | No       | Integer | 5000    | Port of the API.                                             |
| Api Token    | Yes      | String  | None    | Personal access token, sent as `Authorization: Pat <token>`. |
| Is Secure    | No       | Boolean | True    | Use HTTPS.                                                   |
| Per Page     | No       | Integer | 100     | Records per page.                                            |
| Fetch Users  | No       | Boolean | False   | Also collect user accounts. Assets are always collected.     |
| Proxy        | No       | String  | None    | Proxy as host:port. The connector prefixes it with http\://. |
| Timeout      | No       | Integer | 30      | Seconds to wait for API responses.                           |
| Thread Count | No       | Integer | 32      | Parallel threads for vulnerability details. Min 1, max 32.   |
| Sleep Time   | No       | Integer | None    | Seconds of delay between thread batches.                     |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Status Code:  | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

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