by sanbor · 8y ago · 0 comments
Microsoft was part of the PRISM program. If Microsoft shares SSL certs with NSA they could do MITM attacks. What if in some very specific cases you download dependencies from GitHub and they give you a different version with malicious code?
It's the NSA. They could be smart enough to only deploy those attacks on production servers were nobody is going to manually review npm packages.
If only we lived in a world where this was practical.
I don't think it's unreasonable to be concerned about privacy this way, or to take issue with the possibility that this acquisition could make it easier for one to be spied on or surveilled. However, we should also cautious that our tin foil hats do not grow too heavy.
True, but I suppose it matters how easy/difficult it is for them to do that.
Maybe in theory it is safe, but implementations are often not safe.
An oversimplified way to see this is that your software runs on an OS which runs on a processor.
Your processor is backdoored (Intel ME and equivalent), your OS is backdoored, the entropy for your crypto is backdoored (Intel RDRAND instruction), your crypto algorithm implementation is backdoored.
So there are infinite resources for them to hack you at any moment for any reason. You have already gave them the keys to everything.
2048 bit TLS encryption? You mean 2048 bit RSA encryption? Also what source do you have that says the NSA can not crack a 2048 bit RSA key? Last I checked that info was non public and there is no definitive, credible source saying whether they can or can not crack 2048 RSA keys.
I understand that people don't trust the NSA/US government. And they shouldn't: the US government will always put its interests above yours and mine, and above those of allied countries.
At the same time, this stuff is bordering on parody. Very few of us (maybe none of us) need to worry about "the NSA MITM-ing our NPM packages". If you're that paranoid then you shouldn't be using github, NPM, or non-local dependencies. And of course you should be reviewing everything manually.
Maybe we can start signing our commits to increase security giving the potential threat. The same way that after the Snowden revelations we started using more and more HTTPS.
We can also think of better ways of sharing/releasing open source code. Debian has a pretty neat system with keys so it's pretty safe to install software from their repos [1]. Maybe there is a better system to be develop than just grabbing whatever from GitHub[2] and running it in your machine.
[1] https://en.wikipedia.org/wiki/Debian#Development_procedures
[2] https://github.com/mklement0/n-install/blob/master/bin/n-ins...
That so many people aren't thinking about security at all is a sad comment on the state of software engineering. But perhaps inevitable, given our cultural history of favoring freedom over security.
I really don't like this line of thinking. It's the same one used by news organizations to plump up their stories, or by politicians to make an improbable threat seem more real. In both of those cases, I think the long-term effect is to cause the public to think that very rare events are a lot more common. The result is not a culture of wariness but a culture of fear.
I'd much rather people present "worst-case potential threats" instead as "likely potential threats."
[1] https://github.com/rails/rails/issues/5228
[2] https://github.com/rails/rails/commit/b83965785db1eec019edf1...
[3] https://arstechnica.com/information-technology/2012/03/hacke...
Let's talk about risks and goals. The language of opportunities.
An approach of `curl | bash` takes a needless amount of risk to accomplish its goals. It can do far too many things, of which it actually needs to do a small subset. It offers a lot of opportunity for bad things to happen to seize the opportunity for the things we want. Maybe there are ways to do the same things, to get the same ends, without taking on so much risk.
How do you feel about this subject?
Maybe it's time we build our core infrastructure on something else than companies that act irrationally when threatened to be sued ?
Look, I hated Microsoft in the '90s and '00s. I was there. I grew up in a world where IBM dominated the market though. They've both changed. The market has changed and both of these companies had to deal with that.
The reality is that nowadays people pay with their privacy instead of with currency for a product; they are the product. Does it matter much who owns the product (independent US company, big player like Amazon, Microsoft, Facebook, Amazon, or Apple?)
In regards to MITM, that can happen regardless of who maintains the repositories. If an NSL is issued, compliance is mandatory. A gag order is included. AFAIK there are no large organizations that would fall on that sword.
It is on the individual organizations that utilize public resources to do proper certificate and checksum validation, along with code diff reviews to reduce the risk of tainted packages.
There is zero reason to believe they do.
The NSA forges Microsoft's SSL keys, they do not need to ask for them.
https://en.wikipedia.org/wiki/Flame_(malware)
Even with the mitigations provided by moving away from MD5, simple integration with a CA would be much more strategically beneficial.
> Even with the mitigations provided by moving away from MD5, simple integration with a CA would be much more strategically beneficial.
Returning to the point, this attack would be unaffected by Microsoft purchasing anything.
I was agreeing with you :)