← Back to Daily Briefing

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_params via 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

  1. Microsoft Security Blog — AutoJack: How a single page can RCE the host running your AI agent
  2. csoonline.com — Microsoft says web-enabled AI agents can trigger host-level RCE
  3. feeds.feedburner.com — AutoJack Attack Lets One Web Page Hijack AI Agent for Host Code Execution
  4. bulwarkblack.com — AutoJack Shows AI Browsing Agents Need Localhost Boundaries
  5. simplysecuregroup.com — AutoJack A Single Web Page Can Hijack Your AI Agent to Execute Malicious Code
  6. Cybersecurity News — AutoJack – A Single Web Page Can Hijack Your AI Agent to Execute Malicious Code
  7. App
  8. Inspectcybersecurity
  9. Networkustad
  10. Flexsin
  11. gbhackers.com — AutoJack Exploit Chain Hits Microsoft AutoGen Studio With Zero-Click RCE Attack
  12. cybersecurity.pk — AutoJack Attack Lets One Web Page Hijack AI Agent for Host Code Execution
  13. Webdeveloper
  14. Aiweekly
  15. Letsdatascience
  16. Daily
  17. Cyberpress
  18. bleepingcomputer.com — Clean GitHub repo tricks AI coding agents into running malware
  19. techjacksolutions.com — AutoJack: Malicious Web Page Enables RCE via AI Agent Hijacking in AutoGen Studio
  20. techjacksolutions.com — Millions of AI agents imperiled by critical vulnerability in open source package
  21. threat-modeling.com — Microsoft AutoGen Studio Code Execution Vulnerability — Third AI Framework Compromise This Period
  22. Techgig
  23. Medium
  24. Reddit
  25. Techradar
  26. Github
  27. Deepinspect
  28. Tempmail
  29. Stealthnet
  30. Arxiv

LINK COPIED TO CLIPBOARD