- Notifications
You must be signed in to change notification settings - Fork 511
qualys_vmdr: Add "show_igs" and fingerprint processor UI options #12428
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) |
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.
produced by elastic-package
🚀 Benchmarks reportTo see the full report comment with |
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.
| description: By default, Qualys API only includes detection records with `Confirmed` and `Potential` vulnerabilities. When this option is enabled, the Qualys API also sends detections of type `Info` along with `Confirmed` and `Potential` vulnerabilities. | |
| description: By default, Qualys API only includes detection records with `Confirmed` and `Potential` vulnerabilities. When this option is enabled, the Qualys API sends detections of type `Info` in addition to `Confirmed` and `Potential` vulnerabilities. |
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.
Updated as suggested in 1f0ea18
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.
Deduplication paired with full syncs each period could make it more difficult to validate all assets and vulnerabilities were collected. Currently the validation process involves reviewing data written during the last sync window. If deduplication is implemented then you need to consider all data in the current backing index to account for vulnerabilities that were indexed during an earlier sync.
Users need to know that deduplication is enabled because it impacts how you should query the data for certain uses. My recommendation is to make deduplication an opt-in feature with an explanation of how it impacts ingestion. Specifically, each sync interval will ingest all detected vulnerabilities. However, if deduplication is enabled, any existing vulnerabilities in the current backing index will not be duplicated. The presence of a vulnerability in the backing index is determined by computing a checksum of the event contents and checking if that checksum already exists in Elasticsearch.
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.
That makes sense.
I added UI option to select Enable Data Deduplication (default: false) in 1f0ea18
Described the option in manifest.yml as suggested. Updated PR description.
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.
Why make this into a string rather than retain the boolean type?
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.
Not intentional. Updated in 6c46311
💚 Build Succeeded
History
cc @kcreddy |
|
| Package qualys_vmdr - 5.9.0 containing this change is available at https://epr.elastic.co/package/qualys_vmdr/5.9.0/ |
…stic#12428) Add show_igs API parameter as a UI option. Also optionally add fingerprint processor. By default, Qualys API only includes detection records with `Confirmed` and `Potential` vulnerabilities. With show_igs option users can enable Qualys API to fetch detections of type `Info` as well. Optionally adding fingerprint processor on event.original field so that any existing vulnerabilities in the current backing index will not be duplicated. I prefixed the document _id value with the timestamp based on recommendations from the "Efficient Duplicate Prevention for Event-Based Data in Elasticsearch" blog post. References - https://qualysguard.qg2.apps.qualys.com/qwebhelp/fo_portal/api_doc/assets/index.htm#t=host_lists%2Fhost_detection.htm - https://www.elastic.co/blog/efficient-duplicate-prevention-for-event-based-data-in-elasticsearch.
…stic#12428) Add show_igs API parameter as a UI option. Also optionally add fingerprint processor. By default, Qualys API only includes detection records with `Confirmed` and `Potential` vulnerabilities. With show_igs option users can enable Qualys API to fetch detections of type `Info` as well. Optionally adding fingerprint processor on event.original field so that any existing vulnerabilities in the current backing index will not be duplicated. I prefixed the document _id value with the timestamp based on recommendations from the "Efficient Duplicate Prevention for Event-Based Data in Elasticsearch" blog post. References - https://qualysguard.qg2.apps.qualys.com/qwebhelp/fo_portal/api_doc/assets/index.htm#t=host_lists%2Fhost_detection.htm - https://www.elastic.co/blog/efficient-duplicate-prevention-for-event-based-data-in-elasticsearch.





Proposed commit message
Checklist
changelog.ymlfile.How to test this PR locally
Updated system tests with
show_igs=1should run successfully.Run:
cd packages/qualys_vmdr && elastic-package stack down && elastic-package build && elastic-package stack up --version=8.13.0 -d -v && eval "$(elastic-package stack shellinit)" && elastic-package test system --generate -v --data-streams=asset_host_detectionReturns:
Check tracer logs:
a. Don't select
Enable Information Gathered DetectionsUI option.Inside tracer logs, the request has:
b. Select
Enable Information Gathered DetectionsUI option.Inside tracer logs, the request has:
Screenshots