Join our Newsletter — 33% off our NHI Course

AI coding assistants and extension abuse: what security teams need to know

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 16521
Topic starter  

TL;DR: A malicious extension, injected JavaScript, or unvetted MCP input can turn a Cursor or VS Code derivative into a privileged execution environment with file-system access, extension modification, and restart-persistent code, according to Knostic. The attack class is old, but AI coding assistants widen the supply chain and workstation blast radius enough that IDE trust now needs explicit governance.

Editorial analysis by NHI Mgmt Group, based on content published by Knostic: “Deep Dive: Cursor Code Injection Runtime Attacks”.

Key questions

Q: What breaks when an AI coding assistant can run untrusted extensions or MCP inputs?

A: The main failure is that the assistant no longer behaves like a bounded productivity tool.

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.

Q: How can security teams tell whether an AI coding assistant is behaving outside its trusted boundary?

A: Look for changes in bundle hashes, unexpected extension installs, writes in IDE directories, and traffic to unfamiliar domains from the workstation.

Practitioner guidance

  • Harden extension and MCP approval paths Require explicit allowlisting for IDE extensions, MCP servers, prompts, and rules that can execute code or alter behaviour in the assistant runtime.
  • Verify bundle integrity before every update Track checksums for workbench bundles and product files, and alert when the IDE package changes outside a trusted update flow.
  • Monitor for workstation-level persistence signals Watch for unexpected writes in IDE directories, modified extension state, and restart-persistent code that survives application relaunch.

Bottom line: AI coding assistants can inherit workstation privileges through extension abuse, so the real control problem is runtime trust, not just extension hygiene.

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 17012
 

Extension trust has become an identity problem, not just an endpoint problem. Once an AI coding assistant accepts unvetted extensions, prompts, or MCP inputs, it can inherit the workstation privileges that protect source, secrets, and build access. That means the security boundary now sits at the point of code and instruction ingestion, not just at the operating system. Practitioners should treat assistant inputs as governed identity-bearing artefacts, not harmless productivity add-ons.

A few things that frame the scale:

  • Developers using GenAI tools like GitHub Copilot are reporting 35% productivity gains, according to IDC’s 2024 Generative AI Study.

A question worth separating out:

Q: How should organisations respond when developer tooling can access secrets and release credentials?

A: Treat the tooling as a privileged non-human identity and reduce its access to the minimum required for the workflow. Separate build, publish, and signing permissions, rotate credentials aggressively, and monitor for unusual dependency or package activity. If the tooling can ship code, it can also become a supply-chain attack path.

👉 Read our full editorial: AI coding assistants inherit workstation privileges through extension abuse



   
ReplyQuote
Share:

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.