Skip to content

Microsoft Defender now blocks malicious AI-agent instructions in real time

· by

The short version

Microsoft's Agent 365 passed 50 million registered agents since its May 2026 launch, and at Ignite 2026 the company shipped real-time instruction blocking for Claude Code and ChatGPT Desktop plus a preview identity rollout covering 11 rival agent platforms, completing in December.

Microsoft Defender now blocks malicious AI-agent instructions in real time

Microsoft Defender can now stop a hijacked AI coding agent mid-action on Windows, and the agents it watches are not limited to Microsoft's own: Claude Code, GitHub Copilot CLI, OpenClaw, and ChatGPT Desktop all ship with the same inline protection, per Microsoft's Agent 365 Ignite 2026 post.

What

Microsoft's Agent 365 control plane reached general availability on May 1, 2026, priced at $15 per user per month or bundled into Microsoft 365 E7, per Microsoft's own announcement. At Ignite 2026 in San Francisco, Microsoft said organizations have since registered more than 50 million agents in the system, and used the milestone to push the product well past agents it built itself.

Two changes landed as general availability rather than preview. Microsoft Defender's runtime protection for local agents now inspects what Microsoft calls "critical points in the agent loop" on Windows and can block a malicious instruction before the agent acts on it, with alerts routed into a security team's incident queue. Supported agents named in the post include Claude Code, GitHub Copilot CLI, OpenClaw, and ChatGPT Desktop. Separately, local agent discovery inside Defender went GA, so IT teams can see which of those agents are already running on managed devices without a separate rollout.

Everything else that shipped at Ignite stayed in preview. Agent 365's "connected platforms" feature started automatically issuing a Microsoft Entra Agent ID to agents built on outside platforms once an organization connects them, with support rolling out across Amazon Bedrock, Google Vertex AI, Salesforce Agentforce, Databricks, Snowflake, Anthropic's Claude Managed Agents, OpenAI, Oracle, SAP, ServiceNow, and UiPath, and Microsoft says that rollout completes in December. A guided setup wizard and a secretless-authentication option for those connections also entered preview, alongside dynamic agent-risk scoring, multi-tenant agent management, and a Defender security-posture check for agents built on Bedrock, Google Gemini, Vertex AI, and Anthropic Claude.

Microsoft also expanded how it finds agents it was not told about. Defender and Microsoft Entra Global Secure Access can now discover more than 60 kinds of local AI agents, including Claude Code and GitHub Copilot CLI, along with the MCP servers those agents connect to, feeding all of it into the Agent 365 registry even when an employee installed the agent without IT's approval. That local-discovery piece inside Defender is GA; network-level discovery through Global Secure Access and shadow-AI discovery inside the registry itself remain in preview. Microsoft Purview, the company's data-governance product, also picked up new controls in preview for scoping which local agents can touch sensitive files.

Microsoft's control plane now reaches agents it did not build

For an IT team running Windows and Microsoft 365 E7, the practical change is that Defender's inline blocking does not care which company shipped the agent. A compromised Claude Code session or a ChatGPT Desktop task that gets prompt-injected into exfiltrating data can be interrupted by Microsoft's own security stack before the action completes, the same way it already works for Microsoft's agents. That is a meaningfully different capability than a dashboard: it is Microsoft sitting inside the execution path of a competitor's product.

The Entra Agent ID rollout extends the same logic to identity, once the preview finishes. Once an organization connects Salesforce Agentforce, Databricks Genie, or Anthropic's managed agents to Agent 365, those agents start carrying a Microsoft-issued identity that can be governed with Conditional Access policies, the same mechanism Microsoft uses to manage human employee accounts. If an operator is on Windows and Microsoft 365 E7 and runs Claude Code, GitHub Copilot CLI, OpenClaw, or ChatGPT Desktop, Defender is already inline for those four agents today, so plan around Microsoft's runtime policy now, not just the agent vendor's. Everyone else, including agents on Bedrock, Vertex AI, and Agentforce, only gets Entra identity coverage once the connected-platforms preview finishes in December, and Defender's risk scoring for those platforms is still preview-only.

Context and reactions

Microsoft first showed Agent 365 in preview at Ignite 2025, under its Business Apps and Agents president Charles Lamanna, who described it then as letting IT "track every agent being used, built, or brought into the organization, eliminating blind spots and reducing risk," per Computerworld's reporting on that launch. Gartner analyst Alastair Woolcock told Computerworld at the time that assigning agents their own identities meant Microsoft was "hiring agents into the org chart," and predicted other vendors would face pressure to integrate with that governance layer or risk having their agents treated as shadow IT. Six months after general availability and a second Ignite expansion, that prediction looks closer to the product Microsoft actually shipped: a security layer that already blocks malicious instructions on four non-Microsoft local agents today, and is working through a preview that will extend Entra identity and risk scoring to agents from Anthropic, OpenAI, Google, Salesforce, and seven other platforms by December, rather than covering Microsoft's own agents alone.

What to watch next

The connected-platforms identity rollout is scheduled to finish across all 11 listed platforms in December, and whether Anthropic or OpenAI publish their own documentation on how their managed agents appear inside a customer's Entra tenant will show how much input those vendors had in the integration. Dynamic agent-risk scoring and multi-tenant agent management remain in preview with no stated general-availability date.

Sources