> 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/k/kaspersky-security-center.md).

# Kaspersky Security Center

Kaspersky Security Center is the central management console for Kaspersky Security Center endpoint protection. OctoXLabs reads the managed hosts through its Open API and adds them to the device inventory.

## Use cases

* **Find hosts that Kaspersky Security Center no longer sees.** Last seen comes from the last visible date of the host.

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

* **Find servers without Kaspersky Security Center protection.** Compare with Active Directory servers.

```
Adapters = active-directory AND Category = Server AND NOT Adapters = kaspersky-sc
```

* **List Windows hosts managed by Kaspersky Security Center.** Filter on the OS type.

```
Adapters = kaspersky-sc AND OS.Type = Windows
```

## Before you begin

### Network

| Source              | Destination                      | Port                 | Protocol |
| ------------------- | -------------------------------- | -------------------- | -------- |
| OctoXLabs connector | Kaspersky Security Center server | 13299 (configurable) | HTTPS    |

Clear **Is Secure?** to use HTTP.

### Required permissions

Not verified: the sources do not name a role or permission. The account must be able to start an Open API session and read host information.

## Create credentials in Kaspersky Security Center

{% stepper %}
{% step %}

### Pick the account

Use an account that can sign in to the Security Center Open API. Tick **Is Domain User** in OctoXLabs if it is a domain account.
{% endstep %}

{% step %}

### Note the connection details

Note the host address and the Open API port (13299 by default).
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter           | Required | Type    | Default | Description                                                                                                                                                      |
| ------------------- | -------- | ------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| IP or Domain        | Yes      | String  | None    | IP address or domain of the Kaspersky Security Center host.                                                                                                      |
| Is Domain User      | No       | Boolean | False   | Set it when the account is a domain user. The connector sends it as the `internal` flag of the authorization header. The baseline does not describe this option. |
| Username            | Yes      | String  | None    | Username of the account.                                                                                                                                         |
| Password            | Yes      | String  | None    | Password of the account.                                                                                                                                         |
| Port                | No       | Integer | 13299   | Open API port.                                                                                                                                                   |
| Is Secure?          | No       | Boolean | True    | Connect over HTTPS.                                                                                                                                              |
| Extend Information? | No       | Boolean | False   | By default OctoXLabs fetches only the DNS name, OS name, last visible date, status and last update. Turn it on to request a much longer list of host fields.     |
| Timeout             | No       | Integer | 30      | Seconds to wait for an API response.                                                                                                                             |

## Troubleshooting

| Error message                                                    | Cause                                                                                                                                  | Fix                                                                                            |
| ---------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Error Id: {id}, Error Module: {module}, Error Message: {message} | The Open API refused the session start. The values come from the X-KSC-ErrorId, X-KSC-ErrorModule and X-KSC-ErrorMsg response headers. | Check the username, password, Is Domain User setting and the account rights.                   |
| Missing expected key in chunk response: {key}                    | A chunk of host names came back without the expected structure. The chunk is skipped.                                                  | Check the Security Center version and the account rights, then run discovery again.            |
| 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.                                                | Read the status code and body in the message, then check the credentials, permissions and URL. |

## Change history
