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)
15 Comments
redsand@infosec.pub · 19 pts · 92d
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.
DmMacniel@feddit.org · 5 pts · 92d
You say as if you can't make php shell scripts or GUI apps :)
redsand@infosec.pub · 1 pts · 91d
Stop giving them ideas
DmMacniel@feddit.org · 0 pts · 91d
Them already did.
realitaetsverlust@piefed.zip · 5 pts · 92d
PHP was only worse because of the syntax. The ecosystem around it with composer and other tools has always been superb.
lurch@sh.itjust.works · 2 pts · 92d
composer/packagist has the exact same dependency security risks as node.js.
corsicanguppy@lemmy.ca · 2 pts · 91d
(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.
demizerone@lemmy.world · 4 pts · 91d
I was saying that shit in 2015! Minus PHP, it has a soft spot in my heart ❤️.
Duke_Nukem_1990@feddit.org · 18 pts · 92d
Would be funnier without the LLM slop
zeroConnection@programming.dev · 11 pts · 92d
Where's that slop image coming from? Did you seriously generate a slop image to add to this post?
mycodesucks@lemmy.world · 5 pts · 92d
"npm" is an abbreviation of the package vetting methodology.
No Process, Motherf***er
mogoh@lemmy.ml · 3 pts · 92d
Do other packe manager prevent this?
gandalf_der_12te@feddit.org · 4 pts · 91d
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.
kopasz7@sh.itjust.works · 4 pts · 92d
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)
demizerone@lemmy.world · 1 pts · 91d
I pulled in a webcomponent at work and got 300 plus deps. Fml.