News for hackers. Stuff that matters.
Re:Malicious crossenv package on npm by pfooti on Tuesday August 01, 2017 @08:54PM (#14906949)
Why would the malicious user advertise the email associated with crossenv as [email protected] and not [email protected]? Attacker could control the latter and hand you an evil cert?
Re:Malicious crossenv package on npm by sbarre on Tuesday August 01, 2017 @09:48PM (#14907238)
One would think you would do more than send an email if you're trying to verify.

Websites, Twitter, Github, Keybase, etc..

It would be pretty hard for a bad actor to overtake the real author's entire Google-findable presence (assuming it's a reasonably popular package - why would you typosquat anything obscure).

If all you do is send an email, then you haven't really done "due diligence" in any acceptable form.

Re:Malicious crossenv package on npm by Ajedi32 on Wednesday August 02, 2017 @01:19AM (#14908124)
What if the attacker instead advertises `[email protected]`? How are you even supposed to know who wrote the legitimate version of the package in the first place? And if you _do_ know who wrote the package, you don't need a GPG key to verify that; just their NPM username or even the actual, real package name will do fine for preventing this specific attack.
Re:Malicious crossenv package on npm by am1988 on Thursday August 03, 2017 @03:35PM (#14923005)
Should I book a plane ticket to go verify 2 pieces of photo ID in person?

This idea that everyone will just verify with the author is insane.

Re:Malicious crossenv package on npm by megous on Wednesday August 02, 2017 @05:09AM (#14909052)
Presumably you inspect the thing you're including in your project first, if it seems trustworthy you mark whatever key you have as somewhat trustworthy. Then you inspect differences on version updates of your npm deps. If it still looks ok, you update your trust of the key.

It's the same way you gain trust in something in real life, by watching actual behavior of someone over time. It is just assisted by technology.

Then you can ignore the issue of email completely, because you're not basing your trust on authority of the author, but on his track record as determined by you.

I bet you'll not find many attackers who would maintain some hijacked package for a few months, before launching their attack. Original author would probably notice something fishy too, given enough time.