[qualys_vmdr] Update the logic for populating the vulnerability.* fields#14791
[qualys_vmdr] Update the logic for populating the vulnerability.* fields#14791brijesh-elastic merged 4 commits intoelastic:mainfrom
Conversation
…bility.score.version, and vulnerability.severity fields
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
| // CVSS score between 9.0 and 10.0) | ||
| if (9.0 <= ctx.vulnerability.score.base) { | ||
| ctx.vulnerability.severity = "critical"; | ||
| ctx.vulnerability.severity = "Critical"; |
There was a problem hiding this comment.
@maxcold, I've changed the current vulnerability.severity enums to match with CVSS standard. I hope this doesn't break anything.
critical -> Critical
high -> High
medium -> Medium
low -> Low
none -> None
There was a problem hiding this comment.
@brijesh-elastic @kcreddy thanks for checking! The casing shouldn't break anything. We already have a divergent casing between integrations, what's important is that the values are these ones, we made our code as case insesitive as we could
🚀 Benchmarks reportTo see the full report comment with |
kcreddy
left a comment
There was a problem hiding this comment.
Could you add more details into commit message about the bug?
| - set: | ||
| field: vulnerability.score.base | ||
| tag: set_vulnerability_score_base_from_knowledge_base_cvss_base | ||
| copy_from: qualys_vmdr.asset_host_detection.knowledge_base.cvss.base | ||
| ignore_empty_value: true | ||
| if: ctx.vulnerability?.score?.base == null | ||
| - grok: | ||
| field: qualys_vmdr.asset_host_detection.knowledge_base.cvss.vector_string | ||
| tag: grok_to_extract_vulnerability_score_version | ||
| patterns: | ||
| - '^CVSS:%{DATA:vulnerability.score.version}/%{GREEDYDATA}$' | ||
| - '^%{GREEDYDATA}$' | ||
| ignore_missing: true | ||
| if: ctx.vulnerability?.score?.version == null |
kcreddy
left a comment
There was a problem hiding this comment.
LGTM, please merge after clarification is addressed #14791 (comment)
💚 Build Succeeded
History
|
|
|
Suggested edit for commit message: (reducing length of title, wrapping body at 72, and removing markdown syntax) |
|
Package qualys_vmdr - 6.8.1 containing this change is available at https://epr.elastic.co/package/qualys_vmdr/6.8.1/ |
|
Package cloud_security_posture - 3.0.1 containing this change is available at https://epr.elastic.co/package/cloud_security_posture/3.0.1/ |





Proposed commit message
Checklist
changelog.ymlfile.How to test this PR locally
Related issues
vulnerability.scorefields #14776