Skip to content
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
3 changes: 3 additions & 0 deletions packages/cloud_security_posture/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
link: https://github.com/elastic/integrations/pull/7379
- version: "1.5.0-preview31"
changes:
- description: Add vulnerability mappings
type: enhancement
link: https://github.com/elastic/integrations/pull/1176
- description: Ensure event.kind is correctly set for pipeline errors.
type: enhancement
link: https://github.com/elastic/integrations/pull/7048
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
---
description: Pipeline for cloudbeat vulnerabilities
processors:
- set:
field: ecs.version
value: '8.6.0'
- set:
field: ecs.version
value: "8.6.0"
- set:
field: cloud.service.name
value: "AWS EC2"
description: "Adding vulnerability type for cloudbeat version < 8.10"
if: ctx.cloud?.service?.name == null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💯

on_failure:
- set:
field: event.kind
value: pipeline_error
- append:
field: error.message
value: '{{{ _ingest.on_failure_message }}}'
value: "{{{ _ingest.on_failure_message }}}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- name: cloud

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

consider capitalization for custom fields to avoid future conflicts
see guideline suggestion: https://www.elastic.co/guide/en/ecs/current/ecs-custom-fields-in-ecs.html

type: group
fields:
- name: service.name
type: keyword
- name: machine.type
type: keyword
- name: machine.Authentication.key
type: keyword
- name: machine.Launch_time
type: keyword
- name: machine.Image
type: keyword
- name: Tags
type: keyword
- name: availability_zone
type: keyword

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we might want to have network and security here as well

- name: Security.security_groups
type: object
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
external: ecs
- name: cloud.account.name
external: ecs
- name: cloud.instance.name
external: ecs
- name: cloud.instance.id
external: ecs
- name: cloud.provider
external: ecs
- name: cloud.region
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- name: network
type: group
fields:
- name: Private_ip
type: keyword
- name: Public_ip
type: keyword
- name: Mac_addresses
type: keyword
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Deprecated replaced by cloud.instance fields
- name: resource
type: group
fields:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- name: vulnerability
type: group
fields:
# Deprecated replaced by category
- name: class
type: keyword
- name: package.version
Expand All @@ -9,7 +10,7 @@
type: keyword
- name: package.fixed_version
type: keyword
- name: title
- name: Title
type: keyword
- name: data_source.ID
type: keyword
Expand Down