3 ms·
Slightly off topic, but this could happen in any language, not just node. I saw Maven does not check pgp signatures. So, I just finished a Maven plugin that ve
by exabrial 8y ago
Slightly off topic, but this could happen in any language, not just node. I saw Maven does not check pgp signatures.
So, I just finished a Maven plugin that verifies each artifact in the build has been signed by a pinned pgp key. This would make it now difficult for an attacker to hijack another artifact's namespace.
https://exabrial.github.io/pgp-signature-check-plugin/ https://exabrial.github.io/pgp-signature-check-plugin/
I tried to make the code AS straightforward as possible, using dependency injection to make testing easy. My Hope Is you start using this in your open source projects and at your job
- danjoc 8y agoorg.simplify4u.plugins:pgpverify-maven-plugin works well for me. But here we are. There's multiple ways to verify package authenticity with maven. There isn't even signatures in NPM. NPM is belligerently against end user security. They won't even accept a pull request if you do the work for them. https://github.com/npm/npm/pull/4016 https://github.com/npm/npm/pull/4016
- exabrial 8y agoYep, I used that plugin. I made my file format compatible with his intentionally.
- _bxg1 8y agoUntil a couple years ago Maven didn't even use SSL... The Node ecosystem has its fair share of issues but I think it takes a disproportionate amount of flak. https://www.infoq.com/news/2014/08/Maven-SSL-Default https://www.infoq.com/news/2014/08/Maven-SSL-Default
- mirashii 8y agoIt isn't disproportionate given the yearly advances in understanding and awareness of security issues, or disproportionate given their size and the number of security issues that they have already experienced. Alternatively, we as a community can continue to call it a toy that nobody should trust or use for anything serious, and then the flak isn't disproportionate since you shouldn't have been using it for anything important anways, but you can't have it both ways.
- exabrial 8y agoOne further note... The version of Sonatype Nexus that Maven Central is running does not support signing with a subkey, and does not support ECDSA. Unfortunately, the software that needs to be fixed is proprietary. If someone has a contact at Sonatype, I'd love to talk to them about fixing this.
- mschuster91 8y agoThe source code is at https://github.com/sonatype/nexus-public https://github.com/sonatype/nexus-public. Not sure if Maven Central is running on the closed-source version, though. > If someone has a contact at Sonatype, I'd love to talk to them about fixing this. Contact them by email, they're quite responsive.
- exabrial 8y agoThanks. I checked the code out but it does looks like that part is not open source :( I'll email them
- curiousgal 8y agoI think it's worse here because every damn node project installs 100s if not 1000s of npm packages.
- vmchale 8y agoRight but node projects tend to use ten billion trivial packages to do anything whatsoever (no standard library!) so the problem does get exacerbated. Moreover, npm has been told multiple times how to avoid this and they did not care.