Threat reportVulnerabilityTL-2026-0862
AutoJack: Single-Page RCE Against Hosts Running AI Agents (AutoGen Studio MCP WebSocket Confused-Deputy Chain)
AutoJack is a Microsoft-documented exploit chain in AutoGen Studio in which a single untrusted web page, rendered by an AutoGen browsing agent, reaches the local Model Context Protocol (MCP) WebSocket and spawns arbitrary host processes. The browsing agent is abused as a confused deputy to cross the localhost trust boundary and achieve remote code execution.
Key facts
| Identifiers | TL-2026-0862 |
|---|---|
| Also known as | AutoJack |
| Severity | HIGH |
| Affected products | Microsoft AutoGen Studio (autogenstudio) |
| Weaknesses (CWE) | CWE-1385, CWE-306, CWE-78 |
| Tools | AutoGen Studio (autogenstudio) |
| MITRE ATT&CK techniques | T1021 Remote Services, T1046 Network Service Discovery, T1059 Command and Scripting Interpreter, T1106 Native API, T1189 Drive-by Compromise, T1190 Exploit Public-Facing Application, T1203 Exploitation for Client Execution, T1559 Inter-Process Communication, T1566 Phishing, T1583 Acquire Infrastructure, T1608 Stage Capabilities, T1684.001 Impersonation |
| Motivation | UNKNOWN |
| Target sectors | technology, software development, artificial intelligence |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 9 cited sources |
Detection coverage
As of 2026-06-18, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0862 across Splunk SPL, Microsoft KQL and Sigma, covering 19 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: AutoGen Studio Spawning Shell / LOLBin Child with pwned Env Marker — Post-Exploitation
Detects the AutoJack RCE end-state: an autogenstudio process spawning a shell, scripting host, or download utility (cmd.exe, powershell.exe, pwsh.exe, calc.exe, curl.exe, bash, sh) as a direct child — the decoded StdioServerParams.command running on the host (CWE-78). Boosts confidence when the child environment carries the PoC marker pwned=true. This is arbitrary process execution in the context of the AutoGen Studio process.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1203, T1059.001, T1059.003, T1059.004, T1059.006, T1106
- Data sources: sysmon, windows_security, edr_process_telemetry, auditd
- Severity: critical
- Confidence: high
Splunk SPL
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1
| eval parent=lower(coalesce(ParentImage, parent_process)), child=lower(Image), pcl=lower(ParentCommandLine)
| where (like(parent, "%autogenstudio%") OR like(pcl, "%autogenstudio%"))
| where match(child, "\\\\(cmd|powershell|pwsh|calc|curl|wscript|cscript|mshta|bash|sh)\\.exe$") OR match(child, "/(bash|sh|curl|python3?)$")
| eval pwned_marker=if(match(lower(CommandLine), "pwned") OR match(lower(_raw), "pwned=true"), "yes", "no")
| stats count min(_time) as first_seen max(_time) as last_seen values(child) as child_images values(CommandLine) as cmdlines by host ParentImage pwned_marker
| convert ctime(first_seen) ctime(last_seen)
| eval risk="AutoJack confused-deputy command injection end-state (RCE)"
| table host ParentImage child_images cmdlines pwned_marker count first_seen last_seen riskMicrosoft KQL
// Sentinel: AutoGen Studio spawning shell/LOLBin children (AutoJack RCE end-state)
let lookback = 24h;
DeviceProcessEvents
| where Timestamp > ago(lookback)
| where InitiatingProcessFileName has "autogenstudio" or InitiatingProcessCommandLine has "autogenstudio"
| where FileName in~ ("cmd.exe","powershell.exe","pwsh.exe","calc.exe","curl.exe","wscript.exe","cscript.exe","mshta.exe","bash","sh","python3")
| extend PwnedMarker = iff(ProcessCommandLine has "pwned", "yes", "no")
| project Timestamp, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLine, PwnedMarker, AccountName
| extend Technique = "T1203/T1059/T1106", Threat = "AutoJack RCE child process"Sigma
title: AutoGen Studio Spawning Shell or LOLBin Child Process (AutoJack RCE)
id: 8a4b0d21-1385-4306-8078-a1b2c3d40002
status: experimental
description: An autogenstudio process spawning a shell, scripting host, or download utility, consistent with AutoJack MCP WebSocket server_params command injection (CWE-78).
references:
- https://www.microsoft.com/en-us/security/blog/2026/06/18/autojack-single-page-rce-host-running-ai-agent/
- https://cwe.mitre.org/data/definitions/78.html
author: Threadlinqs Team
date: 2026-06-18
tags:
- attack.execution
- attack.t1203
- attack.t1059.001
- attack.t1059.003
- attack.t1106
logsource:
category: process_creation
detection:
selection_parent:
ParentImage|endswith:
- '\autogenstudio.exe'
- '/autogenstudio'
ParentCommandLine|contains: 'autogenstudio'
selection_child:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
- '\pwsh.exe'
- '\calc.exe'
- '\curl.exe'
- '/bash'
- '/sh'
- '/curl'
condition: selection_parent and selection_child
fields:
- ParentImage
- Image
- CommandLine
falsepositives:
- Legitimate MCP stdio servers intentionally launched by the developer
level: highKnown false positives:
- A developer intentionally launching a legitimate MCP stdio server (e.g. a Python/node MCP server) as a child of AutoGen Studio
- Benign AutoGen tool calls that legitimately shell out during normal prototyping
Tuning notes: Treat any hit carrying env/cmdline marker pwned=true as critical and auto-escalate — it is the PoC StdioServerParams env marker and has near-zero benign rate. For legitimate developer MCP servers, allowlist specific expected child executable paths (e.g. a known python venv MCP server) rather than disabling the rule. Extend the child list with org-specific LOLBins (rundll32, regsvr32) if seen abused.
- AutoGen Studio Unauthenticated MCP WebSocket Reached on Loopback — Exploitation · unlock with TL Creds
- AutoGen Studio Child Process with pwned Environment Marker — Post-Exploitation · unlock with TL Creds
- Web-Surfer Agent Visiting Newly-Seen Domain Then Reaching Loopback MCP — C2 / Lateral · unlock with TL Creds
- AutoJack Loopback Port Scan from Rendered-Page JavaScript — Exploitation Recon · unlock with TL Creds
- AutoJack StdioServerParams Injection Marker on MCP Route — Exploitation · unlock with TL Creds
- AutoGen Studio Spawning Download/Interpreter for Post-RCE C2 Staging — C2 / Lateral · unlock with TL Creds
- AutoJack MCP WebSocket server_params Injection from Localhost Origin — Exploitation · unlock with TL Creds
- Loopback MCP Listener Reached by Browser-Automation Agent After Port Scan — C2 / Lateral · unlock with TL Creds
Indicators of compromise
As of 2026-06-18, Threadlinqs Intelligence tracks 19 indicators of compromise for TL-2026-0862.
Technical analysis
Microsoft Defender Security Research disclosed AutoJack, a three-vulnerability chain that turns an AI agent framework into a single-page remote code execution (RCE) primitive. The target is AutoGen Studio, the low-code multi-agent prototyping UI built on Microsoft's AutoGen framework. The chain weaponizes an AutoGen browsing agent (e.g., MultimodalWebSurfer / Playwright-driven web surfer) as a confused deputy: when the agent is instructed to visit an attacker-controlled page, the JavaScript on that page executes within a browser context that inherits the host's localhost origin, allowing it to reach loopback-only services that assume same-origin requests are trustworthy.
The first link is an origin-allowlist bypass (CWE-1385, Missing Origin Validation in WebSockets): the AutoGen Studio MCP WebSocket accepts connections whose Origin is http://127.0.0.1 or http://localhost, but content rendered by the local browsing agent inherits exactly that origin, defeating the check. The second link is missing authentication (CWE-306, Missing Authentication for Critical Function): the application's auth middleware explicitly skips paths matching /api/mcp/* and /api/ws/* on the assumption those handlers enforce their own authentication, but the MCP WebSocket handler never did, so the endpoint is reachable without credentials regardless of the configured auth mode (github, msal, or firebase). The third link is command injection (CWE-78, OS Command Injection): the WebSocket endpoint accepts a server_params query parameter holding base64-encoded JSON that is deserialized directly into a StdioServerParams object with no command allowlisting, so an attacker supplies an arbitrary command to execute. A demonstration payload of {"type":"StdioServerParams","command":"calc.exe","args":[],"env":{"pwned":"true"}} launches calc.exe on the host; any executable and arguments can be substituted.
The end-to-end flow: the operator's browsing agent is steered (via prompt injection embedded in the page or task) to a malicious URL; the page's JavaScript scans loopback ports, opens ws://localhost:8081/api/mcp/ws/?server_params=<base64> to the unauthenticated MCP socket, and the server decodes the parameters and spawns the attacker-chosen process as a stdio MCP server — full RCE in the context of the AutoGen Studio process.
Scope is narrow and the issue was never shipped: only development builds from the AutoGen repository main branch, between the MCP plugin landing and the hardening commit, contain the vulnerable /api/mcp/ws route. Published PyPI releases (current 0.4.2.2 at disclosure) do not include the MCP WebSocket route and are not affected. Microsoft states the chain was identified and remediated before any vulnerable code reached a PyPI release, and it was not exploited in the wild. The fix (commit b047730) introduces server-side parameter binding — a POST to /api/mcp/ws/connect stores parameters server-side under a UUID so they can no longer be injected through the URL — and tightens the middleware skip list so /api/mcp no longer bypasses authentication. AutoJack is documented here as a novel agentic-RCE TTP warranting detection guidance even absent in-the-wild exploitation.
MITRE ATT&CK techniques by tactic:
Lateral Movement
Discovery
T1046 Network Service Discovery
Execution
T1059 Command and Scripting Interpreter; T1106 Native API; T1203 Exploitation for Client Execution; T1559 Inter-Process Communication
Initial Access
T1189 Drive-by Compromise; T1190 Exploit Public-Facing Application; T1566 Phishing
Resource Development
T1583 Acquire Infrastructure; T1608 Stage Capabilities
stealth
Remediation
Patches
- AutoGen main-branch hardening commit b047730 (server-side parameter binding + tighter auth skip list)
Immediate actions
- Update AutoGen Studio development builds to main-branch commit b047730 or later, which adds server-side parameter binding for the MCP WebSocket and removes /api/mcp from the auth-middleware skip list
- Stay on published PyPI releases (>=0.4.2.2), which do not include the vulnerable /api/mcp/ws route
- Bind AutoGen Studio to loopback only and add host firewall rules blocking non-loopback access to port 8081
- Do not let a browsing/web-surfer agent and the developer share the same host as a privileged MCP-enabled AutoGen Studio instance
Workarounds
- Disable or remove the MCP WebSocket plugin / route on affected development builds
- Allowlist permitted MCP server executables instead of accepting arbitrary StdioServerParams.command
- Disable browsing/web-surfer agent capabilities when running a privileged AutoGen Studio instance
Longer-term hardening
- Place AutoGen Studio behind an authenticated reverse proxy that enforces authentication on ALL paths, including /api/mcp/* and /api/ws/*
- Run AutoGen Studio under a low-privilege account inside a sandboxed user profile (e.g., Windows Sandbox, Microsoft Dev Box)
- Separate the agent browsing identity from the developer identity (distinct Microsoft Entra Agent ID)
- Deploy untrusted-content-rendering agents only in isolated, disposable developer prototype environments
- Apply prompt-injection defenses (e.g., Azure AI Content Safety Prompt Shields) to content fed to browsing agents
Affected and fixed versions
- Microsoft — AutoGen Studio (autogenstudio)
Vulnerable versions: main-branch development builds between the MCP plugin landing commit and hardening commit b047730
Fixed in: main-branch commit b047730 and later; PyPI releases (0.4.2.2 and other published packages — the MCP WebSocket route was never shipped to PyPI)
Timeline
- Precedent: CVE-2025-52882 (WebSocket authentication bypass in Claude Code IDE extensions) demonstrated unauthenticated localhost WebSocket RCE, establishing the missing-origin-validation + missing-auth pattern AutoJack reuses against AutoGen Studio's MCP socket.
- Precedent for the localhost-MCP attack class: CVE-2025-49596 (MCP Inspector drive-by localhost RCE) was disclosed, showing untrusted web content reaching a loopback MCP service — the same trust-boundary failure AutoJack later weaponizes via an AI browsing agent.
- Microsoft published companion research, 'When configuration becomes a vulnerability: Exploitable misconfigurations in AI apps', framing the class of AI-app trust-boundary and configuration flaws that AutoJack exemplifies.
- Microsoft published Defender advanced hunting queries for AutoGen Studio child processes, MCP WebSocket connections carrying server_params, and browser-automation agents reaching non-corporate domains.
- Microsoft confirmed the issue was identified and remediated before any vulnerable code shipped to a PyPI release and was not exploited in the wild.
- Only main-branch development builds between the MCP plugin landing and commit b047730 are affected; published PyPI releases (current 0.4.2.2) never included the /api/mcp/ws route and are not affected.
- Remediation merged on the AutoGen main branch (commit b047730): server-side parameter binding via POST /api/mcp/ws/connect (UUID-keyed) and removal of /api/mcp from the auth-middleware skip list.
- Proof-of-concept demonstrated host process execution via a base64 StdioServerParams payload spawning calc.exe with env pwned=true through ws://localhost:8081/api/mcp/ws/.
- The three-link chain was documented: origin-allowlist bypass (CWE-1385), missing MCP authentication (CWE-306), and command injection via the server_params query parameter (CWE-78).
- Microsoft Defender Security Research publicly disclosed the AutoJack exploit chain against AutoGen Studio in the Microsoft Security Blog.
Sources cited
- When configuration becomes a vulnerability: Exploitable misconfigurations in AI apps Microsoft · Vendor report · 2026-05-14
- CWE-1385: Missing Origin Validation in WebSockets MITRE · Research · 2026-06-18
- CWE-306: Missing Authentication for Critical Function MITRE · Research · 2026-06-18
- CWE-78: Improper Neutralization of Special Elements used in an OS Command (OS Command Injection) MITRE · Research · 2026-06-18
- CVE-2025-52882: WebSocket authentication bypass in Claude Code extensions (analogous localhost WebSocket RCE) securitylabs.datadoghq.com · Research · 2025-06-01
- Confused deputy problem en.wikipedia.org · Research · 2026-06-18
- microsoft/autogen — A programming framework for agentic AI GitHub · Code repository · 2026-06-18
- AutoJack: Single-page RCE on a host running an AI agent Microsoft · Blog · 2026-06-18
- MCP Horror Stories: The Drive-By Localhost Breach (CVE-2025-49596, MCP Inspector localhost RCE) docker.com · Blog · 2025-06-01
Previous and next in vulnerability
- usbliter8 — Unpatchable BootROM USB DMA Exploit on Apple A12/A12X/A12Z/A13 and S4/S5 Chips Bypassing Secure Boot Previous report
- Node.js June 2026 Security Release — 12 Vulnerabilities Across 22.x/24.x/26.x Including Two High-Severity TLS Authentication Bypass and WebCrypto DoS Flaws (CVE-2026-48618, CVE-2026-48933) Next report
Drafted by the Threadlinqs research pipeline from 9 sources; published ; last updated —.