Join our Newsletter — 33% off our NHI Course

Extension Hygiene

Extension hygiene is the practice of approving, reviewing, and removing editor extensions based on risk, need, and publisher trust. Extensions can read files, access secrets, and trigger commands, so they materially expand the attack surface. Good hygiene reduces hidden exposure in everyday developer workflows.

Expanded Definition

Extension hygiene is the discipline of treating editor and IDE extensions as governed software dependencies, not harmless productivity add-ons. For NHI and agentic workflows, that matters because extensions may read local files, inspect environment variables, access secrets, and trigger commands that affect build or deployment pipelines. The practical question is not whether an extension is useful, but whether its permissions, publisher trust, update cadence, and data-handling behaviour are acceptable under policy. NIST guidance on configuration and access control, including NIST SP 800-53 Rev 5 Security and Privacy Controls, is relevant here because extension control is ultimately a governance and authorization problem. Definitions vary across vendors on how deeply extensions can be sandboxed, so hygiene must be evaluated in the context of the specific editor and enterprise controls in place. The most common misapplication is assuming an extension is low risk because it was installed for a developer convenience feature, which occurs when reviewers ignore file access, command execution, and secret-read permissions.

Examples and Use Cases

Implementing extension hygiene rigorously often introduces friction for developers, requiring organisations to weigh productivity gains against the operational cost of tighter review, allowlisting, and removal cycles.

  • Security teams approve only extensions with a clear publisher identity, recent maintenance, and a documented data-flow model for local files and secrets.
  • Engineering managers remove unused extensions from standard images after a project ends so dormant code paths do not remain exposed on developer workstations.
  • Platform teams review extensions that can invoke terminal commands before they are permitted in repositories that handle tokens, certificates, or service account material.
  • Governance teams correlate extension inventory with findings from Hard-Coded Secrets in VSCode Extensions to identify tools that may expose credentials through unsafe defaults or embedded secrets.
  • Compliance teams align editor controls with least-privilege expectations from NIST guidance and require periodic recertification of extensions that can access source code, build logs, or CI variables.

In practice, extension hygiene includes disable-by-default policies for unknown tools, centralised allowlists for approved plugins, and rapid removal when a maintainer becomes untrusted or abandons the extension.

Why It Matters in NHI Security

Extension hygiene matters because extensions often sit directly on the path to credentials, source code, and automation interfaces that NHI attackers want to exploit. A single poorly reviewed plugin can expose secrets, alter command execution, or create a hidden exfiltration channel inside a trusted developer workflow. This is not a theoretical concern: NHI Mgmt Group reports that 79% of organisations have experienced secrets leaks, with 77% of these incidents resulting in tangible damage, and extension abuse can be a direct contributor when sensitive material is handled in the IDE. The issue becomes even more serious when teams rely on local development artifacts that include long-lived tokens or hard-coded credentials, because an extension can surface what users did not intend to share. Extension hygiene also supports broader control expectations in secure development and configuration management, including the access-control discipline reflected in NIST SP 800-53 Rev 5 Security and Privacy Controls. Organisations typically encounter the consequence only after a token leak, repo compromise, or suspicious command execution, at which point extension hygiene becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Extension trust and secret exposure map to insecure secret handling in NHI environments.
NIST CSF 2.0 PR.AC-3 Extension access affects authorization and least-privilege enforcement for developer endpoints.
NIST SP 800-53 Rev 5 CM-7 Configuration baseline control supports restricting software functions to only what is required.
NIST AI RMF AI development tools and extensions can change the risk profile of local workflows.

Review editor extensions for secret access, publisher trust, and remove any plugin with excessive permissions.