Skip to content

Sending events to a SIEM

CyberElements SaaS can forward the events of your tenant to a syslog server: a SIEM, a SOC collector or any log concentrator. This section lists every message that can be sent this way, word for word, so that a parser can be written for each of them. This page describes what is sent, how to enable it, the structure of a received line, and how its fields map to two standard schemas.

What is sent

In CyberElements SaaS, one family of messages is available: the events of the tenant.

Family Content Enabled by Severity
Tenant events The event log of the tenant: connections, resource launches, configuration changes, password rotations, notifications The CyberElements Support, on request, and Send platform events via syslog in the general options of the tenant err (3)

Forwarding to the remote server is set up by CyberElements

The platform is operated by CyberElements: the remote server, the protocol and the certificate are set by the CyberElements Support, on request. The Send platform events via syslog option of the administration console decides whether the events of the tenant are sent.

Enabling the sending

  1. Ask the CyberElements Support to enable the sending of the events of your tenant, and give it:
    • the name of your collector, optionally followed by : and a port (see Transport);
    • the protocol: TLS, TCP or UDP;
    • in TLS, the certification authority that issued the certificate of the collector.
  2. Once the sending is enabled by CyberElements, open the general options in the administration console and, in the Syslog frame, tick Send platform events via syslog.

Until CyberElements has enabled the sending, the options of the Syslog frame stay visible but disabled. The Send video events to syslog option of the same frame is not part of this offer: only the tenant events are available.

Transport

Protocol Port used when none is given Encryption
TLS (default) 6514 Yes
TCP 1468 No
UDP 514 No
  • The collector is given as a host name, optionally followed by : and a port (siem.domain.local:6514). Without a port, the port of the table applies: note that it is 1468 in TCP, not 514.
  • In TLS, the certificate of the collector is checked against the name given for the collector: it is the only name accepted. Give the name carried by the certificate of the collector, and the certification authority that issued it.
  • Forwarding is performed by the rsyslog service of the Mediation Controller of the platform.

In TLS, the certification authority is required

The certificate of the collector is validated only against the certification authorities supplied for the sending. When none is supplied, no connection succeeds: the Mediation Controller refuses the collector, and the events produced meanwhile are lost. They are not sent again once the connection is restored.

Structure of a received line

The messages are forwarded in the traditional syslog format (RFC 3164), without structured data:

1
<PRI>TIMESTAMP HOSTNAME TAG MESSAGE
Element Value
PRI Facility syslog (5) × 8 + severity: <43> for err
TIMESTAMP Local time of the Mediation Controller, in the form Oct 2 15:22:01: neither year nor time zone
HOSTNAME Host name of the Mediation Controller node that sends the message
TAG Cleanroom-<organization>
MESSAGE The text of the event, followed by its context fields

The message of a tenant event has the following shape, after the tag:

1
 <text> org:<organization>, user:<login>@<domain>, ip:<address>

The tag is followed by the message without any separator: the message starts with a space, so the tag stands alone.

A tenant event is sent twice

Each tenant event is written once under the tag Cleanroom-<organization>, and once more under the tag Cleanroom. The two lines carry the same message. Keep the one tagged Cleanroom-<organization>, which names the tenant.

Timestamp and tag length

The timestamp carries neither year nor time zone: declare the time zone of the Mediation Controller on the collector side, as given by the CyberElements Support. The tag is limited to 32 characters: beyond 22 characters, the name of the tenant is truncated in the tag, but remains complete in the org: field.

Language of the messages

The text of an event is composed at the time it is sent, in the language of the administration console of the tenant, French or English (French when nothing is set).

Neither the identifier of the event nor its kind of action is transmitted: a parser recognises an event by its text. This is why the tables of this section give each message in both languages. Fix the console language of the tenant before writing parsers, and write them for that language.

The text is the one displayed by the console, unchanged: it can contain HTML markup (<br/>) or entities (&nbsp; before a colon, in French).

Parsing the messages

The patterns below cover the context fields. Each one is given in two forms with the same named fields: a regular expression with named groups (PCRE syntax, accepted by most collectors), and a grok pattern for Logstash or an Elasticsearch ingest pipeline. The text of the event (text) is then compared to the tables of the tenant events.

Tenant events

Regular expression (PCRE, named groups)
1
^Cleanroom-(?<org_tag>\S+) (?<text>.*) org:(?<org>[^,]*), user:(?<user>.*)@(?<domain>[^,]*), ip:(?<ip>\S*)$
Grok pattern (Logstash, Elasticsearch ingest pipeline)
1
^Cleanroom-%{NOTSPACE:org_tag} %{GREEDYDATA:text} org:%{DATA:org}, user:%{GREEDYDATA:user}@%{DATA:domain}, ip:(?:%{NOTSPACE:ip})?$
  • The login can itself contain an @ (email address): the domain is what follows the last @.
  • A domain name can contain spaces (Corporate LDAP).
  • The address can be empty, for an event produced by the platform itself (scheduled task, automatic rotation).

Mapping to standard schemas

CyberElements SaaS does not emit Elastic Common Schema (ECS) or OCSF events: the mapping below is the one to apply in the parser to normalise its messages.

Element of the line ECS field OCSF attribute
Fixed value CyberElements observer.vendor metadata.product.vendor_name
Fixed value Bastion observer.product metadata.product.name
TIMESTAMP @timestamp time
HOSTNAME host.hostname device.hostname
Severity of PRI log.syslog.severity.code, log.level severity_id
Facility of PRI log.syslog.facility.code —
TAG log.syslog.appname metadata.log_name
Text of the event message message
org: (or end of the tag) organization.name actor.user.org.name
user: user.name actor.user.name
Domain after @ user.domain actor.user.domain
ip: source.ip src_endpoint.ip

For the OCSF Authentication (3002) and Account Change (3001) classes, the user concerned is carried by the user attribute, required by these classes: user.name, user.domain, user.org.name instead of actor.user.*.

The kind of the event is deduced from its text: the tables of the tenant events give the corresponding ECS (event.category, event.type, event.outcome) and OCSF (class) values, according to the kind of action that produces the message:

Kind of action ECS OCSF
Connection authentication / start / success Authentication (3002), activity Logon
Connection failure authentication / start / failure Authentication (3002), activity Logon, status Failure
Disconnection authentication / end / success Authentication (3002), activity Logoff
OTP enrolment iam / change Account Change (3001), activity MFA Factor Enable
OTP failure authentication / info / failure Authentication (3002), status Failure
Password iam / change Account Change (3001), activity Password Change
Resource launch session / start Base Event (0) — no OCSF class describes a privileged session launch
Session join session / start Base Event (0)
Forced session join session / start Base Event (0)
Help request session / info Base Event (0)
Invitation session / info Base Event (0)
Invitation withdrawal session / info Base Event (0)
Session pause session / info Base Event (0)
Session resume session / info Base Event (0)
Session termination session / end Base Event (0)
Closing session / end Base Event (0)
Access request iam / info User Access Management (3005)
Association iam / change User Access Management (3005), activity Assign Privileges
Dissociation iam / change User Access Management (3005), activity Revoke Privileges
Creation configuration / creation Entity Management (3004), activity Create
Modification configuration / change Entity Management (3004), activity Update
Deletion configuration / deletion Entity Management (3004), activity Delete
Application configuration / change Entity Management (3004), activity Update
Export configuration / access Entity Management (3004), activity Read
Notification email / info Email Activity (4009), activity Send
Email address retrieval failure email / info / failure Base Event (0)
Other configuration / info Base Event (0)

Example: connection to the administration console

An administrator connects to the administration console of the operations tenant, whose console is in English:

1
<43>Oct  2 15:22:01 mediation-controller Cleanroom-operations Connecting to the administration console org:operations, user:adm-console@local, ip:192.0.2.10
Value ECS field OCSF attribute
Oct 2 15:22:01 (local time of the Mediation Controller) @timestamp time (in milliseconds since the epoch)
mediation-controller host.hostname device.hostname
3 (err) log.syslog.severity.code severity_id, according to the conversion chosen in the parser
Cleanroom-operations log.syslog.appname metadata.log_name
CyberElements observer.vendor metadata.product.vendor_name
Bastion observer.product metadata.product.name
Connecting to the administration console message message
operations organization.name user.org.name
adm-console user.name user.name
local user.domain user.domain
192.0.2.10 source.ip src_endpoint.ip
authentication / start / success event.category / event.type / event.outcome —
1.3.0 — metadata.version
3002 (Authentication) / 3 (Identity & Access Management) — class_uid / category_uid
1 (Logon) / 300201 — activity_id / type_uid
1 (Success) — status_id