by weird-eye-issue · 1w ago · 0 comments
NPM isn't perfect but there's typically a substantial delay between the release of a malicious package and that code getting onto your production environment. Unless you're automatically updating every day, there's a good chance someone will discover the problem before it affects you. And you can always scan your upstream dependencies.
This doesn't work if you're using someone else's CDN. Any change to their content is distributed to all your users immediately.
Then you've done your job and move on. Just make sure that there's enough public record of your warning that - when the next cdn supply chain attack happens - you can say "I warned you about this and you decided not to take action".
No organization is perfect. I don't think this is something to quit over. Just make sure to CYA.
Life's too short to work for people who don't care about others.
Life’s too short to care about random strangers on the internet sometimes.
and things continue being insecure
A javascript file served from example-a.com should be able to run on example-b.org only if it has been signed with the same TLS key used for example-a.com .