Code Monkey home page Code Monkey logo

Comments (5)

azat avatar azat commented on June 2, 2024

Hi @diogoteles08

I see you point, but I don't want to maintain this deps manually.
How serious this flaw is in your opinion?

P.S. libevent uses more or less trusted plugins

from libevent.

diogoteles08 avatar diogoteles08 commented on June 2, 2024

Hi @azat!

First, answering your question:
According to Scorecard Documentation, Pinning your dependencies is a measure of Medium priority. Considering your specific case, I'd also say it'd fit as a flaw of medium risk, considering that you indeed have dangerous permissions with unpinned deps, but those deps are quite trustful (e.g. the ones from github itself).

Now complementing my answer:

I'm not sure I understood what you meant by "maintain the deps manually", but are you considering the help from the Dependency-Update-Tools? They would make sure to automatically create PRs updating your dependencies at the pace that conveys to your demands. I.e., we can configure it to create PRs only updating major versions, only minors, only security updates, etc.

That said, having a Dependency-Update-Tool is also a requirement from Scorecard, and one of High priority (mostly for making sure you'd have access to security updates as soon as they're released). So I'd suggest that you consider this, independently of your decision around hash-pinning the dependencies =).

Let me know your thoughts and I can act on a PR with whatever you decide.

from libevent.

azat avatar azat commented on June 2, 2024

I'm not sure I understood what you meant by "maintain the deps manually", but are you considering the help from the Dependency-Update-Tools? They would make sure to automatically create PRs updating your dependencies at the pace that conveys to your demands. I.e., we can configure it to create PRs only updating major versions, only minors, only security updates, etc.

To be honest, I don't see the difference in this case, from my point of view, it will improve the security only if someone will take a look at the plugins/changes before update, if some bot will do this, then it does not looks better then simply using official tags.

from libevent.

diogoteles08 avatar diogoteles08 commented on June 2, 2024

Hi @azat, That's a very valid concern and we have even created the issue ossf/scorecard#3549 to clarify this differences (we're still pending to update the issue with our conclusions).

The main advantage is that by hashpinning dependencies and using a Dependency-Update-Tools, your dependencies won't be updated right after the new version is released. So you have a larger time period to ensure any malicious releases are detected by the community before they're consumed by your project.

As an example, consider this attack on python ecosystem. In summary, the ctx python package was compromised and the project reference in pypi was replaced by a malicious version -- i.e., every project that installed this dependency without proper pinning had the malicious version installed. This ctx problem was detected by the community ~1 week after the attack.

Considering the example, if the dependency was pinned and a Dependency-Update-Tool was used, there would be considerabe changes that the problem would be detected before the new version was suggested to you and/or you merged the Dependabot PR. That's even clearer when you consider that Dependabot doesn't suggest updates to version that has a CVE registered, and you could also choose to update your versions only after some time the new version was released.

from libevent.

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.