Skip to navigation

Threat reportVulnerabilityTL-2026-0904

AutoJack: AutoGen Studio MCP WebSocket RCE Chain (localhost origin trust + unauthenticated /api/mcp endpoint + base64 server_params command injection)

highPATCHED

AutoJack is a remote-code-execution exploit chain in Microsoft AutoGen Studio that lets a single attacker-controlled web page, rendered by a local browsing agent, reach the privileged MCP WebSocket control plane on localhost and spawn arbitrary host processes under the developer's account.

Key facts

IdentifiersTL-2026-0904
Also known asAutoJack
SeverityHIGH
Affected productsMicrosoft AutoGen Studio (autogenstudio); Microsoft AutoGen Studio (PyPI)
Weaknesses (CWE)CWE-1385, CWE-306, CWE-78, CWE-346, CWE-77
ToolsAutoGen MultimodalWebSurfer / fetch_webpage_tool
MITRE ATT&CK techniquesT1021 Remote Services, T1027 Obfuscated Files or Information, T1059 Command and Scripting Interpreter, T1071 Application Layer Protocol, T1106 Native API, T1140 Deobfuscate/Decode Files or Information, T1185 Browser Session Hijacking, T1189 Drive-by Compromise, T1190 Exploit Public-Facing Application, T1203 Exploitation for Client Execution, T1204 User Execution, T1539 Steal Web Session Cookie and 1 more in the attack flow
MotivationUNKNOWN
Target sectorstechnology, software development, ai research, machine learning
Target regionsGlobal
Detection rules9 (1 shown free)
Sources7 cited sources

Detection coverage

As of 2026-06-22, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0904 across Splunk SPL, Microsoft KQL and Sigma, covering 16 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: AutoJack — AutoGen Studio Python Parent Spawning Unexpected Child Process (Post-Exploitation RCE Artifact)

Detects the core AutoJack RCE artifact on Windows: the AutoGen Studio control-plane process (python.exe / pythonw.exe / autogenstudio.exe) spawning an unexpected interactive child — calc.exe (Microsoft PoC), powershell.exe, cmd.exe, or CalculatorApp.exe — as a child of the control plane rather than the browser or agent sandbox. This is the highest-fidelity post-exploitation signal because legitimate AutoGen Studio rarely launches interactive shells.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1203, T1059.003, T1059.001, T1106
  • Data sources: sysmon, windows_security, microsoft_defender_endpoint
  • Severity: critical
  • Confidence: high

Splunk SPL

index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1
| eval ParentImageL=lower(ParentImage), ImageL=lower(Image)
| where (like(ParentImageL,"%\\python.exe") OR like(ParentImageL,"%\\pythonw.exe") OR like(ParentImageL,"%autogenstudio%"))
| where (like(ImageL,"%\\calc.exe") OR like(ImageL,"%\\calculatorapp.exe") OR like(ImageL,"%\\powershell.exe") OR like(ImageL,"%\\cmd.exe") OR like(ImageL,"%\\pwsh.exe") OR like(ImageL,"%\\bash.exe") OR like(ImageL,"%\\wscript.exe") OR like(ImageL,"%\\mshta.exe"))
| eval autogen_context=if(match(lower(ParentCommandLine),"autogenstudio|autogen"),"yes","no")
| stats count min(_time) as firstTime max(_time) as lastTime values(Image) as child_images values(CommandLine) as child_cmdlines by host ParentImage ParentProcessId autogen_context
| `ctime(firstTime)` | `ctime(lastTime)`
| sort - count

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ("python.exe", "pythonw.exe", "autogenstudio.exe")
    or InitiatingProcessCommandLine has "autogenstudio"
| where FileName in~ ("calc.exe", "CalculatorApp.exe", "powershell.exe", "pwsh.exe", "cmd.exe", "bash.exe", "wscript.exe", "mshta.exe")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessId, InitiatingProcessCommandLine, FileName, ProcessCommandLine
| sort by Timestamp desc

Sigma

title: AutoGen Studio Parent Spawning Unexpected Child Process (AutoJack RCE)
id: 4f1a8c2e-0904-4a02-9b11-3c7e5a1d0002
status: experimental
description: Detects the AutoJack post-exploitation artifact — an AutoGen Studio control-plane Python process spawning an unexpected interactive child (calc.exe/powershell/cmd), the signature of server_params command injection reaching stdio_client().
references:
    - https://www.microsoft.com/en-us/security/blog/2026/06/18/autojack-single-page-rce-host-running-ai-agent/
author: Threadlinqs Team
date: 2026/06/22
tags:
    - attack.execution
    - attack.t1203
    - attack.t1059.003
    - attack.t1106
logsource:
    product: windows
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith:
            - '\python.exe'
            - '\pythonw.exe'
            - '\autogenstudio.exe'
    selection_child:
        Image|endswith:
            - '\calc.exe'
            - '\CalculatorApp.exe'
            - '\powershell.exe'
            - '\cmd.exe'
            - '\bash.exe'
    condition: selection_parent and selection_child
falsepositives:
    - Developer manually launching a shell from a Python IDE/terminal subprocess
level: high

Known false positives:

  • Developers intentionally spawning a shell from a Python-based tool or notebook
  • Legitimate AutoGen agents configured to run a sanctioned local MCP/stdio server executable

Tuning notes: Allowlist sanctioned MCP/stdio server executables that AutoGen is legitimately configured to launch. Treat calc.exe/CalculatorApp.exe children of python as near-certain AutoJack PoC and escalate immediately. Add EDR enrichment to confirm the grandparent is the AutoGen Studio service.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • AutoJack — Unauthenticated MCP WebSocket /api/mcp/ws Reached on Loopback (Exploitation) · unlock with TL Creds
  • AutoJack — Base64 StdioServerParams Decode Followed by PowerShell Encoded-Command Launch (Post-Exploitation) · unlock with TL Creds
  • AutoJack — AutoGen Studio Control Plane Bound to Non-Loopback (Exposure / Lateral-Movement Enabler) · unlock with TL Creds
  • AutoJack — Malicious Page server_params WebSocket Payload (Exploitation, Sigma-primary) · unlock with TL Creds
  • AutoJack — AutoGen Studio Parent Spawning Shell on Linux (Post-Exploitation, Sigma-primary) · unlock with TL Creds
  • AutoJack — Base64 StdioServerParams Decode-to-Spawn Sequence (C2 / Deobfuscation, Sigma-primary) · unlock with TL Creds
  • AutoJack — MCP WebSocket server_params Command-Injection URL (Exploitation) · unlock with TL Creds
  • AutoJack — Browsing Agent to Untrusted Domain Preceding Local Child Process (C2 / Drive-by Chain) · unlock with TL Creds

Indicators of compromise

As of 2026-06-22, Threadlinqs Intelligence tracks 16 indicators of compromise for TL-2026-0904.

Sample indicators (1 of 16)

  • Domain: attacker[.]example

Defanged, TLP:CLEAR. Full set of 16 indicators: unlock with TL Creds.

16 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Microsoft demonstrated a proof-of-concept launching Windows Calculator. The chain was fixed on the GitHub main branch at commit b047730 (PR #7362) before shipping in a stable PyPI release.

AutoJack is a three-flaw exploit chain in AutoGen Studio (the open-source prototyping UI for Microsoft's AutoGen multi-agent framework, 59,000+ GitHub stars) that converts a single malicious web page into full remote code execution on the host running the agent. The root cause is that AutoGen Studio's MCP (Model Context Protocol) WebSocket control plane treats 'localhost' as a trust boundary, but a browsing agent (MultimodalWebSurfer, fetch_webpage_tool, or other Playwright-backed surfers) executes on the same machine — so any JavaScript the agent loads from an attacker page inherits the localhost origin identity.

The chain links three distinct weaknesses. (1) Origin allowlist bypass (CWE-1385): the WebSocket validated Origin against an allowlist of ["http://127.0.0.1", "http://localhost"], a check designed to block remote browsers but trivially satisfied by an in-host agent browser, letting attacker JavaScript open ws://localhost:8081/api/mcp/ws/ connections that pass the origin check. (2) Authentication bypass (CWE-306): the authentication middleware short-circuited any path starting with /api/ws or /api/mcp ('if request.url.path.startswith("/api/ws") or request.url.path.startswith("/api/mcp"): return await call_next(request)'), delegating credential validation to the MCP handler, which never implemented it — leaving /api/mcp/ws/* unauthenticated under every auth mode (none, github, msal, firebase). (3) Command injection (CWE-78): the WebSocket handler read a base64-encoded 'server_params' query parameter, base64-decoded it, deserialized it into StdioServerParams, and passed it to stdio_client(), with no allowlist on the spawned executable — so a payload such as {"type":"StdioServerParams","command":"calc.exe","args":[],"env":{"pwned":"true"}} (or powershell.exe -enc / bash -c) was accepted as a 'MCP server' and executed.

End-to-end attack flow: a developer runs AutoGen Studio on localhost:8081 with a browsing agent; the agent is fed an attacker-controlled URL (via direct user submission, indirect/prompt injection, or a malicious comment); MultimodalWebSurfer navigates a headless browser to the attacker page; the page's JavaScript opens ws://localhost:8081/api/mcp/ws/?server_params=<base64payload>; the origin check passes (localhost-to-localhost) and the auth check is skipped; the payload is decoded and stdio_client() spawns the attacker-specified process under the developer's account. Microsoft's PoC ('malicious_web_server.py' serving the script payload, and a Flask-wrapped 'web_summarizer_app.py' Web Content Summarizer agent) showed calc.exe spawning on the developer desktop as a child of the AutoGen Studio Python process — not the browser, not the agent sandbox.

Remediation (commit b047730, PR #7362): the WebSocket handler no longer reads server_params from the URL. A new POST /api/mcp/ws/connect endpoint stores parameters server-side in a pending_session_params map keyed by a server-generated UUID; the WebSocket handler pops the entry by session ID and refuses unknown IDs with WebSocket close code 4004. The middleware skip-list was tightened to remove /api/mcp, so MCP routes now flow through normal authentication. Microsoft states the vulnerable MCP WebSocket surface was fixed before a stable PyPI release; the standard 'pip install autogenstudio' installs 0.4.2.2, which lacks the MCP WebSocket route (autogenstudio/web/routes/mcp.py) entirely. Reporting attributes the research to Shaked Ilan of Microsoft Defender Security Research with Microsoft Threat Intelligence, coordinated via MSRC; no in-the-wild exploitation was reported. The broader lesson — 'localhost is not a trust boundary' — applies to any agent framework that exposes a privileged local control plane reachable by in-host browsing agents.

MITRE ATT&CK techniques by tactic:

Lateral Movement

T1021 Remote Services

Defense Evasion

T1027 Obfuscated Files or Information; T1140 Deobfuscate/Decode Files or Information

Execution

T1059 Command and Scripting Interpreter; T1106 Native API; T1203 Exploitation for Client Execution; T1204 User Execution

Command and Control

T1071 Application Layer Protocol

Collection

T1185 Browser Session Hijacking

Initial Access

T1189 Drive-by Compromise; T1190 Exploit Public-Facing Application

Credential Access

T1539 Steal Web Session Cookie

lateral-movement

T1550 Use Alternate Authentication Material

Remediation

Patches

  • AutoGen Studio commit b047730 (PR #7362): server-side pending_session_params keyed by UUID, POST /api/mcp/ws/connect, WebSocket close code 4004 for unknown session IDs, and removal of /api/mcp from the auth middleware skip-list.

Immediate actions

  • Update AutoGen Studio builds from GitHub main to commit b047730 (PR #7362) or later; the WebSocket handler no longer accepts server_params from the URL.
  • Verify installs: 'pip install autogenstudio' retrieves stable 0.4.2.2, which lacks the vulnerable MCP WebSocket surface entirely — confirm you are not running a pre-b047730 main-branch build.
  • Bind AutoGen Studio to loopback only and add host firewall rules blocking non-loopback traffic to port 8081.

Workarounds

  • Disable agent web-browsing tools (MultimodalWebSurfer / fetch_webpage_tool / Playwright surfers) on machines running AutoGen Studio.
  • Place AutoGen Studio behind an authenticated reverse proxy enforcing auth on ALL paths including /api/mcp/*.
  • Run browsing/code-execution agents in a separate container or VM from the AutoGen Studio control plane.

Longer-term hardening

  • Never bind a control plane to localhost without independent authentication on the WebSocket handler itself — do not rely on Origin allowlists as a trust boundary.
  • Separate the agent browsing identity from the developer identity using a different OS user, container, or VM.
  • Treat every tool parameter reachable from model output (and any content a browsing agent loads) as attacker-controlled.
  • Allowlist executable invocations for any MCP/stdio server launch; reject arbitrary command/args.
  • Run AutoGen Studio strictly as an isolated developer prototype under a low-privilege account in a sandboxed profile or container.

Affected and fixed versions

  • Microsoft — AutoGen Studio (autogenstudio)
    Vulnerable versions: GitHub main branch builds between the MCP plugin landing and commit b047730
    Fixed in: main at commit b047730 (PR #7362) and later
  • Microsoft — AutoGen Studio (PyPI)
    Fixed in: 0.4.2.2 (stable PyPI release does not include the MCP WebSocket route)

Timeline

  • Microsoft demonstrates a proof-of-concept spawning calc.exe on the developer desktop via a Web Content Summarizer agent fed an attacker URL (locked-ioc-3 + locked-ioc-4).
  • Fix lands on AutoGen main branch at commit b047730 (PR #7362): server-side pending_session_params keyed by UUID, POST /api/mcp/ws/connect, close code 4004, and /api/mcp removed from the auth skip-list.
  • Microsoft Defender Security Research (Shaked Ilan) publishes the AutoJack blog detailing the AutoGen Studio MCP WebSocket RCE chain.
  • Independent outlets (GBHackers, CyberSecurityNews, Penligent) republish technical analysis emphasizing 'localhost is not a trust boundary.'
  • The Hacker News publishes detailed coverage of the three-flaw chain and the b047730 remediation.
  • No in-the-wild exploitation reported; exposure limited to developers building AutoGen Studio from GitHub main during the pre-b047730 window.
  • Threadlinqs Intelligence ingests the threat as TL-2026-0904 (HIGH, PATCHED) for detection-engineering coverage.
  • BleepingComputer reports Microsoft fixed the AutoGen Studio flaw before any stable PyPI release; standard pip installs (0.4.2.2) unaffected.

Sources cited

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats