> Source: https://docs.cyberelements.io/bastion/4.7/fi/Security/SessionRecordings/

# Session recordings

Session recording (video, keystrokes, metadata) is a central function of CyberElements Bastion. Recordings are sensitive data **on three counts**:

- they may contain **confidential information** displayed on screen or **secrets typed** during sessions;
- they hold **personal data** within the meaning of the GDPR;
- they may carry **evidential value** in the event of an incident.

This chapter gathers the hardening recommendations specific to them.

> **Information**
>
> **ANSSI-BP-028 v2.0 reference**: no recommendation is devoted to session recordings; the principles for protecting logs (R71, R72) and for logging architecture (PA-012) apply **by analogy**.

The settings referred to in this chapter are configured in the administration console; each recommendation links to the page that describes them.

## Summary

| # | Recommendation | Mediation Controller | Edge Gateway |
|---|---|---|---|
| [**R74**](#r74) | Dedicated storage and monitoring of recording space | ✅ | ✅ |
| [**R75**](#r75) | Restriction of access to recordings | ✅ | ✅ |
| [**R76**](#r76) | Retention and purging of recordings | ✅ | ❌ |
| [**R77**](#r77) | Logging of video events | ✅ | ❌ |
| [**R78**](#r78) | Password rotation after a recorded session | ✅ | ❌ |
| [**R79**](#r79) | Hardening of the external database | ✅ | ✅ |

## R74. Dedicated storage and monitoring of recording space

**Applies to**: Mediation Controller ✅ · Edge Gateway ✅

Bulky by nature, recordings can **fill up a file system**. They should be stored on a dedicated partition:

- mounted with the `nosuid,nodev,noexec` options, consistent with the partitioning of [R3](https://docs.cyberelements.io/bastion/4.7/fi/Security/SystemHardening/SystemInstallation/#r3);
- **sized** according to the number of simultaneous sessions, their average duration and the retention policy ([R76](#r76));
- and whose **free space** is monitored with alert thresholds.

> **Warning!**
>
> The exact storage location of recordings and the **behaviour of the product when the volume fills up** (new sessions refused, blocking, overwriting) must be confirmed with Systancia before sizing and alert thresholds are fixed.

## R75. Restriction of access to recordings

**Applies to**: Mediation Controller ✅ · Edge Gateway ✅

Only the product's service accounts (`ipdivacarerecord`, group `carerecord`, see [R48](https://docs.cyberelements.io/bastion/4.7/fi/Security/GatewayCertificates/#r48)) should be able to access recordings **at file system level**.

**No direct viewing** should take place on the server: playback happens exclusively through the administration console, which applies the configured rights and **records who viewed what**.

> **Information**
>
> In a virtualised environment, recordings ultimately live on the **hypervisor's datastore**: the measures for compartmentalising and protecting access to storage therefore matter all the more.

## R76. Retention and purging of recordings

**Applies to**: Mediation Controller ✅ · Edge Gateway ❌

As recordings hold personal data, their **retention period must be limited, documented and consistent with the organisation's policy** (GDPR proportionality). Purging must be **effective and verified**.

The retention period of a video is a setting of the recorded object (the application, or the machine for a direct recording); it is fixed when the session opens, and each recording shows its automatic deletion date in the [archives](https://docs.cyberelements.io/bastion/4.7/fi/Usage/Administration/AdminConsole/MainWorkPanel/Supervision/Archives/). Purging the platform's log, a separate matter, is set in [Cleanup platform log data](https://docs.cyberelements.io/bastion/4.7/fi/Usage/Administration/AdminConsole/ConfigurationWorkPanel/LogDataCleanup/). Check periodically that purging does run (how the occupied space evolves, the dates of the oldest recordings).

## R77. Logging of video events

**Applies to**: Mediation Controller ✅ · Edge Gateway ❌

The **"Send video events to syslog"** option ([general options](https://docs.cyberelements.io/bastion/4.7/fi/Usage/Reference/AdminConsole/GeneralOptions/#syslog)) emits the events linked to recorded sessions to syslog.

These events complete the logging and centralisation chain described in [Centralised logging](https://docs.cyberelements.io/bastion/4.7/fi/Security/CentralizedLogging/) and feed correlation in the SIEM: start and end of a recorded session, viewing. This option is recommended wherever centralisation is in place.

## R78. Password rotation after a recorded session

**Applies to**: Mediation Controller ✅ · Edge Gateway ❌

The password vault can trigger **rotation of the secret** used at the end of any recorded session (option of the [vault in the general options](https://docs.cyberelements.io/bastion/4.7/fi/Usage/Reference/AdminConsole/GeneralOptions/#vault)), which narrows the window in which a secret potentially exposed during the session can be used.

> **Warning!**
>
> Classified **to be validated**: this option assumes that rotation rights exist on the target accounts and that the applications tolerate the change; test it on a restricted scope before generalising (see [Classification of recommendations](https://docs.cyberelements.io/bastion/4.7/fi/Security/Classification/#reserved-or-to-be-validated)).

## R79. Hardening of the external database

**Applies to**: Mediation Controller ✅ · Edge Gateway ✅

Where an external database is used:

- the **network flows** towards that database must be strictly limited (see [Local firewall](https://docs.cyberelements.io/bastion/4.7/fi/Security/LocalFirewall/));
- the **connection account** must be a dedicated service account with minimal rights;
- the **flow must be encrypted** if the network it crosses is not under control;
- and the database must be **included in the backup policy**.

> **Warning!**
>
> Classified **to be validated**: an architecture specific to each deployment; flows, accounts and encryption to be defined with Systancia (see [Classification of recommendations](https://docs.cyberelements.io/bastion/4.7/fi/Security/Classification/#reserved-or-to-be-validated)).
