Join our Newsletter — 33% off our NHI Course
Home› Guides› Code Editor Extensions for Beginners: Safer Plugins in…
Guide Non-Human Identity (NHI)

Code Editor Extensions for Beginners: Safer Plugins in VS Code and Other Editors

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 11 min read
On this page

A code editor extension is an add-on that gives the program you write code in new features.

This guide is for students, junior developers and anyone who uses a code editor such as VS Code. If your business pays people to write code, their editor add-ons can reach the same files and keys they can.

In short

  • Extensions run with the same access as the editor, so they can read your files and connect to the internet.
  • That includes keys, tokens and passwords stored on your computer, which are non-human identities (NHIs).
  • Install fewer extensions, from publishers you can check, and remove the ones you no longer use.
  • Open unfamiliar projects in the editor's restricted mode until you trust them.

What you will learn

  • Explain what an editor extension can reach on your computer.
  • Check an extension before you install it.
  • Spot the warning signs of a copycat extension.
  • Ask your team which extensions are allowed.
Code writing program (code editor)
the app a developer uses to write and test code, such as VS Code.
Add-on (extension)
a small program you install inside the editor to add a feature.
Extension shop (marketplace)
the online store where you find and install extensions.

What is a code editor extension?

Think of letting a helper into your workshop to fix one shelf. Once inside, they can pick up any tool and open any drawer, not just the one you pointed at.

A code editor is the app where people write code. Popular editors let you add extensions. These add colours, spell checks, support for a new language, or a link to a cloud service. You find them in a marketplace, an online shop built into the editor, and install them with one click.

In VS Code, extensions run with the same permissions as the editor itself. Microsoft's own documentation says this means an extension can read and change files, connect to the internet and start other programs.[1]

Where the comparison stops working: you can watch a helper in your workshop. An extension works out of sight, and it can change when it updates, often with no prompt to you.

Why does it matter?

Developer computers hold many software keys and tokens. These let programs log in to other systems, and they are a kind of non-human identity (NHI). A bad or hijacked extension may be able to read them.

Extensions can also leak keys by mistake. In 2025 Wiz Research reported more than 550 valid secrets inside over 500 published extensions. Some were publishing tokens that could have pushed an update to about 150,000 installs.[5] Read our Secrets in VS Code Extensions page for the full story.

If you are a student or learning to code

What could happen: a copycat theme or helper copies the keys in your project folder.

Check this: look at the publisher name and reviews before you click Install.

Next: Secrets in Code for Beginners

If you are a junior developer

What could happen: an extension on your work laptop reads cloud keys that reach live systems.

Check this: ask whether your team has an approved list of extensions.

Next: AI Coding Assistants for Beginners

If you manage developers

What could happen: one bad add-on on one laptop opens a path into your systems.

Check this: decide who approves extensions, and whether the editor can enforce a list.

Next: Developer endpoints as NHI stores

What does it look like?

Here is a made-up marketplace listing. It shows the kind of details worth checking.

Example only. All values are made up.

Name:       Pretty Python Colours PRO          (1)
Publisher:  micros0ft-tools-example            (2)
Verified:   no                                 (3)
Installs:   41
Reviews:    none
Updated:    yesterday
Source code: link missing                      (4)
  1. The name copies a popular extension and adds "PRO" to look official.
  2. The publisher name swaps a letter o for a zero, so it looks like a well-known company at a glance.
  3. No check mark. On the VS Code marketplace, a check mark means the publisher proved it owns a web domain.
  4. No link to its code, no issues page and no reviews, so there is little to check.

Why this is risky: once installed, the extension could run with the editor's access to your files and keys.[1] A theme does not need that much trust.

The safer way: pick the original extension from its real publisher. Check the ratings, reviews, question page, source code link and licence, as the VS Code documentation suggests.[1] A verified check mark is a useful sign, but not a promise that the code is safe.

How does it work?

Here is how an extension gets onto a computer, and where things can go wrong.

  1. The search. You search the marketplace and pick an extension. Some marketplaces scan each package for malware and stop copycats from using big publishers' names.[1]
  2. The trust question. Recent versions of VS Code ask you to confirm that you trust a new publisher the first time you install from them.[1]
  3. The access. The extension runs with the editor's access. It can read files, including settings files that hold keys, and connect to the internet.[1]
  4. The update. VS Code checks for extension updates and installs them automatically by default.[3] So a safe extension can change if its publisher's account or token is stolen.[5]
  5. The clean-up. If a marketplace finds a harmful extension, it can remove it and add it to a block list. VS Code then removes installed copies.[1]
Diagram titled What an editor extension can reach. In the middle, a box labelled Code editor with an extension inside it. Arrows lead from it to four boxes: Your project files, Settings files with keys and tokens, Other programs on the computer, and The internet. A note at the bottom says the extension has the same access as the editor, so choose it with care.
Figure 1. An extension can reach what the editor can reach.
Before and after diagram titled Choosing an extension. Left panel, labelled Risky: a copycat name, an unverified publisher, few installs, no reviews and no source code link, installed on a hunch. Right panel, labelled Safer: the original publisher with a check mark, reviews and a source code link, on your team's approved list, and removed when no longer used.
Figure 2. Risky and safer ways to pick an extension.

A second safety net is called Workspace Trust. When you open a folder you do not know, VS Code can open it in Restricted Mode. This limits features that run code on their own, such as tasks and debugging. It also turns off extensions that have not opted in to work in that mode.[2]

Companies can go further. VS Code has a setting for managed computers that allows only approved extensions and blocks the rest.[4]

A worked example

Zane Brandt is a junior developer at Marigold Tutors, a fictional online tutoring firm. He is building a new booking page.

A friend tells him about a free extension that writes test data. Zane searches the marketplace. Two results look the same. One has thousands of installs, reviews and a check mark. The other has a few dozen installs and a publisher name that is one letter off.

Zane remembers the helper in the workshop. Whoever he lets in can open every drawer, and his laptop holds a key to the booking database. So he picks the verified one, and reads the reviews first.

Then he opens the extensions list and finds six he has not used for months. Two came from publishers he does not recognise. He removes them.

Next, he asks his manager whether Marigold has an approved list. It does not. His manager agrees to start one and to look at the editor's setting that only allows approved extensions.

Last, Zane moves the database key out of a settings file in his project folder. He puts it in the team's secrets store instead. Now an extension that reads his project folder will find a name, not a working key.

It takes him less than an hour. Nothing bad happened, but there is now less on his laptop for a bad add-on to find.

Myths and mistakes

What people thinkWhat is true
Extensions only change how the editor looks.In VS Code they run with the editor's full access, including files, the internet and other programs.[1]
If it is in the marketplace, it has been checked, so it is safe.Scans help, but they are not perfect. Check the publisher, reviews and source code too.
A check mark means the code is safe.It means the publisher proved it owns a web domain.[1] It is a trust signal, not a code review.
An extension I trusted last year is still fine.Extensions update on their own. A stolen publisher token can push a harmful update.[5]
More extensions make me more productive.Each one is more code with access to your keys. Keep only what you use.

What can I do this week?

  • Open your installed extensions list and remove anything you have not used recently.
  • Check the publisher of each extension you keep, and look for a source code link.
  • Move keys and passwords out of project folders into a secrets store or your platform's secure settings.
  • Leave Workspace Trust turned on, and open downloaded projects in Restricted Mode first.
  • Ask your team lead whether there is an approved extension list.

Checklist

  • Every installed extension is still needed.
  • Extensions come from publishers you can check, with reviews and a source code link.
  • Copycat names and look-alike publishers are checked before install.
  • Workspace Trust is on, and unknown projects open in Restricted Mode.
  • Keys and tokens are not stored as plain text in project folders.
  • Work computers use an approved extension list where the team can manage one.
  • Everyone knows to report a suspicious extension straight away.

Common questions

Are VS Code extensions safe?

Most are fine, but each one runs with the editor's access to your files and the internet. The marketplace scans packages and blocks known bad ones, which lowers the risk. Choose well-known publishers, keep only what you use and leave Workspace Trust turned on.

What does the blue check mark mean?

It means the publisher proved it owns a web domain. That makes it harder for a stranger to pose as a known company. It does not mean someone has reviewed the code, so still check the reviews, the source code link and how many people use it.

Should I turn off automatic updates?

Usually no. Updates often fix security bugs, and VS Code waits a short time before installing them. Most people are safer keeping updates on and removing extensions they do not need. Companies with an approved list can pin trusted versions on managed computers.

Do other editors have the same risk?

Yes, broadly. Most editors that accept add-ons let them run code on your computer. The settings and shops differ, so check your editor's own help pages for how it handles trust, updates and approved lists.

What should I do if I installed a bad extension?

Remove it, then tell your team or security contact. We suggest changing any keys, tokens and passwords that were on that computer, starting with the most powerful ones. Then check the systems those keys reach for activity you do not recognise.

Where next?

Ready for the detail? Read the practitioner guide: Developer endpoints as NHI stores. It goes further into taking machine credentials off developer laptops, protecting the sessions that remain and rolling out controls in phases.

Also useful:

Related NHI Mgmt Group resources: GlassWorm VS Code Extension Worm Guide · Secrets Management Guide · Malicious Open Source Package Response Playbook

Key terms

IDE extension
An add-on installed in a code editor that adds features and runs with the editor's access.
Visual Studio Code
A popular free code editor from Microsoft, often called VS Code.
Verified publisher
A publisher that has proved who it is, shown in the VS Code marketplace by a check mark.
Workspace Trust
An editor feature that limits what runs automatically in a folder until you say you trust it.
Typosquatting
Using a name one letter off from a well-known one, to trick people into picking the wrong thing.
Secret
A password, key, token or certificate that software uses to prove who it is.
Software supply chain
All the code, tools and services, made by other people, that go into building your software.

Sources and further reading

  1. Extension runtime security. Visual Studio Code documentation, Microsoft. https://code.visualstudio.com/docs/configure/extensions/extension-runtime-security, accessed 28 Nov 2026.
  2. Workspace Trust. Visual Studio Code documentation, Microsoft. https://code.visualstudio.com/docs/editing/workspaces/workspace-trust, accessed 28 Nov 2026.
  3. Extension Marketplace. Visual Studio Code documentation, Microsoft. https://code.visualstudio.com/docs/configure/extensions/extension-marketplace, accessed 28 Nov 2026.
  4. Manage extensions in enterprise environments. Visual Studio Code documentation, Microsoft. https://code.visualstudio.com/docs/enterprise/extensions, accessed 28 Nov 2026.
  5. Supply chain risk in VSCode extension marketplaces. Wiz Research, 15 October 2025. https://www.wiz.io/blog/supply-chain-risk-in-vscode-extension-marketplaces, accessed 28 Nov 2026.

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.