Skip to main content
Mallory
← Back to News
ai-platform-securityidentity-impersonation-fraudleaked-secret-api-keybuild-pipeline-compromise

MCP and data-injection flaws let attackers hijack AI coding agents

Emerging Technology Risk · 6 sources · Updated 4mo ago · First seen Jul 15, 2026

MCP and data-injection flaws let attackers hijack AI coding agents

Researchers and security firms disclosed multiple ways attackers can manipulate AI agents and coding assistants into exposing sensitive data or executing malicious actions. In one case, Invariant Labs showed GitHub integrations built on the Model Context Protocol (MCP) could be abused to access private repositories, while Adversa AI reported a two-click exploit in Cursor that can trick developers into installing a malicious MCP server through a deeplink argument-injection flaw and a misleading confirmation dialog. Because MCP servers run with the user’s privileges, a successful attack could lead to arbitrary command execution, theft of source code and secrets, and full compromise of a developer workstation.

Separate academic research found that AI agents can also be subverted through poisoned but trusted-looking data rather than explicit prompt injection. A study covered by Nature showed agents from OpenAI, Anthropic, and Google often accepted doctored datasets and altered README files, producing manipulated conclusions, while another paper introduced agent data injection (ADI), in which attackers tamper with fields such as sender names, button IDs, or tool history to trigger misclicks, unauthorized purchases, fraudulent merge approvals, or attacker-command execution. Researchers said current defenses remain weak because agents do not reliably distinguish trusted from untrusted data, although measures such as MCP allowlisting, randomized identifiers, and stronger provenance tracking can reduce risk.

Why it matters

Impact assessment

The immediate exposure is highest for organizations using AI coding agents with Azure DevOps MCP integrations, especially automated pull-request review workflows that let agents execute tools with reviewer privileges. Developer workstations and enterprise source-code environments using Cursor MCP servers are also exposed to workstation compromise, source-code theft, and secret exfiltration if users can be tricked into installing malicious MCP servers.

The severity is high because the described attacks can turn trusted AI workflows into confused-deputy channels for cross-project data access, pipeline execution, unauthorized code-review actions, and arbitrary command execution. Current reporting describes proof-of-concept demonstrations rather than confirmed broad in-the-wild exploitation, but the exposure is meaningful because the affected products are widely used and the attack preconditions align with common developer-assistant deployments.

Affected populations

  • Organizations using Microsoft Azure DevOps MCP server for AI-assisted pull-request review, triage, summaries, or related workflows.
  • Developers and security teams using Copilot CLI, Claude Code, or similar agents connected to Azure DevOps through MCP.
  • Enterprises using Cursor AI with MCP server installation enabled.
  • Research, engineering, and analyst teams relying on autonomous AI agents to interpret datasets or repository content.
  • Vendors and users of agents from OpenAI, Anthropic, and Google exposed to agent data injection and poisoned-data workflows.

Severity and business consequences

  • Confidentiality impact: exposure of private repositories, source code, secrets, work items, and wiki content.
  • Integrity impact: manipulated merge decisions, fraudulent approvals, poisoned analytical conclusions, and attacker-influenced agent actions.
  • Availability and operational impact: unauthorized pipeline execution, developer workstation compromise, and downstream incident response burden.
  • Reputational and compliance impact: leakage of proprietary code or regulated data through AI-assisted workflows can trigger disclosure, legal, and customer-trust consequences.

Scope and exploitation status

  • Azure DevOps MCP issue appears targeted but broadly applicable wherever attacker-controlled PR content is reviewed by an agent with broader permissions.
  • Cursor deeplink/MCP-server issue is broadly relevant to developer populations because it relies on social engineering and local protocol handling.
  • ADI and poisoned-data research indicate a wider systemic weakness across agent ecosystems rather than a single vendor defect.
  • No public reporting in the provided sources confirms widespread in-the-wild exploitation of ADI; Azure DevOps MCP and Cursor reporting centers on researcher proof of concept.
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.

7 events · May 26, 2025 – Jul 21, 2026
  1. Jul 21, 20264mo ago

    Manifold Security discloses Azure DevOps MCP prompt-injection flaw

    Manifold Security disclosed a prompt-injection vulnerability in Microsoft's official Azure DevOps MCP server that lets attackers hide malicious instructions in pull request descriptions using invisible HTML comments. The issue could cause AI review agents to access other projects and exfiltrate data with the reviewer's permissions; Microsoft had not released a fix or assigned a CVE as of July 21.

    Microsoft Azure DevOps MCP Flaw Lets Hidden PR Comments Hijack AI Review Agents
  2. Jul 16, 20265mo ago

    Researchers report ADI vulnerabilities to affected vendors

    The ADI researchers said they reported the issue to affected vendors after finding all tested models from OpenAI, Anthropic, and Google vulnerable. They also said there was no public evidence of in-the-wild exploitation.

    New Agent Data Injection Attack Can Make AI Agents Misclick or Run Attacker Commands
  3. Jul 15, 20265mo ago

    Cursor reopens investigation into deeplink-based MCP install bug

    Dark Reading reported that Adversa AI found a two-click Cursor AI exploit combining deeplink argument injection with a misleading confirmation dialog to hide malicious MCP server installation commands. Cursor said it had reopened investigation of the bug after a third-party security vendor had previously closed the report.

    2-Click Cursor Exploit Enables Dev Environment Takeover
  4. Jul 15, 20265mo ago

    Nature reports study showing poisoned datasets can mislead AI agents

    Nature reported on a new arXiv study finding that autonomous AI agents from Anthropic, OpenAI, and Google could be misled by manipulated datasets that resembled legitimate ones. The study found agents accepted altered datasets about half the time on average and warned that weak provenance checking creates scientific integrity risks.

    Doctored data sets could trick AI agents
  5. Jul 6, 20265mo ago

    Researchers post paper on agent data injection attacks

    Researchers from Seoul National University, the University of Illinois Urbana-Champaign, and Largosoft posted a paper on July 6 describing agent data injection (ADI), a new attack class that corrupts trusted-looking data fields to manipulate AI agents. The paper demonstrated proof-of-concept attacks against web agents and coding assistants, including unauthorized purchases, attacker-command execution, and fraudulent merge decisions.

    New Agent Data Injection Attack Can Make AI Agents Misclick or Run Attacker Commands
  6. Jul 29, 20251y ago

    Microsoft describes Spotlighting defense for indirect prompt injection

    Microsoft published a blog post describing Spotlighting, a probabilistic mitigation designed to help large language models distinguish trusted user instructions from untrusted external text. The post outlined delimiting, datamarking, and encoding modes, along with system-prompt changes intended to prevent models from following malicious embedded instructions.

    how-microsoft-defends-against-indirect-prompt-injection-attacks
  7. May 26, 20252y ago

    Invariant Labs discloses GitHub MCP private repository access issue

    Invariant Labs published a report describing a vulnerability involving GitHub MCP that could allow access to private repositories via MCP.

    GitHub MCP Exploited: Accessing private repositories via MCP
Linked entities

Related entities

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

Open in app →

Affected products

4 linked
Claude CodeCursorCodexGemini-Cli

Organizations

6 linked
AnthropicOpenaiMicrosoft CorporationGoogleCursor AINanobrowser
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.