By NHI Mgmt Group Editorial TeamBased on Knostic: “IDE Extensions: The Weakest Link in AI Coding Security” (December 18, 2025)

TL;DR: AI-powered IDE extensions can manipulate coding agents, rewrite Git history, leak credentials, and execute commands from inside the developer workspace, according to Knostic. The real issue is not the plugin alone but the trusted execution surface it creates, where conventional endpoint controls often have limited visibility.


At a glance

What this is: This blog post argues that IDE extensions have become a high-risk execution layer for AI coding agents because they can influence commands, file changes, secrets handling, and Git activity inside the developer workspace.

Why it matters: It matters because identity and access teams now have to govern extension trust, shell access, and agent permissions inside the IDE, not just repos, pipelines, and endpoints.


Context

IDE extensions are no longer just productivity add-ons. In environments that use AI assistants, Model Context Protocol connectors, and shell-capable tooling, the IDE becomes a live execution surface where trusted code can influence what agents see and do.

That changes the identity governance problem for coding workflows. The control question is no longer only whether a developer can install an extension, but whether that extension can read secrets, invoke commands, or change repository state without adequate review and containment.

The article’s core point is that extension compromise creates a wider blast radius than many teams assume, because workspace authority, agent actions, and update channels all sit closer to production code than traditional endpoint controls can see.


Key questions

Q: What breaks when IDE extensions are allowed broad workspace and shell permissions?

A: Broad permissions break least privilege at the point where code, secrets, and execution meet. A compromised or malicious extension can edit files, run commands, alter Git history, and exfiltrate credentials without needing a separate OS exploit. In practice, broad permissions turn routine developer tooling into a high-blast-radius access path.

Q: Why do AI coding assistants create more risk than a standard IDE?

A: They can move code off the local machine, call external tools, and act on instructions with limited human review. That combination turns an editor into an execution environment with identity, data, and supply-chain implications. Security teams should govern the workflow, not just the application package.

Q: What are the warning signs that an IDE extension is abusing trust?

A: Look for extensions that auto-activate, request broad OAuth scopes, proxy traffic through unusual domains, or run hidden background processes. Any extension that mixes login automation, environment-variable reads, and token handling should be treated as a high-risk trust boundary because it can silently exfiltrate secrets.

Q: How should teams govern third-party extensions in AI-enabled developer environments?

A: Use the same discipline applied to other third-party access paths: inventory what is installed, restrict what each component can do, review updates before rollout, and revoke anything that expands scope without a clear business need. The goal is to keep extension authority narrow and observable.


Technical breakdown

Why IDE extensions expand the trusted execution surface

An IDE extension is not just UI logic when it can access files, call APIs, start shells, and interact with an AI assistant. Once those permissions exist, the extension becomes part of the runtime trust boundary for the developer workspace. That matters because prompt injection, malicious updates, and over-permissioned plugins do not need to break the operating system to cause harm. They only need to influence the commands and file writes that already have developer authority. For AI coding agents, the extension can shape prompts, inputs, and tool usage at the point where code and credentials are already in reach.

Practical implication: Treat extension trust as part of application runtime governance, not as a cosmetic IDE setting.

How over-permissioned plugins create privilege concentration

Many extensions request broader workspace, network, or shell access than their function requires. That creates a privilege concentration problem: one plugin can inherit the developer’s effective authority and use it across code, tokens, build scripts, and repository history. In practice, the issue is not only malicious behaviour. A legitimate plugin with unnecessary scope can become the easiest path to credential exposure or unauthorised file modification. When AI assistants are embedded in the same environment, the plugin’s authority can extend to agent-driven actions, making least privilege harder to express if scope is assigned too early or too broadly.

Practical implication: Review requested scopes per extension update and deny shell or network access unless the use case truly requires it.

Why MCP connectors and AI assistant features need tighter runtime controls

MCP connectors and AI-enabled IDE features create a second control plane inside the workspace. They can consume prompts, parse repository content, call external services, and write changes back to the codebase. That makes them vulnerable to poisoned inputs and response-driven abuse, especially when hidden instructions or hostile tool output steer the agent into destructive edits or secret leakage. Traditional endpoint telemetry often misses this because the risky action happens inside the IDE’s trusted context, not in a separate application boundary. The mechanism is less about malware in the usual sense and more about misuse of trusted automation.

Practical implication: Constrain tool access, validate connector provenance, and monitor agent actions at the workspace layer.


Threat narrative

Attacker objective: The attacker wants to use trusted IDE authority to steal secrets, alter code, and drive harmful actions without triggering normal endpoint suspicion.

  1. Entry occurs when a hostile or compromised extension is installed through a marketplace listing, update channel, or trusted connector path.
  2. Credential access follows when the extension reads cached tokens, environment variables, or repository content from the developer workspace.
  3. Escalation happens when the extension uses shell access, file writes, or agent prompts to alter code, history, or configuration files.
  4. Impact is achieved when secrets are exfiltrated, Git history is rewritten, or destructive commands run from inside the IDE context.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

IDE-layer governance is now part of identity security for coding workflows. When extensions can read secrets, call tools, and influence agent output, the real trust boundary moves inside the developer workstation. Conventional endpoint and repo controls see the aftermath, not the decision point. Practitioner teams should treat the IDE as an identity-bearing runtime, not a passive editor.

Extension privilege is a hidden form of blast-radius expansion. Broad workspace, network, and shell permissions let one plugin inherit a developer’s authority across code, credentials, and repositories. The control failure is not only compromise, but authority concentration at install time. The implication is that extension approval, update review, and scope enforcement belong in the same governance conversation as PAM and application entitlement review.

Prompt injection becomes materially worse when the agent can act inside the IDE. Hidden instructions in code comments or connector responses can steer an assistant to rewrite Git history, alter commits, or leak data because the agent already sits inside a trusted execution path. That breaks the assumption that output can be reviewed after generation. Practitioners need to rethink where trust is granted, not just where content is inspected.

Trusted marketplaces do not remove third-party NHI risk. A signed store listing or familiar publisher name does not eliminate the possibility of hostile updates, poisoned dependencies, or credential harvesting within the extension lifecycle. That is a classic third-party NHI problem expressed through developer tooling. Security teams should view extension provenance, update cadence, and permission drift as governance signals, not installation metadata.

Runtime visibility inside the IDE is the missing control plane. The article’s five-layer model points to a deeper reality: validation and sandboxing matter, but continuous monitoring is what exposes the behaviour endpoint tools miss. The named concept here is IDE execution surface risk, meaning that the workspace itself becomes the place where identity, code, and command authority converge. The practitioner takeaway is to govern that surface as actively as any production runtime.

From our research library:

  • 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
  • Claude Code-assisted commits leaked secrets at a rate of 3.2%, more than double the human-only baseline of 1.5%, with peaks reaching 31 secrets per 1,000 commits in August 2025, according to the State of Secrets Sprawl 2026.
  • Read next: MCP Security Guide

What this signals

IDE execution surface risk: once an extension can influence prompts, code, and commands in the same workspace, governance has to move closer to runtime behaviour. That shifts the programme question from static approval to continuous control over what the extension can actually do after installation.

Traditional endpoint monitoring is not enough when the most sensitive actions happen inside the editor context. Security teams should expect to anchor policy, monitoring, and revocation around extension behaviour, not just device posture or marketplace reputation.

The practical signal for identity and access teams is that tool authority, not just human login state, now determines exposure. Extensions, connectors, and coding agents need lifecycle governance that looks much more like NHI control than simple software inventory.


For practitioners

  • Validate extension provenance before approval Require publisher checks, signed artifacts, and recent release history review before any IDE extension reaches production developer workspaces.
  • Constrain extension permissions to minimum scope Deny shell, network, and broad workspace access unless the specific extension function cannot operate without them, then re-evaluate scope at each update.
  • Isolate risky AI and MCP capabilities Run AI assistant plugins and MCP connectors in constrained processes or sandboxes so one compromised component cannot freely touch files, secrets, and outbound traffic.
  • Monitor IDE runtime behaviour continuously Log extension installs, updates, file writes, shell invocations, and unusual Git operations, then alert on deviations from approved developer patterns.
  • Prepare fast revocation and credential rotation paths Maintain a rapid quarantine process for compromised extensions and rotate tokens or environment-linked credentials if an IDE tool touches sensitive data.

Key takeaways

  • IDE extensions can become trusted execution paths that let attackers manipulate coding agents, code, and secrets from inside the workspace.
  • The main risk is authority concentration, because broad permissions and agent proximity widen the blast radius of a single compromised plugin.
  • Governance needs to shift toward provenance checks, scope restriction, sandboxing, and runtime monitoring of extension behaviour.

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, OWASP Agentic AI Top 10 and MITRE ATT&CK define the specific risk controls and attack patterns relevant to this term.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03 — Vulnerable Third-Party NHICompromised extensions and connectors act as third-party identities inside the IDE.
NHI-05 — Overprivileged NHIThe article centers on broad plugin permissions that exceed functional need.
NHI-10 — Human Use of NHIDevelopers are using AI extensions and connectors as operational tools inside trusted workflows.
Recommendation — Inventory third-party extensions and revoke any plugin whose provenance or update path cannot be trusted. Enforce least-privilege scopes for IDE extensions and remove shell or network access by default. Separate human developer authority from extension and agent actions so delegated tool use stays observable.
OWASP Agentic AI Top 10ASI02 — Tool MisuseAI coding agents can be steered into harmful file and command actions through poisoned inputs.
Recommendation — Constrain agent tool access and block any command path that is not explicitly required for the task.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementThe attack path includes secret theft from the workspace and movement into code and build environments.
Recommendation — Map extension abuse to credential access and lateral movement detections in developer environments.

Key terms

  • Runtime Execution Surface: A runtime execution surface is any application path that can cause code, commands, or subprocesses to run on the host. For AI infrastructure, this matters because a gateway may look like an integration layer while actually holding the power to execute host-level actions.
  • Extension provenance: Extension provenance is the trust history behind a browser add-on, including who published it, how it is updated, and whether it was sideloaded. In practice, it determines whether the extension should be treated as managed software or as an ungoverned supply-chain dependency.
  • Prompt Injection (Agentic): An attack where malicious instructions are embedded in content that an AI agent reads, causing the agent to execute unintended actions using its own legitimate credentials. A primary vector for agent goal hijacking and identity abuse.
  • Workspace Authority: Workspace authority is the practical level of control an extension or agent has over code, files, commands, and data inside the developer environment. It matters because excessive workspace authority turns convenience features into a high-blast-radius trust problem that conventional endpoint controls may not see clearly.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on July 9, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org