> 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/t/trend-micro-cloud-app-security.md).

# Trend Micro Cloud App Security

Trend Micro Cloud App Security protects cloud email and collaboration services such as Exchange Online, Gmail, SharePoint, OneDrive and Teams. OctoXLabs derives users from the mailboxes named in security events that it reads through the SIEM log retrieval API.

## Use cases

* **Find users with security events and no directory account.** How accounts are matched depends on your user merge settings.

```
Adapters = trend-micro-cloud-app-security AND NOT Adapters = active-directory
```

* **Review affected users by email domain.** Find accounts with an address outside your domain.

```
Adapters = trend-micro-cloud-app-security AND NOT Email ~ <your domain>
```

## Before you begin

### Network

| Source              | Destination                                                     | Port | Protocol |
| ------------------- | --------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | api.tmcas.trendmicro.com (Domain parameter, differs per region) | 443  | HTTPS    |

The host differs per region (US, EU, AU, JP, IN, SG, UK). Use the host shown in your Cloud App Security console. See [Understanding the Service URL](https://docs.trendmicro.com/en-us/documentation/article/cloud-app-security-integration-api-online-help-understanding-the-ur). If a proxy is set, requests go through it.

### Required permissions

| Scope or role                             | Permission | Needed for          |
| ----------------------------------------- | ---------- | ------------------- |
| API token with the Log Retrieval API type | Read       | Security event logs |

## Create credentials in Trend Micro Cloud App Security

{% stepper %}
{% step %}

### Open the API page

Log on to the Cloud App Security management console and go to **Administration > Automation and Integration APIs**.
{% endstep %}

{% step %}

### Add a token

Click **Add** and select the target to create the token for. Enter a name and, optionally, a description.
{% endstep %}

{% step %}

### Select the API type

Select at least one API type. The **Log Retrieval** API is required to fetch security event logs.
{% endstep %}

{% step %}

### Create the token

Click **Create Token**. The token appears on the Automation and Integration APIs screen.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
A token is valid for 365 days. When it expires, delete it and add a new one, or select it and click **Refresh**. A maximum of 20 tokens is supported.
{% endhint %}

## Connection parameters

| Parameter  | Required | Type    | Default                  | Description                                                                                                 |
| ---------- | -------- | ------- | ------------------------ | ----------------------------------------------------------------------------------------------------------- |
| Domain     | Yes      | String  | api.tmcas.trendmicro.com | Regional service host, without a scheme.                                                                    |
| Api token  | Yes      | String  | None                     | Token with the Log Retrieval API type.                                                                      |
| Start time | No       | String  | None                     | Start of the time window in ISO 8601 format. Empty means the service default (the last 72 hours). Advanced. |
| End time   | No       | String  | None                     | End of the time window in ISO 8601 format. Advanced.                                                        |
| Proxy      | No       | String  | None                     | Proxy address, used as `http://<value>` for HTTP and HTTPS. Advanced.                                       |
| Timeout    | No       | Integer | 30                       | Seconds to wait for an API response. Advanced.                                                              |

When you set a window, give both Start time and End time. The range cannot exceed 72 hours, according to the baseline.

## Troubleshooting

| Error message                                                  | Cause                                                                                | Fix                                                    |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------ |
| Max retries exceeded for {url}                                 | The API kept answering 429.                                                          | Run discovery again later.                             |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an unexpected status. This is the shared REST connector error. | Check the token, its API type and the regional domain. |

## Change history

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