Live data from Hacker News

Zed Editor automatically downloads binaries and NPM packages without consent

old.reddit.com

131–140 of 183 posts

Re: Zed Editor automatically downloads binaries and NPM packages without consent

#131
This was also documented here, nearly 1-year ago:

https://github.com/zed-industries/zed/discussions/6659

Where there is a VSCode theme importer for Zed.

And what it does is silently install a Home Brew package and attempt to execute it on your machine.

Re: Zed Editor automatically downloads binaries and NPM packages without consent

#132
post #129

Zed is supposed to be a lightweigh and fast text editor. That was my hope when trying it. This is not the case. When I was editing some JS or HTML file I noticed that my laptop is quite warm. I checked all processes and there was some node process taking up 100% of one of CPUs. It was some language server running in the background in some non-efficient way. The problem with Zed is that its mission is to be "engineere…

The language server isn't part of Zed though is it? You should report the issues on their github page.

Re: Zed Editor automatically downloads binaries and NPM packages without consent

#134
post #129

Zed is supposed to be a lightweigh and fast text editor. That was my hope when trying it. This is not the case. When I was editing some JS or HTML file I noticed that my laptop is quite warm. I checked all processes and there was some node process taking up 100% of one of CPUs. It was some language server running in the background in some non-efficient way. The problem with Zed is that its mission is to be "engineere…

The language server isn't part of Zed though is it? You should report the issues on their github page.

it is not, but as the title says: it all happens in the background, without you being aware what happens.

The good thing is that this can be turned off with this option: "enable_language_server": false

Re: Zed Editor automatically downloads binaries and NPM packages without consent

#135
post #68

Earlier quoted context omitted.

Jetbrains has a decent golang IDE. I don't use it because I use Vim. Vim's not for everyone.

I do the same (not for golang tho). However, vim plug-ins also "have network access", in fact they can just "system()" and call anything. No sandboxing at all. At least the source code of these plug-ins are not obfuscated/compressed. However, this makes me wonder how much of a surface attack this is.

Do you pin your plugins down to commit hash?

Re: Zed Editor automatically downloads binaries and NPM packages without consent

#136

Earlier quoted context omitted.

Quite. VSCode asks with a little pop-up in the bottom right (for me, on Gnome) when you open a project that might benefit from a particular component, and you can accept or decline it. It tells you what/why it's needed, it's up to you to accept or decline, but you should accept that things won't work well if you don't. I'm no Microsoft fan (quite the opposite), but VSCode handles this about as well as anything could.

except for giving network access to extensions having no way to audit if not open source.

oh come on, if an extension comes with no source code it means it comes with a native binary (because otherwise it's JavaScript and there, are, no, good, JavaScript, obfuscation, in, this, world, period), and does it really matter if it has network access ??? it may as well just inject cryptominer to your ~/.bashrc.

Re: Zed Editor automatically downloads binaries and NPM packages without consent

#137
post #9

This is what I hate about vscode, and they at least ask for consent. Some of the stuff vscode needs for golang are (to me) developed by Random Joe on github. It's just a matter of time before it is abused for supply chain attacks.

I just want a dumb text editor that doesn't bundle shitton of crap I don't want (like LLMs), doesn't phone home, isn't bloated and slow. I feel that still the only good editor that does this apart from vim+emacs is sublime text.

I've been using Sublime more and more lately when I'm not in a JetBrains IDE. I can't feel a difference between it's speed and Zed's on my machines. If I could get Supermaven in it I'd SWITCH completely.

Re: Zed Editor automatically downloads binaries and NPM packages without consent

#138

Earlier quoted context omitted.

yea I was recently dismayed to find vscode extensions have full network access and there's no way to prevent it. It's been an open issue since 2018 and not on the roadmap. https://github.com/microsoft/vscode/issues/52116

Is that something people really expect of their IDEs these days? In my mind, an IDE needs to be able to read all the files I can read myself, it needs to be able run arbitary tools like compilers and linkers then run the resulting compiled code, it needs a debugger that can attach to running processes and mess with them, it needs to be able to pull from the language's package repository when you ask it to, it needs t…

A different (Visual Studio Code) example that uses network access and runs executables from untrusted sources: embedded development. You have everything from tools like PlatformIO, that manages the toolchain for microcontrollers from multiple vendors; to ESP-IDF, that manages the toolchain for microcontrollers based upon multiple architectures; to Raspberry Pi Pico, which uses the IDE as a simplified installer for their toolchain.

With some compilers leaning on user side, rather than system side, toolchain management (e.g. Rust), I would imagine that plugins managing that would be desirable as well.

Keep in mind, computers are about automation. We should be able to reap the benefits of that automation to the greatest degree possible. Alas, we can't due to bad actors.

Re: Zed Editor automatically downloads binaries and NPM packages without consent

#139

I don't really see the big deal here. Who wants to approve and configure all of their language servers? If you open a file for that language, is there ever a time you would deny the download? I just don't want a huge amount of popups like VSCode. Also, the binaries are downloaded from their release on github. As long as that is secure I don't see a problem.

It's okay for a browser to download and use anything from any site, maybe, with mature cross origin policies and billions in security work, but the fact it's done without saying anything is just a bug that can be fixed. Fixing clarity is the real win.

What's really funny is it was found because it was crashing and the user was running another libc. If they're really concerned about 14MB of download, they should add a firewall or something, but they saw it crashing. Finally, all these versions of everything sitting around, nodeJS, glibc, etc, very UNIX, a recipe for small breakages. Though I guess that's just the problem we deal with.

Re: Zed Editor automatically downloads binaries and NPM packages without consent

#140
While I share similar concerns, I also want to point out that:

  - Zed is (currently) free
  - still pre 1.0 release
  - being developed quickly by a small group of developers
For those of us who enjoy Zed, we should give appreciation for what they have created.

As someone who's maintains OSS myself, the onslaught of people who can swarm in fast to piss on your hard/long efforts can demoralize you.

So let's be kind in our words (and tone) to these folks.

Post reply on HN