composer/packagist has the exact same dependency security risks as node.js.
(Reposted)
Objectively, they all frustrate validation the same. When comparing with a SLSA3-compliant setup where every installed artifact has a signed checksum in a signed bundle from a signed resource on a signed repository, and the endpoint to this is readily available from something like authenticated SNMP into the single source of truth, they all tends to compare poorly.
The chart below completely ignores that Debs are consolidated into a single source of truth as well, and I feel violating SSoT should cost significantly because of dependency holes when artifact registry is incomplete, but SLSA doesn't care about that part.
Ecosystem / Format
Estimated SLSA Level
Update Reliability / Model
Trust Chain & Provenance Comments
(withheld)
3–4
Very high; repo-based, transactional updates
Strong: signed packages + signed repo metadata + central DB; distros enforce reproducible builds.
The problem isn't the package manager. Many small dependency packages multuply the attack surface of the "supply chain". (it isn't even a supply chain when a dude opensources his code as-is then a company decides to build their whole business on it)
Hot take. Node is cancer. It's the new PHP but worse because it's not just websites and the dev community is more toxic.
You say as if you can't make php shell scripts or GUI apps :)
Stop giving them ideas
Them already did.
PHP was only worse because of the syntax. The ecosystem around it with composer and other tools has always been superb.
composer/packagist has the exact same dependency security risks as node.js.
(Reposted)
Objectively, they all frustrate validation the same. When comparing with a SLSA3-compliant setup where every installed artifact has a signed checksum in a signed bundle from a signed resource on a signed repository, and the endpoint to this is readily available from something like authenticated SNMP into the single source of truth, they all tends to compare poorly.
The chart below completely ignores that Debs are consolidated into a single source of truth as well, and I feel violating SSoT should cost significantly because of dependency holes when artifact registry is incomplete, but SLSA doesn't care about that part.
I was saying that shit in 2015! Minus PHP, it has a soft spot in my heart ❤️.
Would be funnier without the LLM slop
Where's that slop image coming from? Did you seriously generate a slop image to add to this post?
"npm" is an abbreviation of the package vetting methodology.
No Process, Motherf***er
Do other packe manager prevent this?
The problem isn't the package manager. Many small dependency packages multuply the attack surface of the "supply chain". (it isn't even a supply chain when a dude opensources his code as-is then a company decides to build their whole business on it)
it has nothing to do with the package manager and everything with JS being a very widely used language mostly by rather inexperienced web devs.
I pulled in a webcomponent at work and got 300 plus deps. Fml.