> 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/g/guardium.md).

# Guardium

Guardium is a database security and monitoring platform. OctoXLabs reads GIM clients, collectors and, optionally, S-TAP hosts and vulnerability assessment results.

## Use cases

* Find hosts known to Guardium that have no EDR agent.

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

* List Linux database hosts known to Guardium.

```
Adapters = guardium AND OS.Type = Linux
```

## Before you begin

### Network

| Source              | Destination                                   | Port                            | Protocol |
| ------------------- | --------------------------------------------- | ------------------------------- | -------- |
| OctoXLabs connector | Guardium host (central manager or aggregator) | Port set in the connection form | HTTPS    |

The URLs use `https://` unless Is Secure is turned off. The Port value has no default. If you use a proxy, enter it in Proxy URL.

### Required permissions

| Scope or role              | Permission                                                                 | Needed for                 |
| -------------------------- | -------------------------------------------------------------------------- | -------------------------- |
| Guardium user              | At least Read                                                              | Devices                    |
| Registered REST API client | Client ID and client secret                                                | Token request              |
| Vulnerability report       | Report with the **Data Source Name** column from the **VA Summary** entity | Vulnerabilities (optional) |

See the IBM documentation: <https://www.ibm.com/docs/en/guardium/12.0?topic=commands-using-guardium-rest-apis>

## Create credentials in Guardium

{% stepper %}
{% step %}

### Register an API client

Register a REST API client with the Guardium CLI, following the IBM page above. Save the client ID and the client secret that the CLI returns.
{% endstep %}

{% step %}

### Prepare a user

Use a Guardium user with at least Read permission. You need its username and password.
{% endstep %}

{% step %}

### Optional: use your own token

Instead of the client ID, secret, username and password, you can enter an API token. When a token is set, the connector uses it and does not call the token endpoint.
{% endstep %}

{% step %}

### Optional: create a vulnerability report

To collect vulnerability data, create a report in Guardium that includes the **Data Source Name** column from the **VA Summary** entity. Enter its name in Vulnerability Report Name.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                  | Required | Type    | Default | Description                                                                                               |
| -------------------------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------------------------- |
| IP                         | Yes      | Text    | None    | Address of the Guardium host.                                                                             |
| Port                       | Yes      | Integer | None    | Port of the Guardium server.                                                                              |
| Client ID                  | No       | Text    | None    | Client ID of the registered API client. Needed when no API token is given.                                |
| Client Secret              | No       | Text    | None    | Client secret returned by the client registration.                                                        |
| Username                   | No       | Text    | None    | Guardium user (Read permission or higher).                                                                |
| Password                   | No       | Text    | None    | Password of the user.                                                                                     |
| Is Secure?                 | No       | Boolean | `true`  | Use HTTPS. When off, the connector uses HTTP.                                                             |
| API Token                  | No       | Text    | None    | Your own API token. Used instead of the credentials above.                                                |
| Fetch Stap Informations    | No       | Boolean | `false` | Collect S-TAP hosts as separate assets.                                                                   |
| Fetch Db Type Informations | No       | Boolean | `false` | Collect inspection engine (database type) details of S-TAP hosts. Works only when S-TAP fetch is enabled. |
| Fetch Vulnerability Report | No       | Boolean | `false` | Collect the vulnerability report.                                                                         |
| Vulnerability Report Name  | No       | Text    | None    | Name of the report created in Guardium.                                                                   |
| Proxy URL                  | No       | Text    | None    | Proxy in `host:port` form. The connector prefixes it with `http://`.                                      |
| Timeout                    | No       | Integer | `30`    | Seconds to wait for API responses.                                                                        |
| Thread Count               | No       | Integer | `32`    | Parallel threads (1 to 32).                                                                               |
| Sleep Time                 | No       | Integer | `0`     | Delay in seconds between thread batches. Increase it when rate limit errors appear.                       |

## Troubleshooting

| Error message                                                                                                             | Cause                                                        | Fix                                                                             |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------- |
| `There has been an error accessing the Guardium token service.`                                                           | The token request failed.                                    | Check the client ID, client secret, username and password, or use an API token. |
| `Max retries exceeded for DB Type Info`                                                                                   | The inspection engine call kept returning HTTP 429.          | Increase Sleep Time or lower Thread Count.                                      |
| `No Data Source Name (Hostname) found in the report.Please check the report configurations and provide Data Source Name.` | The vulnerability report has no **Data Source Name** column. | Add the column from the **VA Summary** entity.                                  |

## Change history
