|
|
|
|
|
by blueplanet
3736 days ago
|
|
> Without a web of trust (sigh), a PKI (ugh), or some other mechanism to tie identities to trust metrics, this is essentially a complicated, very expensive, and fragile version of the shasum check npm already has. The stance was without an agreed upon way of trusting public keys, you don't get any additional protection beyond shasum. Isn't that true? |
|
No, that is not true. It is demonstrably wrong and was demonstrated this week.
https://medium.freecodecamp.com/npm-package-hijacking-from-t...
shasums do nothing to stop package hijacking. An attacker can regenerate a shasum at will. A GPG signature cannot be forged and it will be very clear if a public key is changed.