Coder Social home page Coder Social logo

Extend vulnerability matchers about grype HOT 2 OPEN

anchore avatar anchore commented on May 18, 2024
Extend vulnerability matchers

from grype.

Comments (2)

dandandy avatar dandandy commented on May 18, 2024

Hi, is this ticket ready to be worked on? If so, I'm interested in taking a look

from grype.

wagoodman avatar wagoodman commented on May 18, 2024

@dandandy there is work ready to be picked up, but not in grype quite yet.

Specifically, grype uses syft in order to discover packages... the work that needs to be done first is to add new catalogers to syft to to be able to discover packages from these new sources for pacman and pipenv. I've created a couple of new issues to encapsulate that work: anchore/syft#241 and anchore/syft#242 .

As for adding a new cataloger into syft, let's take pipenv as an example. Pipenv is a cataloger for "index" files which we actively look for when scanning directories and not images. To add a new index cataloger you'd need to:

  1. create a new parser function that can parse a pipfile.lock and return a set of packages (for an example, here is the parser function for requirements.txt files)
  2. wire up that parser to the existing index cataloger with the corresponding **/Pipfile.lock glob: https://github.com/anchore/syft/blob/main/syft/cataloger/python/index_cataloger.go#L12-L16
  3. add unit tests to cover the parser function

Happy to answer any questions on this work (reach out on those tickets or on the #toolbox-dev slack channel for more realtime conversation)!

from grype.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.