Urgent.News

What's breaking now, across thousands of outlets.

Tech

Your MCP Server Is a Backdoor. Here's How Attackers Use It.

I've been digging into MCP (Model Context Protocol) server security over the past few weeks, and what I found is terrifying. The attack surface is massive, and almost nobody is auditing it. The Problem MCP servers are the new gold mine for attackers. Here's why: One-time approval = permanent trust. You approve an MCP server once, and it has access to your tools, your prompts, your data. Forever.…

MCP (Model Context Protocol) servers have become a prime target for cybercriminals due to their extensive attack surface. Once an MCP server is approved, it gains permanent access to tools, prompts, and data without requiring re-authentication or periodic review. Attackers exploit this by opening multiple pull requests across AI coding tool repositories in a short amount of time, adding malicious servers to the configuration.

These servers initially behave normally, but after a certain number of calls, they begin rewriting their own answers. Static scanners, SBOMs, code reviews, and even static analysis fail to detect these malicious servers.

The attack process unfolds in six steps: 1) The attacker opens pull requests on popular AI coding tool repositories, 2) Each PR adds a malicious MCP server to the config, 3) The server behaves normally for calls 1-3, 4) Call 4 triggers the payload, 5) The agent is commanded to find SSH keys, AWS credentials, Kubernetes configurations, and shell history, and 6) All this information is exfiltrated to the attacker's server. In tests, this method successfully compromised 90% of leading coding agents.

A variant of this attack, called "GhostJacking," uses a firewall against its owner. The attacker triggers a request to a domain, which the firewall blocks and logs. The AI agent, reading the blocked request, identifies instructions within it and treats them as a solution, rewriting the DNS to the attacker's server. The firewall remains seemingly undisturbed, as it has become a delivery vehicle for the malicious activity.

To mitigate these threats, it is crucial to treat every MCP server as a permanent privilege, requiring rigorous auditing similar to senior engineer access. Logs should not be piped into agents, as they are now attack surfaces. DNS and config writes should be protected by human approval, preventing agents from making unauthorized changes.

Monitoring the opening of new repositories with numerous pull requests can help detect supply chain attacks. Regularly rotating credentials is also essential, as any MCP server in the configuration for an extended period may have been compromised. Ultimately, while MCP offers powerful capabilities, accountability must be maintained to prevent it from becoming a backdoor with enhanced marketing.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Drupal Web Development - A 2026 Guide

Drupal web development occupies a particular place in the content management landscape: less talked about than WordPress, but trusted by governments, universities, and large organisations for sites…

  • Drupal is a powerful content management system for large organizations and institutions.
  • Drupal 11 built on modern PHP and Symfony framework for security and scalability.
  • Drupal's complexity makes it suitable for complex, large, and security-sensitive sites.

More from Friday 4 September →