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.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
3 events from the most recent confirmed update back to the earliest known activity.
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.
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.
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.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
2 references tracked. Mallory keeps watching after this page renders.
Are Copilot prompt injection flaws vulnerabilities or AI limits?
bleepingcomputer.com
Open sourceWhen Your AI Coding Plugin Starts Picking Your Dependencies: Marketplace Skills and Dependency Hijack in Claude Code
sentinelone.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


