- Notifications
You must be signed in to change notification settings - Fork 508
[Cloud Security] Add host name to Wiz vulnerability data stream #10997
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
Conversation
| Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
| field: container.name | ||
| tag: set_continaer_name | ||
| copy_from: wiz.vulnerability.vulnerable_asset.name | ||
| if: ctx?.wiz.vulnerability?.vulnerable_asset?.type == 'CONTAINER_IMAGE' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect we need to use container.image.name as the vulnerability seems to be found in a container image.
| field: container.name | |
| tag: set_continaer_name | |
| copy_from: wiz.vulnerability.vulnerable_asset.name | |
| if: ctx?.wiz.vulnerability?.vulnerable_asset?.type == 'CONTAINER_IMAGE' | |
| field: container.image.name | |
| tag: set_continaer_name | |
| copy_from: wiz.vulnerability.vulnerable_asset.name | |
| if: ctx?.wiz.vulnerability?.vulnerable_asset?.type == 'CONTAINER_IMAGE' |
To be sure, do you have an example for a value coming from the integration @CohenIdo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run elastic-package build.
| value: 'Wiz' | ||
| - set: | ||
| field: container.image.name | ||
| tag: set_continaer_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| tag: set_continaer_name | |
| tag: set_container_name |
| Please rerun |
🚀 Benchmarks reportTo see the full report comment with |
| field: container.image.name | ||
| tag: set_continaer_name | ||
| copy_from: wiz.vulnerability.vulnerable_asset.name | ||
| if: ctx?.wiz.vulnerability?.vulnerable_asset?.type == 'CONTAINER_IMAGE' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if: ctx?.wiz.vulnerability?.vulnerable_asset?.type == 'CONTAINER_IMAGE' | |
| if: ctx.wiz.vulnerability?.vulnerable_asset?.type == 'CONTAINER_IMAGE' |
ctx is always non-null.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed that wiz is not guarded. It will likely never be null, but it should be guarded anyway.
| field: wiz.vulnerability.vulnerable_asset.name | ||
| target_field: host.name | ||
| tag: set_host_name_lowercase_if_vm | ||
| if: ctx?.wiz.vulnerability?.vulnerable_asset?.type == 'VIRTUAL_MACHINE' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if: ctx?.wiz.vulnerability?.vulnerable_asset?.type == 'VIRTUAL_MACHINE' | |
| if: ctx.wiz.vulnerability?.vulnerable_asset?.type == 'VIRTUAL_MACHINE' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Can be merged after @efd6 comments are addressed.
💚 Build Succeeded
History
|
|
| changes: | ||
| - description: Add host.name for the vulnerability data stream. | ||
| type: enhancement | ||
| link: https://github.com/elastic/integrations/pull/10936 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the wrong PR number.



solves:
Summary
Add
host.namefield for VM assets vulnerable assets andcontainer.namefield for "Containers" assets in Wiz vulnerability data stream using ingest pipeline.