AutoJack attack turns AI agents into remote code execution vehicles via malicious web pages

2 Sources

Share

Microsoft researchers uncovered AutoJack, an exploit chain in AutoGen Studio that weaponizes AI agents for remote code execution. By steering an AI agent to load a malicious web page, attackers can hijack the agent's localhost privileges to spawn processes on the host machine—no credentials or user interaction required. The vulnerability existed only in pre-release builds and has been patched in GitHub, but the pattern threatens other agent frameworks.

Microsoft Uncovers AutoJack Vulnerability in AI Agent Development Tool

Microsoft researchers have exposed a critical exploit chain dubbed AutoJack that transforms an AI agent into a delivery mechanism for remote code execution

1

. The vulnerability chain targets AutoGen Studio, the open-source prototyping interface for Microsoft Research's AutoGen multi-agent framework, allowing attackers to execute host code execution without credentials or further user interaction once the AI agent loads a malicious web page

2

.

Source: Hacker News

Source: Hacker News

The attack vector is deceptively simple: steer an AI agent to open an attacker-controlled URL through a planted link, a URL field, or prompt injection, and the page's JavaScript can reach privileged local services on the same machine to spawn arbitrary processes . Microsoft's Defender Security Research Team described the technique as "jacking the agent into becoming the attacker's last-mile delivery vehicle by crossing the localhost trust boundary that many developer tools rely on"

2

.

Three Weaknesses Form a Dangerous Vulnerability Chain

AutoJack chains three distinct weaknesses in the Model Context Protocol (MCP) WebSocket implementation. First, the socket trusted localhost connections, a check designed to block normal browsers pointed at untrusted websites. However, a browsing AI agent running on the same machine inherently operates as localhost, meaning anything it loads inherits that localhost identity and passes the security check

1

.

Second, authentication middleware skipped MCP paths under the assumption that handlers would verify tokens themselves. This never happened, so the socket accepted unauthenticated connections regardless of the configured authentication mode

1

. Third, the endpoint accepted commands directly from request parameters and executed them without any allowlist restricting which executables could launch

1

.

When combined, these flaws enabled a page on the open internet, rendered by a local agent, to run attacker-chosen commands under the account running AutoGen Studio. Microsoft's proof of concept demonstrated a "Web Content Summarizer" agent that, when fed an attacker URL, launched calc.exe on the developer's desktop

1

.

Limited Exposure but Broader Implications for Agent Frameworks

The vulnerable MCP WebSocket surface was never included in a stable PyPI release, according to Microsoft's assessment

1

. A standard pip install autogenstudio delivers version 0.4.2.2, which lacks the MCP route entirely and remains unaffected. However, the vulnerable handler did ship in two pre-release builds—0.4.3.dev1 and 0.4.3.dev2—which remain available on PyPI and have not been yanked

1

.

Pip does not install pre-releases unless users explicitly pass the --pre flag or pin the specific version, meaning standard installations were never exposed. Anyone who installed those pre-release versions, however, remains vulnerable

1

. Microsoft reported the behavior to the Microsoft Security Response Center, and maintainers hardened the main branch in commit b047730 through pull request #7362

1

.

The fixed handler no longer reads commands from URLs; parameters are stored server-side behind one-time session IDs, with unknown IDs refused outright. MCP routes now run through normal authentication paths

1

. This hardening has not yet landed in a PyPI release, leaving pre-release users without a patched build to upgrade to.

Mitigation Strategies and Watching for Similar Patterns

For users who installed pre-release versions, the immediate mitigation requires pulling from GitHub main at or after commit b047730

1

. Until an official release arrives, developers should separate components the attack needs to function. Avoid running AutoGen Studio on the same machine as browsing or code-execution agents that interact with untrusted content, since the exploit chain only works when both share the same localhost environment

1

.

Source: TechRadar

Source: TechRadar

If co-location is unavoidable, isolation through separate containers or virtual machines provides a defensive layer, alongside running AutoGen Studio under low-privilege accounts

1

. Microsoft emphasized that while the AutoGen Studio bugs are patched in source code, the underlying pattern persists across the ecosystem. The research team expects similar vulnerabilities in other agent frameworks: local services with excessive privileges, localhost checks treated as security boundaries, and agents that open untrusted pages

1

.

Microsoft referenced recent examples including ChatGPhish, where ChatGPT's page summaries became phishing vectors, and similar localhost concerns in Semantic Kernel RCE research tracked as CVE-2026-26030 and CVE-2026-25592

1

. The researchers stress that once an AI agent can browse the open web and reach privileged local services, localhost ceases to function as a trust boundary. Proper mitigation demands authenticated control planes, process execution behind allowlists, and agent identities distinct from developer sessions

1

.

Today's Top Stories

© 2026 TheOutpost.AI All rights reserved