Skip to main content
Mallory
← Back to News
ai-platform-securityextension-plugin-hijackdependency-confusion-typosquatopen-source-dependency-vulnerability

Security Risks in AI Coding Assistants: Prompt Injection and Dependency Hijacking

Emerging Technology Risk · 2 sources · Updated 5mo ago · First seen Jan 6, 2026

Security Risks in AI Coding Assistants: Prompt Injection and Dependency Hijacking

Security researchers have identified significant risks in AI-powered coding assistants, including Microsoft's Copilot and Claude Code, stemming from both prompt injection vulnerabilities and the potential for dependency hijacking via third-party plugins. In the case of Copilot, a security engineer disclosed several issues such as prompt injection leading to system prompt leaks, file upload policy bypasses using base64 encoding, and command execution within Copilot's isolated environment. Microsoft, however, has dismissed these findings as limitations of AI rather than true security vulnerabilities, sparking debate within the security community about the definition and handling of such risks.

Separately, analysis of Claude Code highlights the dangers of plugin marketplaces, where third-party 'skills' can be enabled to automate tasks like dependency management. A technical review demonstrated how a seemingly benign plugin could redirect dependency installations to attacker-controlled sources, resulting in the silent introduction of trojanized libraries into development environments. These risks are compounded by the persistent nature of enabled plugins, which can continue to influence agent behavior and potentially compromise projects over time, underscoring the need for greater scrutiny and security controls in AI development tools.

Why it matters

Impact assessment

AI coding assistants used in software engineering workflows are affected, particularly Microsoft Copilot and Claude Code deployments that can access files, execute development tasks, or use third-party plugins. The primary impact is software supply chain compromise, policy bypass, and potential secret exposure or malicious code introduction into developer environments, with downstream operational, financial, and reputational risk for organizations relying on AI-assisted development.

This exposure is broad for enterprises adopting AI development tooling, but the Claude Code plugin abuse scenario is especially relevant to targeted compromise of development teams and CI/CD-adjacent workflows. The story does not cite confirmed in-the-wild exploitation campaigns, but it describes realistic attack paths with sufficient detail to warrant immediate exposure review.

Supporting facts

  • Affected products/entities:
    • Microsoft Copilot
    • Anthropic Claude Code
    • Third-party plugin or skill marketplaces for AI coding assistants
  • Affected populations:
    • Software developers
    • DevOps and platform engineering teams
    • Enterprises integrating AI assistants into coding and dependency management workflows
  • Business impact:
    • Silent installation of trojanized dependencies into development environments
    • Potential exfiltration of secrets from developer systems or projects
    • Persistent manipulation of assistant behavior across sessions via enabled plugins
    • Bypass of file upload policy controls in Copilot through base64-encoded content
  • Scope:
    • Broad exposure across organizations using AI coding assistants
    • Higher risk where assistants have autonomy over dependency installation, infrastructure tasks, or plugin execution
  • Exploitation status:
    • No confirmed active exploitation reported in the references
    • Researchers demonstrated feasible abuse paths and persistent compromise potential
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Jan 5, 2026 – Jan 6, 2026
  1. Jan 6, 202611mo ago

    Public debate emerges over whether Copilot prompt injection issues are vulnerabilities

    Reporting on Russell's Copilot findings sparked broader debate in the security community over whether prompt injection and similar AI assistant weaknesses should be treated as true vulnerabilities or as inherent limitations of large language models. Microsoft maintained that without a crossed security boundary such as unauthorized access or data exfiltration, the issues do not meet its vulnerability threshold.

  2. Jan 6, 202611mo ago

    John Russell reports four Microsoft Copilot issues to Microsoft

    Cybersecurity engineer John Russell reported four issues in Microsoft Copilot, including prompt injection behavior and a file upload policy bypass that used base64-encoded files to evade intended restrictions. Microsoft reviewed the reports but determined they did not qualify as serviceable security vulnerabilities under its criteria.

  3. Jan 5, 202611mo ago

    SentinelOne demonstrates dependency hijack via Claude Code marketplace skill

    SentinelOne's Prompt Security team showed that a seemingly benign third-party skill from an unofficial Claude Code marketplace could redirect dependency installations to attacker-controlled sources, leading to trojanized libraries being introduced into development environments. The researchers said the enabled plugin could persist across sessions, creating a software supply chain risk through the assistant's automation and privileges.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Claude Code

Organizations

1 linked
Microsoft Corporation
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.