Skip to content

Commit 21984ab

Browse files
authored
Update ECS to 8.5.2 (#322)
1 parent 407e67b commit 21984ab

File tree

29 files changed

+608
-432
lines changed

29 files changed

+608
-432
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
22
# we are intentionally pinning the ECS version here, when ecs releases a new version
33
# we'll discuss whether we need to release a new package and bump the version here
4-
ECS_GIT_REF ?= v8.3.1
4+
ECS_GIT_REF ?= v8.5.2
55

66
# This variable specifies to location of the package-storage repo. It is used for automatically creating a PR
77
# to release a new endpoint package. This can be overridden with the location on your file system using the config.mk

package/endpoint/data_stream/alerts/fields/fields.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4226,9 +4226,7 @@
42264226
ignore_above: 1024
42274227
description: 'Use the `os.type` field to categorize the operating system into one of the broad commercial families.
42284228
4229-
One of these following values should be used (lowercase): linux, macos, unix, windows.
4230-
4231-
If the OS you''re dealing with is not in the list, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
4229+
If the OS you''re dealing with is not listed as an expected value, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
42324230
example: macos
42334231
default_field: false
42344232
- name: os.version
@@ -5480,11 +5478,12 @@
54805478
default_field: false
54815479
- name: env_vars
54825480
level: extended
5483-
type: object
5484-
description: 'Environment variables (`env_vars`) set at the time of the event. May be filtered to protect sensitive information.
5481+
type: keyword
5482+
ignore_above: 1024
5483+
description: 'Array of environment variable bindings. Captured from a snapshot of the environment at the time of execution.
54855484
5486-
The field should not contain nested objects. All values should use `keyword`.'
5487-
example: '{"USER": "elastic","LANG": "en_US.UTF-8","HOME": "/home/elastic"}'
5485+
May be filtered to protect sensitive information.'
5486+
example: '["PATH=/usr/local/bin:/usr/bin", "USER=ubuntu"]'
54885487
default_field: false
54895488
- name: executable
54905489
level: extended
@@ -8534,8 +8533,8 @@
85348533
level: extended
85358534
type: keyword
85368535
ignore_above: 1024
8537-
description: "Traffic Light Protocol sharing markings. Recommended values are:\n * WHITE\n * GREEN\n * AMBER\n * RED"
8538-
example: White
8536+
description: Traffic Light Protocol sharing markings.
8537+
example: WHITE
85398538
default_field: false
85408539
- name: enrichments.indicator.modified_at
85418540
level: extended
@@ -8631,7 +8630,7 @@
86318630
level: extended
86328631
type: keyword
86338632
ignore_above: 1024
8634-
description: "Type of indicator as represented by Cyber Observable in STIX 2.0. Recommended values:\n * autonomous-system\n * artifact\n * directory\n * domain-name\n * email-addr\n * file\n * ipv4-addr\n * ipv6-addr\n * mac-addr\n * mutex\n * port\n * process\n * software\n * url\n * user-account\n * windows-registry-key\n * x509-certificate"
8633+
description: Type of indicator as represented by Cyber Observable in STIX 2.0.
86358634
example: ipv4-addr
86368635
default_field: false
86378636
- name: enrichments.indicator.url.domain
@@ -8776,7 +8775,7 @@
87768775
level: extended
87778776
type: keyword
87788777
ignore_above: 1024
8779-
description: List of country (C) codes
8778+
description: List of country \(C) codes
87808779
example: US
87818780
default_field: false
87828781
- name: enrichments.indicator.x509.issuer.distinguished_name
@@ -8879,7 +8878,7 @@
88798878
level: extended
88808879
type: keyword
88818880
ignore_above: 1024
8882-
description: List of country (C) code
8881+
description: List of country \(C) code
88838882
example: US
88848883
default_field: false
88858884
- name: enrichments.indicator.x509.subject.distinguished_name
@@ -9012,7 +9011,7 @@
90129011
level: extended
90139012
type: keyword
90149013
ignore_above: 1024
9015-
description: "Identifies the vendor-neutral confidence rating using the None/Low/Medium/High scale defined in Appendix A of the STIX 2.1 framework. Vendor-specific confidence scales may be added as custom fields.\nExpected values are:\n * Not Specified\n * None\n * Low\n * Medium\n * High"
9014+
description: Identifies the vendor-neutral confidence rating using the None/Low/Medium/High scale defined in Appendix A of the STIX 2.1 framework. Vendor-specific confidence scales may be added as custom fields.
90169015
example: Medium
90179016
default_field: false
90189017
- name: indicator.description
@@ -9915,7 +9914,7 @@
99159914
level: extended
99169915
type: keyword
99179916
ignore_above: 1024
9918-
description: "Traffic Light Protocol sharing markings.\nRecommended values are:\n * WHITE\n * GREEN\n * AMBER\n * RED"
9917+
description: Traffic Light Protocol sharing markings.
99199918
example: WHITE
99209919
default_field: false
99219920
- name: indicator.modified_at
@@ -10012,7 +10011,7 @@
1001210011
level: extended
1001310012
type: keyword
1001410013
ignore_above: 1024
10015-
description: "Type of indicator as represented by Cyber Observable in STIX 2.0.\nRecommended values:\n * autonomous-system\n * artifact\n * directory\n * domain-name\n * email-addr\n * file\n * ipv4-addr\n * ipv6-addr\n * mac-addr\n * mutex\n * port\n * process\n * software\n * url\n * user-account\n * windows-registry-key\n * x509-certificate"
10014+
description: Type of indicator as represented by Cyber Observable in STIX 2.0.
1001610015
example: ipv4-addr
1001710016
default_field: false
1001810017
- name: indicator.url.domain
@@ -10157,7 +10156,7 @@
1015710156
level: extended
1015810157
type: keyword
1015910158
ignore_above: 1024
10160-
description: List of country (C) codes
10159+
description: List of country \(C) codes
1016110160
example: US
1016210161
default_field: false
1016310162
- name: indicator.x509.issuer.distinguished_name
@@ -10260,7 +10259,7 @@
1026010259
level: extended
1026110260
type: keyword
1026210261
ignore_above: 1024
10263-
description: List of country (C) code
10262+
description: List of country \(C) code
1026410263
example: US
1026510264
default_field: false
1026610265
- name: indicator.x509.subject.distinguished_name
@@ -10322,7 +10321,7 @@
1032210321
level: extended
1032310322
type: keyword
1032410323
ignore_above: 1024
10325-
description: "The platforms of the software used by this threat to conduct behavior commonly modeled using MITRE ATT&CK®.\nRecommended Values:\n * AWS\n * Azure\n * Azure AD\n * GCP\n * Linux\n * macOS\n * Network\n * Office 365\n * SaaS\n * Windows\n\nWhile not required, you can use a MITRE ATT&CK® software platforms."
10324+
description: "The platforms of the software used by this threat to conduct behavior commonly modeled using MITRE ATT&CK®.\nWhile not required, you can use MITRE ATT&CK® software platform values."
1032610325
example: '[ "Windows" ]'
1032710326
default_field: false
1032810327
- name: software.reference
@@ -10336,7 +10335,7 @@
1033610335
level: extended
1033710336
type: keyword
1033810337
ignore_above: 1024
10339-
description: "The type of software used by this threat to conduct behavior commonly modeled using MITRE ATT&CK®.\nRecommended values\n * Malware\n * Tool\n\n While not required, you can use a MITRE ATT&CK® software type."
10338+
description: "The type of software used by this threat to conduct behavior commonly modeled using MITRE ATT&CK®.\nWhile not required, you can use a MITRE ATT&CK® software type."
1034010339
example: Tool
1034110340
default_field: false
1034210341
- name: tactic.id

package/endpoint/data_stream/file/fields/fields.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -970,9 +970,7 @@
970970
ignore_above: 1024
971971
description: 'Use the `os.type` field to categorize the operating system into one of the broad commercial families.
972972
973-
One of these following values should be used (lowercase): linux, macos, unix, windows.
974-
975-
If the OS you''re dealing with is not in the list, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
973+
If the OS you''re dealing with is not listed as an expected value, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
976974
example: macos
977975
default_field: false
978976
- name: os.version

package/endpoint/data_stream/library/fields/fields.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,9 +963,7 @@
963963
ignore_above: 1024
964964
description: 'Use the `os.type` field to categorize the operating system into one of the broad commercial families.
965965
966-
One of these following values should be used (lowercase): linux, macos, unix, windows.
967-
968-
If the OS you''re dealing with is not in the list, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
966+
If the OS you''re dealing with is not listed as an expected value, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
969967
example: macos
970968
default_field: false
971969
- name: os.version

package/endpoint/data_stream/metadata/fields/fields.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,7 @@
451451
ignore_above: 1024
452452
description: 'Use the `os.type` field to categorize the operating system into one of the broad commercial families.
453453
454-
One of these following values should be used (lowercase): linux, macos, unix, windows.
455-
456-
If the OS you''re dealing with is not in the list, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
454+
If the OS you''re dealing with is not listed as an expected value, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
457455
example: macos
458456
default_field: false
459457
- name: os.version

package/endpoint/data_stream/metrics/fields/fields.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -977,9 +977,7 @@
977977
ignore_above: 1024
978978
description: 'Use the `os.type` field to categorize the operating system into one of the broad commercial families.
979979
980-
One of these following values should be used (lowercase): linux, macos, unix, windows.
981-
982-
If the OS you''re dealing with is not in the list, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
980+
If the OS you''re dealing with is not listed as an expected value, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
983981
example: macos
984982
default_field: false
985983
- name: os.version

package/endpoint/data_stream/network/fields/fields.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,9 +633,7 @@
633633
ignore_above: 1024
634634
description: 'Use the `os.type` field to categorize the operating system into one of the broad commercial families.
635635
636-
One of these following values should be used (lowercase): linux, macos, unix, windows.
637-
638-
If the OS you''re dealing with is not in the list, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
636+
If the OS you''re dealing with is not listed as an expected value, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
639637
example: macos
640638
default_field: false
641639
- name: os.version
@@ -751,7 +749,13 @@
751749
level: core
752750
type: keyword
753751
ignore_above: 1024
754-
description: "Direction of the network traffic.\nRecommended values are:\n * ingress\n * egress\n * inbound\n * outbound\n * internal\n * external\n * unknown\n\nWhen mapping events from a host-based monitoring context, populate this field from the host's point of view, using the values \"ingress\" or \"egress\".\nWhen mapping events from a network or perimeter-based monitoring context, populate this field from the point of view of the network perimeter, using the values \"inbound\", \"outbound\", \"internal\" or \"external\".\nNote that \"internal\" is not crossing perimeter boundaries, and is meant to describe communication between two hosts within the perimeter. Note also that \"external\" is meant to describe traffic between two hosts that are external to the perimeter. This could for example be useful for ISPs or VPN service providers."
752+
description: 'Direction of the network traffic.
753+
754+
When mapping events from a host-based monitoring context, populate this field from the host''s point of view, using the values "ingress" or "egress".
755+
756+
When mapping events from a network or perimeter-based monitoring context, populate this field from the point of view of the network perimeter, using the values "inbound", "outbound", "internal" or "external".
757+
758+
Note that "internal" is not crossing perimeter boundaries, and is meant to describe communication between two hosts within the perimeter. Note also that "external" is meant to describe traffic between two hosts that are external to the perimeter. This could for example be useful for ISPs or VPN service providers.'
755759
example: inbound
756760
- name: iana_number
757761
level: extended

package/endpoint/data_stream/policy/fields/fields.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,7 @@
760760
ignore_above: 1024
761761
description: 'Use the `os.type` field to categorize the operating system into one of the broad commercial families.
762762
763-
One of these following values should be used (lowercase): linux, macos, unix, windows.
764-
765-
If the OS you''re dealing with is not in the list, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
763+
If the OS you''re dealing with is not listed as an expected value, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
766764
example: macos
767765
default_field: false
768766
- name: os.version

package/endpoint/data_stream/process/fields/fields.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -596,9 +596,7 @@
596596
ignore_above: 1024
597597
description: 'Use the `os.type` field to categorize the operating system into one of the broad commercial families.
598598
599-
One of these following values should be used (lowercase): linux, macos, unix, windows.
600-
601-
If the OS you''re dealing with is not in the list, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
599+
If the OS you''re dealing with is not listed as an expected value, the field should not be populated. Please let us know by opening an issue with ECS, to propose its addition.'
602600
example: macos
603601
default_field: false
604602
- name: os.version
@@ -1414,11 +1412,12 @@
14141412
default_field: false
14151413
- name: env_vars
14161414
level: extended
1417-
type: object
1418-
description: 'Environment variables (`env_vars`) set at the time of the event. May be filtered to protect sensitive information.
1415+
type: keyword
1416+
ignore_above: 1024
1417+
description: 'Array of environment variable bindings. Captured from a snapshot of the environment at the time of execution.
14191418
1420-
The field should not contain nested objects. All values should use `keyword`.'
1421-
example: '{"USER": "elastic","LANG": "en_US.UTF-8","HOME": "/home/elastic"}'
1419+
May be filtered to protect sensitive information.'
1420+
example: '["PATH=/usr/local/bin:/usr/bin", "USER=ubuntu"]'
14221421
default_field: false
14231422
- name: executable
14241423
level: extended

package/endpoint/data_stream/process/sample_event.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@
159159
"total_bytes_captured": 10,
160160
"total_bytes_skipped": 0,
161161
"max_bytes_per_process_exceeded": false
162-
}
162+
},
163+
"env_vars": [
164+
"NICK=test",
165+
"OTHER=why"
166+
]
163167
},
164168
"message": "Endpoint process event",
165169
"@timestamp": "2022-04-04T18:53:08.6578986Z",

0 commit comments

Comments
 (0)