Microsoft researchers identified "AutoJack," a critical exploit chain in AutoGen Studio's Model Context Protocol (MCP) WebSocket implementation. The attack allows a single malicious webpage to trigger host-level Remote Code Execution (RCE) by exploiting origin confusion and an authentication bypass in MCP paths. Specifically, unvalidated server_params passed via URL enable arbitrary command injection into process-spawning mechanisms like Bash or PowerShell. While patched in source builds, the vulnerability highlights a systemic risk in agentic frameworks that combine autonomous web browsing with privileged access to localhost services, effectively neutralizing traditional local security boundaries.
-
Threat Model & Overview
- Analysis of "AutoJack," a vulnerability chain targeting agentic AI frameworks that bridge web interaction with local tool execution.
- Demonstrates the collapse of the 'localhost' security boundary when an AI agent acts as a proxy for untrusted web content.
- Primary impact is host-level RCE without requiring user authentication or complex social engineering.
-
Technical Exploit Chain
- Origin Confusion: Agents rendering malicious pages inherit localhost identity, bypassing origin allowlists meant to protect local services.
- Authentication Bypass: MCP WebSocket endpoints were erroneously excluded from standard authentication middleware, allowing unauthenticated access.
- Command Injection: Vulnerable endpoints accepted unvalidated
server_paramsvia URL, which were directly passed to system shell execution.
-
Impact & Scope
- Severity: Critical RCE via a single-page web vector with minimal user interaction (agent rendering the page).
- Immediate Scope: Affects AutoGen Studio development builds installed from source; PyPI production releases remain unaffected.
- Systemic Risk: Extends to any framework allowing AI agents to browse the open web while maintaining privileged local service access.
-
Remediation & Mitigation
- Path Hardening: Integration of MCP WebSocket paths into standard authentication and authorization flows.
- Input Validation: Elimination of URL-based parameter injection in favor of server-side handling keyed to session identifiers.
- Architectural Shift: Recommendation to isolate agent browsing environments from host-level administrative tools.
-
Industry Implications
- Highlights the danger of "Agentic Bridge" vulnerabilities where LLMs facilitate a path from the public web to internal systems.
- Signals a need for strict sandboxing and "Zero Trust" application of local tool permissions for AI agents.
- Underscores the risk of using development/source builds of emerging AI frameworks in production-like environments.
Related posts
- Microsoft Security Blog — AutoJack: How a single page can RCE the host running your AI agent
- csoonline.com — Microsoft says web-enabled AI agents can trigger host-level RCE
- feeds.feedburner.com — AutoJack Attack Lets One Web Page Hijack AI Agent for Host Code Execution
- bulwarkblack.com — AutoJack Shows AI Browsing Agents Need Localhost Boundaries
- simplysecuregroup.com — AutoJack A Single Web Page Can Hijack Your AI Agent to Execute Malicious Code
- Cybersecurity News — AutoJack – A Single Web Page Can Hijack Your AI Agent to Execute Malicious Code
- App
- Inspectcybersecurity
- Networkustad
- Flexsin
- gbhackers.com — AutoJack Exploit Chain Hits Microsoft AutoGen Studio With Zero-Click RCE Attack
- cybersecurity.pk — AutoJack Attack Lets One Web Page Hijack AI Agent for Host Code Execution
- Webdeveloper
- Aiweekly
- Letsdatascience
- Daily
- Cyberpress
- bleepingcomputer.com — Clean GitHub repo tricks AI coding agents into running malware
- techjacksolutions.com — AutoJack: Malicious Web Page Enables RCE via AI Agent Hijacking in AutoGen Studio
- techjacksolutions.com — Millions of AI agents imperiled by critical vulnerability in open source package
- threat-modeling.com — Microsoft AutoGen Studio Code Execution Vulnerability — Third AI Framework Compromise This Period
- Techgig
- Medium
- Techradar
- Github
- Deepinspect
- Tempmail
- Stealthnet
- Arxiv