-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While working on the TCP inputs for beats I am able to extract information about the TLS envelope, this might be useful information for post-mortems or audit. Also, this was a feature requested on the beats input on the Logstash side. We are also extracting some information in [packetbeat](https://github.com/elastic/beats/blob/master/packetbeat/protos/tls/_meta/fields.yml) from the work of @adriansr. Concerning the TCP or the beats input, I think we can extract the following field and provide some useful information. - TLS version - Remote Certificates (mutual auth) - ServerName - Cipher used. Where OR should this information be in the ECS schema? Maybe we could add a `transport` top level key and have something like this. | Field | Description | Type | Example | |---|---|---|---| tls.version| string representation of the tls version| keyword| TLSv1.1 | tls.certificates| array of certificates used by the client.|text| raw certificate| tls.servername| server name requested by client|keyword| localhost[1] tls.ciphersuite| Name of the cipher used| keyword| ECDHE-ECDSA-AES-128-CBC-SHA [1]:https://en.wikipedia.org/wiki/Server_Name_Indication
- Loading branch information
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
- name: tls | ||
title: TLS | ||
group: 2 | ||
description: > | ||
The tls fields contain the TLS related data about a specific connection. | ||
footnote: > | ||
As an example in the case of Filebeat and the TCP input, the `version` field would be the | ||
version of the TLS protocol in use, the `certificates` would be the chain of certificates | ||
provided by the client and the `ciphersuite` is the encryption algorithm used for the | ||
communication. | ||
fields: | ||
- name: version | ||
type: keyword | ||
description: > | ||
TLS version. | ||
example: TLSv1.2 | ||
- name: certificates | ||
type: keyword | ||
description: > | ||
An array of certificates. | ||
ignore_above: -1 | ||
doc_values: false | ||
- name: servername | ||
type: keyword | ||
description: > | ||
Server name requested by the client. | ||
example: localhost | ||
- name: ciphersuite | ||
type: keyword | ||
description: > | ||
Name of the cipher used for the communication. | ||
example: ECDHE-ECDSA-AES-128-CBC-SHA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters