79179491

Date: 2024-11-12 00:36:03
Score: 4.5
Natty:
Report link

How safe are extensions in Visual Studio Code?

It's hard to quantify precisely. Anecdotally, the trend over the last 3 to 5 years is moving towards "less safe". (see https://www.bleepingcomputer.com/news/microsoft/vscode-marketplace-can-be-abused-to-host-malicious-extensions/)


Can extensions introduce malware?

Absolutely. It's code someone else wrote, executing on your computer.


Is it safe to install any extension?

No.

Nein. Non. Neel. Nei. Nie. Nej. (Darn. Can't think of any more ways to say no.)


Typical ways extensions are a security threat:

The real question is, how do you avoid problems with extensions?

Personally, my approach to this is generally to be skeptical by default. If I didn't write the code in question, I want to know where it came from. If where it came from looks odd to me, then I try to find an alternative backed by a trustworthy community or I decide to go without that extension.

If I need a way to do some research on an extension I am interested in, I recently found this: https://www.extensiontotal.com/. Not every extension has coverage, but it does get me into the headspace of "find out if this is trustworthy".

I also try to remember to use "Lateral Reading" techniques (https://www.openmindsfoundation.org/blog/the-power-of-lateral-reading/).

For me, this type of thinking applies to code just as much as it applies to other forms of content found online.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): how do you
  • Blacklisted phrase (1): I want to know
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How
  • Low reputation (0.5):
Posted by: Sam Heuck