> 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-deep-security.md).

# Trend Micro Deep Security

Trend Micro Deep Security provides server security for physical, virtual and cloud workloads, with intrusion prevention, anti-malware and integrity monitoring. OctoXLabs reads the computers known to Deep Security Manager and adds them to the device inventory. The adapter slug is `trend-micro`.

## Use cases

* **Find servers without a Deep Security agent.** Replace the adapter slug with a source that has a full server list.

```
Adapters = active-directory AND NOT Adapters = trend-micro
```

* **List every computer Deep Security protects.**

```
Adapters = trend-micro
```

## Before you begin

### Network

| Source              | Destination                          | Port                  | Protocol                           |
| ------------------- | ------------------------------------ | --------------------- | ---------------------------------- |
| OctoXLabs connector | Deep Security Manager (IP parameter) | 4119 (Port parameter) | HTTPS (HTTP when Is secure is off) |

### Required permissions

| Scope or role    | Permission     | Needed for                  |
| ---------------- | -------------- | --------------------------- |
| Auditor role     | Read only      | Computers and rule details  |
| Full Access role | Read and write | Works, but more than needed |

The baseline describes the Auditor role as read-only access.

## Create credentials in Trend Micro Deep Security

{% stepper %}
{% step %}

### Open API Keys

Go to **Administration > User Management > API Keys** and click **New**.
{% endstep %}

{% step %}

### Describe the key

Enter a **Name** and a **Description**.
{% endstep %}

{% step %}

### Choose the role

Select a role. **Auditor** grants read-only access. **Full Access** grants read and write.
{% endstep %}

{% step %}

### Set language, time zone and expiry

Select a **Language** and **Time Zone**. Optionally set an **Expiry** date. Click **OK**.
{% endstep %}

{% step %}

### Copy the secret key

Copy the **Secret key value**. It is not shown again.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                        | Required | Type    | Default | Description                                                                                                                       |
| -------------------------------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------------------------------------------------- |
| Ip                               | Yes      | String  | None    | IP address or host name of Deep Security Manager.                                                                                 |
| Port                             | No       | Integer | 4119    | Port of the API.                                                                                                                  |
| Api secret key                   | Yes      | String  | None    | Secret key of the API key. Sent in the `api-secret-key` header.                                                                   |
| Timeout                          | No       | Integer | 30      | Seconds to wait for an API response. Advanced.                                                                                    |
| Fetch intrusion prevention data? | No       | Boolean | False   | Add intrusion prevention rules. Advanced.                                                                                         |
| Fetch malware data?              | No       | Boolean | False   | Add anti-malware data. Advanced.                                                                                                  |
| Fetch integrity monitoring data? | No       | Boolean | False   | Add integrity monitoring data. Advanced.                                                                                          |
| Fetch security updates data?     | No       | Boolean | False   | Add security update data. Advanced.                                                                                               |
| Page size                        | No       | Integer | 5000    | Records per request. Minimum 100, maximum 5000. Lower values are more stable on Cloud One. Advanced.                              |
| Enable ip aggregation            | No       | Boolean | False   | Use the IP address as the aggregation key for computers whose host name is an IP address and that have no display name. Advanced. |
| Is secure                        | No       | Boolean | True    | Use HTTPS. Turn off for plain HTTP. Advanced.                                                                                     |

## Troubleshooting

| Error message                                                  | Cause                                                                                   | Fix                                                                     |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| 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. | Check the secret key, its role, the IP, port and the Is secure setting. |

## Change history
