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

Update security service integrations packages mappings #12624

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
01ba124
Add missing ECS mappings - box_events
mrodm Feb 4, 2025
001e81e
Add missing ECS mappings - claroty_ctd
mrodm Feb 4, 2025
a72f5b4
Avoid using dynamic templates for flattened objects - crowdstrike
mrodm Feb 4, 2025
69d5f8a
Add missing ECS mappings - mimecast
mrodm Feb 5, 2025
ee10501
Fix sublime_security.email_message.headers.hops.fields group mappings…
mrodm Feb 5, 2025
612ce1f
Update event-groups ingest pipeline - teleport
mrodm Feb 5, 2025
1420345
Add missing ECS field in latest_code_scanning transform - github
mrodm Feb 5, 2025
ef021f2
Update destination index transform - github
mrodm Feb 5, 2025
d048cc2
Add missing ECS mappings - ti_anomali
mrodm Feb 5, 2025
0abc3c4
Add mapping for threat.indicator.url.original in transform - ti_custom
mrodm Feb 5, 2025
0bcb54c
Add missing field mappings in transforms - tychon
mrodm Feb 5, 2025
f74e314
Add missing field mappings in transforms - wiz
mrodm Feb 5, 2025
698dbe9
Add changelog entries
mrodm Feb 5, 2025
1469158
Update logstash owner in manifest
mrodm Feb 5, 2025
a9736cc
Remove non-working definition (commented) - sublime_security
mrodm Feb 6, 2025
2415ff2
Test with elastic-package enabling mappings - PR 2381 5b3f7cdba24685a…
mrodm Feb 7, 2025
75c3cec
Revert "Update logstash owner in manifest"
mrodm Feb 7, 2025
8d215d5
Merge upstream/main into update_security-service-integrations_package…
mrodm Feb 10, 2025
4d513db
Merge upstream/main into update_security-service-integrations_package…
mrodm Feb 11, 2025
6325c32
Update changelog descriptions
mrodm Feb 12, 2025
ca89067
Remove blank lines
mrodm Feb 12, 2025
2b18411
add date processors
efd6 Feb 12, 2025
18bc8ed
Update tests box_events
mrodm Feb 12, 2025
58077e4
Regenerate test data for ti_anomali
mrodm Feb 12, 2025
879aa33
Remove commented field definition in sublime_security
mrodm Feb 12, 2025
849a22e
Update README - ti_anomali
mrodm Feb 12, 2025
e1ec321
Update transform settings github
mrodm Feb 12, 2025
ae20579
Update transform settings ti_custom
mrodm Feb 12, 2025
3fa66aa
Update transform settings wiz
mrodm Feb 12, 2025
d18eaba
Update transform settings tychon
mrodm Feb 12, 2025
67bd2ba
Merge upstream/main into update_security-service-integrations_package…
mrodm Feb 12, 2025
7c3e7ed
Merge upstream/main into update_security-service-integrations_package…
mrodm Feb 14, 2025
3ed832d
Update description for headers.hops.fields.position field
mrodm Feb 14, 2025
118d694
Merge upstream/main into update_security-service-integrations_package…
mrodm Feb 19, 2025
695555e
Revert changes in wiz - moved to #12841
mrodm Feb 19, 2025
c5f2640
Revert changes in tychon - moved to #12841
mrodm Feb 19, 2025
689eb49
Revert changes in ti_custom - moved to #12841
mrodm Feb 19, 2025
c96630c
Revert changes in github - moved to #12841
mrodm Feb 19, 2025
994e144
Update set of packages to test
mrodm Feb 19, 2025
a21024c
Teleport - Ensure system tests wait to be ingestd all test docs/logs
mrodm Feb 19, 2025
9283cd3
Remove changes from teleport - moved to #12851
mrodm Feb 20, 2025
66de372
Remove teleport from subset of packages to test
mrodm Feb 20, 2025
c481836
Revert changes to test validation based on mappings
mrodm Feb 20, 2025
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
5 changes: 5 additions & 0 deletions packages/box_events/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.11.1"
changes:
- description: Add missing ECS mappings.
type: bugfix
link: http://github.com/elastic/integrations/pull/12624
- version: "2.11.0"
changes:
- description: Add "preserve_original_event" tag to documents with `event.kind` set to "pipeline_error".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"number": 35908
},
"description": "BadMalware, MalwareBot4000, malware.exe Detected by Box Shield from IP 67.43.156.0. This is a really bad file see https://some.link/xyz",
"first_seen": "2022-10-19T11:37:05-08:10",
"first_seen": "2022-10-19T19:47:05.000Z",
"geo": {
"continent_name": "Asia",
"country_iso_code": "BT",
Expand All @@ -127,7 +127,7 @@
}
},
"ip": "67.43.156.0",
"last_seen": "2022-10-20T11:37:05-08:10",
"last_seen": "2022-10-20T19:47:05.000Z",
"provider": "Service name",
"reference": "https://some.link/xyz",
"type": "software"
Expand Down Expand Up @@ -241,8 +241,8 @@
"threat": {
"indicator": {
"description": "BadMalware, MalwareBot4000, malware.exe Detected by Box Shield from IP Unknown IP. This is a really bad file see https://some.link/xyz",
"first_seen": "2022-10-19T11:37:05-08:10",
"last_seen": "2022-10-20T11:37:05-08:10",
"first_seen": "2022-10-19T19:47:05.000Z",
"last_seen": "2022-10-20T19:47:05.000Z",
"provider": "Service name",
"reference": "https://some.link/xyz",
"type": "software"
Expand All @@ -257,4 +257,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,32 @@ processors:
}
ctx.threat.indicator.type = "software";
ctx.related.indicator_type.add(ctx.threat.indicator.type);
- date:
field: threat.indicator.first_seen
tag: date_threat_indicator_first_seen
target_field: threat.indicator.first_seen
formats:
- ISO8601
if: ctx.threat?.indicator?.first_seen != null && ctx.threat.indicator.first_seen != ''
on_failure:
- remove:
field: threat.indicator.first_seen
- append:
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'
- date:
field: threat.indicator.last_seen
tag: date_threat_indicator_last_seen
target_field: threat.indicator.last_seen
formats:
- ISO8601
if: ctx.threat?.indicator?.last_seen != null && ctx.threat.indicator.last_seen != ''
on_failure:
- remove:
field: threat.indicator.last_seen
- append:
field: error.message
value: 'Processor {{{_ingest.on_failure_processor_type}}} with tag {{{_ingest.on_failure_processor_tag}}} in pipeline {{{_ingest.on_failure_pipeline}}} failed with message: {{{_ingest.on_failure_message}}}'

# Remove or mark invalid IPs.
- foreach:
Expand Down
7 changes: 7 additions & 0 deletions packages/box_events/data_stream/events/fields/ecs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This definition could be removed once Kibana constraint is updated
# to 8.15.2 or higher. "ecs@mappings" component template would define
# the correct dynamic template for it.
- external: ecs
name: threat.enrichments.indicator.first_seen
- external: ecs
name: threat.enrichments.indicator.last_seen
34 changes: 18 additions & 16 deletions packages/box_events/data_stream/events/sample_event.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"@timestamp": "2019-12-08T08:00:00.000Z",
"agent": {
"ephemeral_id": "c9ccc0f9-8d0e-4bfa-b365-1fbb4bc530c6",
"id": "a4d1a8b2-b45c-4d97-a37a-bd371f13111b",
"name": "docker-fleet-agent",
"ephemeral_id": "026dd623-8d74-4379-a43f-13cb90ac51ba",
"id": "83c9c411-7b8e-4819-9156-80e202799644",
"name": "elastic-agent-17757",
"type": "filebeat",
"version": "8.8.1"
"version": "8.13.0"
},
"box": {
"additional_details": {
Expand Down Expand Up @@ -53,16 +53,16 @@
},
"data_stream": {
"dataset": "box_events.events",
"namespace": "ep",
"namespace": "76828",
"type": "logs"
},
"ecs": {
"version": "8.11.0"
},
"elastic_agent": {
"id": "a4d1a8b2-b45c-4d97-a37a-bd371f13111b",
"id": "83c9c411-7b8e-4819-9156-80e202799644",
"snapshot": false,
"version": "8.8.1"
"version": "8.13.0"
},
"event": {
"action": "SHIELD_ALERT",
Expand All @@ -71,10 +71,10 @@
"threat",
"file"
],
"created": "2023-09-21T01:54:30.945Z",
"created": "2025-02-12T10:21:05.215Z",
"dataset": "box_events.events",
"id": "97f1b31f-f143-4777-81f8-1b557b39ca33",
"ingested": "2023-09-21T01:54:31Z",
"ingested": "2025-02-12T10:21:08Z",
"kind": "alert",
"risk_score": 77,
"type": [
Expand All @@ -85,19 +85,21 @@
"host": {
"architecture": "x86_64",
"containerized": false,
"hostname": "docker-fleet-agent",
"id": "1de1e3b6561d4ccb9731539ce2f3baf3",
"hostname": "elastic-agent-17757",
"id": "8259e024976a406e8a54cdbffeb84fec",
"ip": [
"172.19.0.7"
"172.19.0.2",
"172.18.0.6"
],
"mac": [
"02-42-AC-13-00-07"
"02-42-AC-12-00-06",
"02-42-AC-13-00-02"
],
"name": "docker-fleet-agent",
"name": "elastic-agent-17757",
"os": {
"codename": "focal",
"family": "debian",
"kernel": "5.10.104-linuxkit",
"kernel": "6.8.0-52-generic",
"name": "Ubuntu",
"platform": "ubuntu",
"type": "linux",
Expand Down Expand Up @@ -186,4 +188,4 @@
"name": "Some user"
}
}
}
}
2 changes: 2 additions & 0 deletions packages/box_events/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,6 @@ Preserves a raw copy of the original event, added to the field `event.original`.
| related.description | Array of `description` derived from `threat[.enrichments].indicator.description` | keyword |
| related.indicator_type | Array of `indicator_type` derived from `threat[.enrichments].indicator.type` | keyword |
| related.location | Array of `location` derived from `related.ip` | geo_point |
| threat.enrichments.indicator.first_seen | The date and time when intelligence source first reported sighting this indicator. | date |
| threat.enrichments.indicator.last_seen | The date and time when intelligence source last reported sighting this indicator. | date |

2 changes: 1 addition & 1 deletion packages/box_events/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: "3.0.3"
name: box_events
title: Box Events
version: "2.11.0"
version: "2.11.1"
description: "Collect logs from Box with Elastic Agent"
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/claroty_ctd/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.4.3"
changes:
- description: Add missing ECS mappings.
type: bugfix
link: http://github.com/elastic/integrations/pull/12624
- version: "0.4.2"
changes:
- description: Updated SSL description in package manifest.yml to be uniform and to include links to documentation.
Expand Down
6 changes: 6 additions & 0 deletions packages/claroty_ctd/data_stream/event/fields/ecs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This definition could be removed once Kibana constraint is updated
# to 8.15.2 or higher. "ecs@mappings" component template would define
# the correct dynamic template for it.
- external: ecs
name: threat.indicator.modified_at

1 change: 1 addition & 0 deletions packages/claroty_ctd/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ An example event for `event` looks as following:
| log.offset | Log offset. | long |
| log.source.address | Source address from which the log event read/sent. | keyword |
| tags | User defined tags. | keyword |
| threat.indicator.modified_at | The date and time when intelligence source last modified information for this indicator. | date |


### Assets
Expand Down
2 changes: 1 addition & 1 deletion packages/claroty_ctd/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.1.4
name: claroty_ctd
title: Claroty CTD
version: 0.4.2
version: 0.4.3
description: Collect logs from Claroty CTD using Elastic Agent.
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/crowdstrike/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.51.2"
changes:
- description: Avoid using dynamic template for flattened fields.
type: bugfix
link: http://github.com/elastic/integrations/pull/12624
- version: "1.51.1"
changes:
- description: Updated SSL description in package manifest.yml to be uniform and to include links to documentation.
Expand Down
2 changes: 1 addition & 1 deletion packages/crowdstrike/data_stream/fdr/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
type: long
- name: AsepWrittenCount
type: long
- name: assessments.*
- name: assessments
type: flattened
- name: AssociatedFile
type: keyword
Expand Down
2 changes: 1 addition & 1 deletion packages/crowdstrike/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ and/or `session_token`.
| crowdstrike.__mv_aip | | keyword |
| crowdstrike.__mv_discoverer_aid | | keyword |
| crowdstrike.aipCount | | integer |
| crowdstrike.assessments.\* | | flattened |
| crowdstrike.assessments | | flattened |
| crowdstrike.cid | | keyword |
| crowdstrike.discovererCount | | integer |
| crowdstrike.discoverer_aid | | keyword |
Expand Down
2 changes: 1 addition & 1 deletion packages/crowdstrike/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: crowdstrike
title: CrowdStrike
version: "1.51.1"
version: "1.51.2"
description: Collect logs from Crowdstrike with Elastic Agent.
type: integration
format_version: "3.0.3"
Expand Down
5 changes: 5 additions & 0 deletions packages/mimecast/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "2.5.2"
changes:
- description: Add missing ECS field mappings.
type: bugfix
link: http://github.com/elastic/integrations/pull/12624
- version: "2.5.1"
changes:
- description: Prevent pageToken from incorrectly reappearing in interval requests.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This definition could be removed once Kibana constraint is updated
# to 8.15.2 or higher. "ecs@mappings" component template would define
# the correct dynamic template for it.
- external: ecs
name: threat.indicator.modified_at
- external: ecs
name: threat.indicator.first_seen
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This definition could be removed once Kibana constraint is updated
# to 8.15.2 or higher. "ecs@mappings" component template would define
# the correct dynamic template for it.
- external: ecs
name: threat.indicator.modified_at
- external: ecs
name: threat.indicator.first_seen
Comment on lines +4 to +7
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two fields are mapped as keywords but they should date.

[0] field "threat.indicator.first_seen" is undefined: actual mapping type (keyword) does not match with ECS definition type: date
[1] field "threat.indicator.modified_at" is undefined: actual mapping type (keyword) does not match with ECS definition type: date

Using external ecs definition to update their mappings.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fields are safe; obtained from date processor.

4 changes: 4 additions & 0 deletions packages/mimecast/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,8 @@ An example event for `threat_intel_malware_customer` looks as following:
| mimecast.type | The indicator type, can for example be "domain, email, FileHash-SHA256". | keyword |
| mimecast.valid_from | The valid from date. | date |
| mimecast.value | The value of the indicator. | keyword |
| threat.indicator.first_seen | The date and time when intelligence source first reported sighting this indicator. | date |
| threat.indicator.modified_at | The date and time when intelligence source last modified information for this indicator. | date |


### Threat Intel Feed Malware: Grid
Expand Down Expand Up @@ -1134,6 +1136,8 @@ An example event for `threat_intel_malware_grid` looks as following:
| mimecast.type | The indicator type, can for example be "domain, email, FileHash-SHA256". | keyword |
| mimecast.valid_from | The valid from date. | date |
| mimecast.value | The value of the indicator. | keyword |
| threat.indicator.first_seen | The date and time when intelligence source first reported sighting this indicator. | date |
| threat.indicator.modified_at | The date and time when intelligence source last modified information for this indicator. | date |


### TTP Attachment Logs
Expand Down
2 changes: 1 addition & 1 deletion packages/mimecast/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: "3.0.2"
name: mimecast
title: "Mimecast"
version: "2.5.1"
version: "2.5.2"
description: Collect logs from Mimecast with Elastic Agent.
type: integration
categories: ["security", "email_security"]
Expand Down
5 changes: 5 additions & 0 deletions packages/sublime_security/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.5.2"
changes:
- description: Fix `sublime_security.email_message.headers.hops.fields` group mappings.
type: bugfix
link: http://github.com/elastic/integrations/pull/12624
- version: "1.5.1"
changes:
- description: Updated SSL description in package manifest.yml to be uniform and to include links to documentation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,14 @@
type: keyword
description: The type of authentication result, derived from the field name.
- name: fields
type: object
object_type: keyword
type: group
fields:
- name: "*"
type: object
object_type: keyword
- name: position
description: This field's position along the entire list of header fields.
type: long
- name: index
type: long
description: Index indicates the order in which a hop occurred from sender to recipient.
Expand Down
3 changes: 2 additions & 1 deletion packages/sublime_security/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,8 @@ An example event for `email_message` looks as following:
| sublime_security.email_message.headers.hops.authentication_results.spf_details.server.valid | Whether the domain is valid. | boolean |
| sublime_security.email_message.headers.hops.authentication_results.spf_details.verdict | Verdict of the SPF. | keyword |
| sublime_security.email_message.headers.hops.authentication_results.type | The type of authentication result, derived from the field name. | keyword |
| sublime_security.email_message.headers.hops.fields | | object |
| sublime_security.email_message.headers.hops.fields.\* | | object |
| sublime_security.email_message.headers.hops.fields.position | This field's position along the entire list of header fields. | long |
| sublime_security.email_message.headers.hops.index | Index indicates the order in which a hop occurred from sender to recipient. | long |
| sublime_security.email_message.headers.hops.received.additional.raw | The raw string for remaining additional clauses, such as transport information. | keyword |
| sublime_security.email_message.headers.hops.received.id.raw | The raw string of 'id' section. | keyword |
Expand Down
2 changes: 1 addition & 1 deletion packages/sublime_security/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 3.2.1
name: sublime_security
title: Sublime Security
version: 1.5.1
version: 1.5.2
description: Collect logs from Sublime Security with Elastic Agent.
type: integration
categories:
Expand Down
5 changes: 5 additions & 0 deletions packages/ti_anomali/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.25.2"
changes:
- description: Add missing ECS field in intelligence datastream.
type: bugfix
link: http://github.com/elastic/integrations/pull/12624
- version: "1.25.1"
changes:
- description: Updated SSL description to be uniform and to include links to documentation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"expected": [
{
"@timestamp": "2024-10-04T06:39:20.460979459Z",
"@timestamp": "2025-02-12T10:24:06.784043054Z",
"anomali": {
"threatstream": {
"can_add_public_tags": true,
"confidence": 60,
"deletion_scheduled_at": "2024-12-28T06:39:20.460979459Z",
"deletion_scheduled_at": "2025-05-08T10:24:06.784043054Z",
"expiration_ts": "9999-12-31T00:00:00.000Z",
"feed_id": 0,
"id": "232020126",
Expand Down Expand Up @@ -58,4 +58,4 @@
}
}
]
}
}
Loading