Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] Clarify x509 definition guidance for network events with only one cert (#1114) #1123

Merged
merged 1 commit into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ All notable changes to this project will be documented in this file based on the
* Provided better guidance for mapping network events. #969
* Added the field `.subdomain` under `client`, `destination`, `server`, `source`
and `url`, to match its presence at `dns.question.subdomain`. #981
* Clarified ambiguity in guidance on how to use x509 fields for connections with
only one certificate. #1114

### Tooling and Artifact Changes

Expand Down
13 changes: 7 additions & 6 deletions code/go/ecs/x509.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion docs/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6957,7 +6957,11 @@ example: `Critical`
[[ecs-x509]]
=== x509 Certificate Fields

This implements the common core fields for x509 certificates. This information is likely logged with TLS sessions, digital signatures found in executable binaries, S/MIME information in email bodies, or analysis of files on disk. When only a single certificate is logged in an event, it should be nested under `file`. When hashes of the DER-encoded certificate are available, the `hash` data set should be populated as well (e.g. `file.hash.sha256`). For events that contain certificate information for both sides of the connection, the x509 object could be nested under the respective side of the connection information (e.g. `tls.server.x509`).
This implements the common core fields for x509 certificates. This information is likely logged with TLS sessions, digital signatures found in executable binaries, S/MIME information in email bodies, or analysis of files on disk.

When the certificate relates to a file, use the fields at `file.x509`. When hashes of the DER-encoded certificate are available, the `hash` data set should be populated as well (e.g. `file.hash.sha256`).

Events that contain certificate information about network connections, should use the x509 fields under the relevant TLS fields: `tls.server.x509` and/or `tls.client.x509`.

[discrete]
==== x509 Certificate Field Details
Expand Down
17 changes: 10 additions & 7 deletions experimental/generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5884,15 +5884,18 @@
- name: x509
title: x509 Certificate
group: 2
description: This implements the common core fields for x509 certificates. This
description: 'This implements the common core fields for x509 certificates. This
information is likely logged with TLS sessions, digital signatures found in
executable binaries, S/MIME information in email bodies, or analysis of files
on disk. When only a single certificate is logged in an event, it should be
nested under `file`. When hashes of the DER-encoded certificate are available,
the `hash` data set should be populated as well (e.g. `file.hash.sha256`). For
events that contain certificate information for both sides of the connection,
the x509 object could be nested under the respective side of the connection
information (e.g. `tls.server.x509`).
on disk.

When the certificate relates to a file, use the fields at `file.x509`. When
hashes of the DER-encoded certificate are available, the `hash` data set should
be populated as well (e.g. `file.hash.sha256`).

Events that contain certificate information about network connections, should
use the x509 fields under the relevant TLS fields: `tls.server.x509` and/or
`tls.client.x509`.'
type: group
fields:
- name: alternative_names
Expand Down
16 changes: 9 additions & 7 deletions experimental/generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10357,14 +10357,16 @@ vulnerability:
title: Vulnerability
type: group
x509:
description: This implements the common core fields for x509 certificates. This
description: 'This implements the common core fields for x509 certificates. This
information is likely logged with TLS sessions, digital signatures found in executable
binaries, S/MIME information in email bodies, or analysis of files on disk. When
only a single certificate is logged in an event, it should be nested under `file`.
When hashes of the DER-encoded certificate are available, the `hash` data set
should be populated as well (e.g. `file.hash.sha256`). For events that contain
certificate information for both sides of the connection, the x509 object could
be nested under the respective side of the connection information (e.g. `tls.server.x509`).
binaries, S/MIME information in email bodies, or analysis of files on disk.

When the certificate relates to a file, use the fields at `file.x509`. When hashes
of the DER-encoded certificate are available, the `hash` data set should be populated
as well (e.g. `file.hash.sha256`).

Events that contain certificate information about network connections, should
use the x509 fields under the relevant TLS fields: `tls.server.x509` and/or `tls.client.x509`.'
fields:
x509.alternative_names:
dashed_name: x509-alternative-names
Expand Down
17 changes: 10 additions & 7 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5765,15 +5765,18 @@
- name: x509
title: x509 Certificate
group: 2
description: This implements the common core fields for x509 certificates. This
description: 'This implements the common core fields for x509 certificates. This
information is likely logged with TLS sessions, digital signatures found in
executable binaries, S/MIME information in email bodies, or analysis of files
on disk. When only a single certificate is logged in an event, it should be
nested under `file`. When hashes of the DER-encoded certificate are available,
the `hash` data set should be populated as well (e.g. `file.hash.sha256`). For
events that contain certificate information for both sides of the connection,
the x509 object could be nested under the respective side of the connection
information (e.g. `tls.server.x509`).
on disk.

When the certificate relates to a file, use the fields at `file.x509`. When
hashes of the DER-encoded certificate are available, the `hash` data set should
be populated as well (e.g. `file.hash.sha256`).

Events that contain certificate information about network connections, should
use the x509 fields under the relevant TLS fields: `tls.server.x509` and/or
`tls.client.x509`.'
type: group
fields:
- name: alternative_names
Expand Down
16 changes: 9 additions & 7 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10065,14 +10065,16 @@ vulnerability:
title: Vulnerability
type: group
x509:
description: This implements the common core fields for x509 certificates. This
description: 'This implements the common core fields for x509 certificates. This
information is likely logged with TLS sessions, digital signatures found in executable
binaries, S/MIME information in email bodies, or analysis of files on disk. When
only a single certificate is logged in an event, it should be nested under `file`.
When hashes of the DER-encoded certificate are available, the `hash` data set
should be populated as well (e.g. `file.hash.sha256`). For events that contain
certificate information for both sides of the connection, the x509 object could
be nested under the respective side of the connection information (e.g. `tls.server.x509`).
binaries, S/MIME information in email bodies, or analysis of files on disk.

When the certificate relates to a file, use the fields at `file.x509`. When hashes
of the DER-encoded certificate are available, the `hash` data set should be populated
as well (e.g. `file.hash.sha256`).

Events that contain certificate information about network connections, should
use the x509 fields under the relevant TLS fields: `tls.server.x509` and/or `tls.client.x509`.'
fields:
x509.alternative_names:
dashed_name: x509-alternative-names
Expand Down
10 changes: 6 additions & 4 deletions schemas/x509.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
description: >
This implements the common core fields for x509 certificates. This information is likely logged with TLS sessions,
digital signatures found in executable binaries, S/MIME information in email bodies, or analysis of files on disk.
When only a single certificate is logged in an event, it should be nested under `file`. When hashes of the DER-encoded
certificate are available, the `hash` data set should be populated as well (e.g. `file.hash.sha256`). For events that
contain certificate information for both sides of the connection, the x509 object could be nested under the respective
side of the connection information (e.g. `tls.server.x509`).

When the certificate relates to a file, use the fields at `file.x509`. When hashes of the DER-encoded
certificate are available, the `hash` data set should be populated as well (e.g. `file.hash.sha256`).

Events that contain certificate information about network connections, should use the x509 fields
under the relevant TLS fields: `tls.server.x509` and/or `tls.client.x509`.
type: group
reusable:
top_level: false
Expand Down