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

GSoC 2021 idea: Building checkers/mappings for known package lists #1018

Closed
terriko opened this issue Jan 4, 2021 · 3 comments
Closed

GSoC 2021 idea: Building checkers/mappings for known package lists #1018

terriko opened this issue Jan 4, 2021 · 3 comments
Labels
gsoc Tasks related to our participation in Google Summer of Code
Milestone

Comments

@terriko
Copy link
Contributor

terriko commented Jan 4, 2021

Binary scanning is slow, and sometimes people have existing package lists they'd like to use. We accept a list of vendor/package pairs for scanning, but those don't always map to the list people are getting out of say, requirements.txt for python or dpkg for ubuntu or dnf for fedora.

Mappings by themselves aren't a GSoC project, because Google asserts that you have to write code to qualify, so we have to be really careful to make sure that a student proposing for this project has enough actual code planned in their proposal to qualify under google's rules, so here's some possible options that might make a viable GSoC project out of the idea.

  1. Build a mapping database for the top 50 packages on pyPI and a parser that reads requirements.txt and uses the mappings to warn you if any of those have CVEs against them (and warns the user if a package doesn't have a mapping and prompts them to maybe provide it)
  2. Do the same only with the core packages of a linux distro (e.g. ubuntu, fedora, centos) and whatever it uses as output for package/version listing.
  3. Once you've got some core lists from pypi or distros, attempt to make binary scanning signatures for as many of those at the same time so that we can be sure that you're writing enough code to qualify for GSoC.
  4. Build a tool that helps prompt users with potential vendor-package pairs if the package isn't found in the mapping.

Edit to add:

  1. Find a way to programatically find out what CVE fixes have been backported so that these can be reported as such in CVE-bin-tool's output.
@terriko terriko added the gsoc Tasks related to our participation in Google Summer of Code label Jan 4, 2021
@terriko
Copy link
Contributor Author

terriko commented Jan 4, 2021

Pinging @PrajwalM2212 -- This has some elements of stuff we discussed last year, and it might be a good base for a proposal this year if you're interested. We really have to focus on the code aspect (and not the mapping aspect) to make this work for GSoC.

@PrajwalM2212
Copy link
Contributor

This look great ! I will look into it.

@terriko
Copy link
Contributor Author

terriko commented Aug 18, 2021

Finished as part of GSoC 2021

@terriko terriko closed this as completed Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gsoc Tasks related to our participation in Google Summer of Code
Projects
None yet
Development

No branches or pull requests

2 participants