r/linux • • Nov 16 '15

Your Text Editor Is Malware

https://glyph.twistedmatrix.com/2015/11/editor-malware.html
0 Upvotes

10 comments sorted by

23

u/[deleted] Nov 16 '15

"To avoid installing code that you didn't audit, install this code that I haven't audited."

4

u/prohulaelk Nov 16 '15

Yeah. I got that far into the article, facepalmed, and closed the tab.

3

u/AiwendilH Nov 16 '15

That's not what this is about. It's about downloading nearly plain text plugins over a plain text connections which can be very easily modified without ever checking that what you got is what you actually wanted. The author of the plugin doesn't need any malicious intend or add anything to the code to enable others to misuse this. Forcing https for download actually really adds some security here. Not saying that you are wrong....just that the problem you talk about is not the same that is tried to be prevented here.

6

u/minimim Nov 16 '15

I only install if it's packaged for my distro. I don't even use gems or pypi, docker images, or others, which many times have the same problems, but I'm not able to say.

6

u/ckozler Nov 16 '15

But you installed it from a remote source without auditing it first!! H4x0rz got you! /s

4

u/minimim Nov 16 '15

It is a valid concern, but the distro has root already.

5

u/send-me-to-hell Nov 16 '15

If you use Vim, you’ve probably installed a few vimballs from vim.org, a website only available over HTTP. Vimballs are fairly opaque; if you’ve installed one, chances are you didn’t audit the code.

No, I usually just use regular ole vim and I think most people are the same way. I may tick out my .vimrc but other than that I don't get too fancy with my text editor. I'm sure people do apply the vimballs but it's definitely not the majority of vim users.

Even if it were using that to call vim "malware" is a bit of a stretch. But I guess that's the point. Overall this article is pretty yellow journalism-y. Saying provocative things to get attention without feeling the need to back it up.

I did think the footer was pretty funny:

All Rights Reserved Excepting Those Which Are Not.

I don't think it was intentional but I still lol'd.

4

u/lykwydchykyn Nov 16 '15

The solution for Vim is relatively simple: use vim-plug, which fetches stuff from GitHub exclusively via HTTPS.

So let me get this straight:

Instead of installing from a curated repository like Melpa or Elpa, I should install stuff directly from github because the latter is HTTPS. Hrm...

2

u/[deleted] Nov 16 '15

Why yes, becuase GitHub thoroughly audits everything that is uploaded to the site. Every. Single. Thing.

2

u/his_name_is_albert Nov 16 '15

When you install un-signed code into your editor that you downloaded over an unencrypted, unauthenticated transport like HTTP, you might as well be installing malware. This is not a joke or exaggeration: you really might be.1 You have no assurance that you’re not being exploited by someone on your local network, by someone on your ISP’s network, the NSA, the CIA, or whoever else.

No it isn't, "can theoretically happen" is not the same as "will happen".

This is like saying that eating bread might as well be eating poison because someone could've poisoned it.