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

Replace titles and descriptions with vuln-list advisories #456

Merged
merged 1 commit into from
Jul 2, 2021

Conversation

simar7
Copy link
Contributor

@simar7 simar7 commented Aug 25, 2020

Since OSVDB is no longer maintained we would like to use
advisory information from an alternative source. RedHat provides
titles and descriptions for NVD CVEs as part of their feed.

vuln-list maintains the data from RedHat and other sources.
https://github.com/aquasecurity/vuln-list it is used by Trivy.

This commit replaces the titles and descriptions from the ones
that are maintained by vuln-list.

Signed-off-by: Simarpreet Singh simar@linux.com

@simar7 simar7 force-pushed the update-all-osvdb-cves branch 2 times, most recently from 01ef4c9 to a6baed0 Compare August 26, 2020 02:03
@reedloden
Copy link
Member

Seems like your YML parser has broken a lot of the things (note the failing tests). Can you please modify your script to maintain the prevailing style? Alternatively, if you share your script, I am happy to take a look.

Copy link
Member

@reedloden reedloden left a comment

Choose a reason for hiding this comment

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

See comment in issue.

@simar7 simar7 force-pushed the update-all-osvdb-cves branch 2 times, most recently from 9dcd32d to 050b463 Compare September 3, 2020 04:37
@simar7 simar7 requested a review from reedloden September 3, 2020 04:38
@simar7
Copy link
Contributor Author

simar7 commented Sep 3, 2020

Seems like your YML parser has broken a lot of the things (note the failing tests). Can you please modify your script to maintain the prevailing style? Alternatively, if you share your script, I am happy to take a look.

Thanks for the feedback. Sorry for the late response, I was on vacation. I've addressed the failures.

@simar7
Copy link
Contributor Author

simar7 commented Sep 10, 2020

hi @reedloden – friendly ping :)

@knqyf263
Copy link

Hi @reedloden, which library do you use to generate these YAML advisories? I found the yaml library in GHSA sync, but I didn't find the library for other advisories.

I think @simar7 used the official yaml module, but it looks like there are some differences such as patched_versions and affected_versions.
https://ruby-doc.org/stdlib-2.5.1/libdoc/yaml/rdoc/YAML.html

It is fine if you don't care about it since they are just ordering, an empty line, and etc. It doesn't change the data itself, but format.

@reedloden
Copy link
Member

Sorry for the long delay, @simar7.

The major issue is that I don't agree with the YAML changes in the current version, so that's why this hasn't been merged. We have a consistent format across all our files, and I don't see any reason why it should be made more complex. The YAML parser being used writes out YAML that is far more machine-parsable than human-readable. The latter is quite important for us, so I'd like to keep it.

Can you post the script you use? I'll see if I can just fix it to help move this along.

@simar7
Copy link
Contributor Author

simar7 commented Nov 13, 2020

Sorry for the long delay, @simar7.

The major issue is that I don't agree with the YAML changes in the current version, so that's why this hasn't been merged. We have a consistent format across all our files, and I don't see any reason why it should be made more complex. The YAML parser being used writes out YAML that is far more machine-parsable than human-readable. The latter is quite important for us, so I'd like to keep it.

Can you post the script you use? I'll see if I can just fix it to help move this along.

Here's the script https://gist.github.com/simar7/99618d93fdc1fe0361a40392bceebfb7 - it fetches the info from vuln-list project which you'll need to clone locally and point the rhRoot variable to before running it. You can place this script within this repository to run it. You can get vuln-list project from here https://github.com/aquasecurity/vuln-list.

IMO after the initial review I fixed the YAML output to be as close as it is to the original. In fact I don't see any changes except ordering of a few items and some empty lines. But maybe I have missed something obvious.

@reedloden
Copy link
Member

IMO after the initial review I fixed the YAML output to be as close as it is to the original. In fact I don't see any changes except ordering of a few items and some empty lines. But maybe I have missed something obvious.

Is it possible you didn't push that new update up to your branch? The version I currently see in this PR removes the --- at the top of all the files, as well as adds unnecessary quotes and collapses multi-line things into a single-line. Makes it pretty unreadable currently.

@simar7
Copy link
Contributor Author

simar7 commented Feb 22, 2021

IMO after the initial review I fixed the YAML output to be as close as it is to the original. In fact I don't see any changes except ordering of a few items and some empty lines. But maybe I have missed something obvious.

Is it possible you didn't push that new update up to your branch? The version I currently see in this PR removes the --- at the top of all the files, as well as adds unnecessary quotes and collapses multi-line things into a single-line. Makes it pretty unreadable currently.

I have pushed up all the changes I had. Unfortunately I don't have cycles at the moment to work on this but happy to let someone else to continue from what I have here.

Since OSVDB is no longer maintained we would like to use
advisory information from an alternative source. RedHat provides
titles and descriptions for NVD CVEs as part of their feed.

vuln-list maintains the data from RedHat and other sources.
https://github.com/aquasecurity/vuln-list it is used by Trivy.

This commit replaces the titles and descriptions from the ones
that are maintained by vuln-list.
@reedloden reedloden force-pushed the update-all-osvdb-cves branch from 050b463 to 4f5e21e Compare July 2, 2021 08:25
Copy link
Member

@reedloden reedloden left a comment

Choose a reason for hiding this comment

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

Thanks for all the work on this. I finally had time to use your script and clean things up. I rebased and pushed to your original branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants