惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
爱范儿
爱范儿
The Cloudflare Blog
Y
Y Combinator Blog
B
Blog RSS Feed
Stack Overflow Blog
Stack Overflow Blog
博客园 - 叶小钗
G
Google Developers Blog
J
Java Code Geeks
P
Proofpoint News Feed
美团技术团队
Engineering at Meta
Engineering at Meta
腾讯CDC
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
有赞技术团队
有赞技术团队
L
LangChain Blog
N
Netflix TechBlog - Medium
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 【当耐特】

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
The Web Page Couldn't Reach Localhost. Your Agent Carried...
Neeraj Kumar Singh Beshane · 2026-06-25 · via DEV Community

You already do the hard part of this. You authenticate your production APIs. You treat anything from the public internet as hostile until proven otherwise. And after a year of prompt-injection write-ups, you already assume an agent can be steered by the text it reads.

There is one spot almost everyone exempts from those rules: localhost. The service bound to loopback gets a pass, because for twenty years "it only listens on localhost" meant "an outsider cannot reach it." Microsoft's AutoJack research, published June 18, is the moment that exemption stops being safe. Not because the rules changed, but because your agent quietly moved localhost onto the public internet. This is not a new threat model to learn. It is the one you already run, extended by one step to a place you used to be able to skip.

New here? Securing the Agentic Stack is a weekly operator read on where AI and security collide, mapped to one stable six-layer model. Start with the foundation: the six-layer spine in Issue 001.

What Microsoft actually found

AutoJack chained three weaknesses in a development build of AutoGen Studio's MCP WebSocket surface. Strip it to the bone and it is three trusted assumptions failing in a row.

First, an origin allowlist trusted localhost. That holds when a human browser visits an attacker page. It collapses when an agent's headless browser runs on your workstation and carries local reach with it. Second, the MCP WebSocket path skipped the app's auth middleware, expecting a check that was never there. Third, the WebSocket took command parameters straight from the URL and handed them to the process that spawns MCP servers. "Start an MCP server" quietly became "start the attacker's command."

Microsoft is clear on the limits: the affected route never shipped in the PyPI release, and the branch was hardened before disclosure. So the specific bug is contained. The shape of it is not.

Why this matters to you, not to AutoGen

This is a confused-deputy attack, and you already know that shape from prompt injection. The twist is which deputy got confused. Not the model this time, but the runtime around it. The attacker never touched your machine. They wrote a page. Your agent fetched it, rendered it beside a privileged local service, and the assumption you never bothered to test fell over: "it only listens on localhost" stopped meaning "an outsider cannot reach it."

Now point that same lens at your own stack. MCP servers, browser bridges, IDE helpers, file tools, shell runners, credential brokers. You would never expose any of them to the public internet without auth. Most of them are exposed to it right now, through the agent, and you have not noticed because they still bind to loopback. The agent is the part that made loopback reachable. Nothing else changed.

Where it sits on the stack

This is a Tool-layer failure, the layer where the model stops talking and starts touching reality. AutoJack proves the Tool layer is not just the tool. It is the glue around it: the local WebSocket, the skipped auth check, the parameter parser, the process launcher. If content your agent reads can reach that glue, your tool boundary is decoration.

We put agent forensics on the Audit layer in Issue 005, and moving authority out of the agent's loop on the Tool layer in Issue 006. AutoJack is the failure before either matters: local authority was reachable by a web page because the agent walked it across the line. Anthropic's "Zero Trust for AI Agents" says the same thing from the other side. Treat every caller as untrusted, including the loopback one you have never once authenticated.

What to do this week

None of these are new controls. They are the controls you already apply to anything internet-facing, now pointed at the localhost you used to skip.

  1. Inventory every local service an agent can reach. MCP servers, browser bridges, localhost dashboards, IDE endpoints, shell helpers. If it binds to loopback, it is in scope. You keep this inventory for prod already. This is the row you left blank.
  2. Require auth on local control planes. "Only localhost can call this" is not authentication, and you already know that for every other surface. Treat local WebSockets and HTTP routes like production APIs, because today they are.
  3. Kill URL-controlled process launch. A tool runner starts from a fixed, reviewed registry of commands. A user-supplied parameter must never become the executable. Same input-validation rule you enforce everywhere else.
  4. Split browsing from execution. The process rendering untrusted pages should have no direct path to the process that can spawn tools. The privilege separation you would design for any service that handles hostile input.
  5. Log the boundary crossing. When an agent-driven browser context touches a local service, that belongs in your audit trail. You log auth events everywhere else. Add this one.

The pattern to carry

The cheap version of agent security is "sandbox the model." AutoJack is the reminder that the model was never the dangerous part. The dangerous part is the boring connector that assumed every caller was a friend. SafeBreach's Gemini work this month rhymes with it: an assistant processing untrusted content became the path across a boundary nobody was watching.

So here is your one question for the week. After your agent finishes browsing, what can it still reach? Go find out before someone else writes the page that asks for you.

  • Neeraj

Go deeper