AJ ZAFAR

Architecting intelligence. Delivering impact.

Security4 min read

Defender adds runtime protection and threat detection for Agent 365 agents

Microsoft Defender now detects attacks on Agent 365 agents (preview) and blocks risky tool calls to Work IQ and custom MCP servers in real time (GA). Here is what it means.

The Create rule wizard in the Microsoft Defender portal showing the detection types dropdown for a real-time protection rule.

On 27 July 2026 Microsoft announced two new Defender capabilities aimed squarely at AI agents running through Microsoft Agent 365. One is about seeing attacks (threat detection, in public preview). The other is about stopping them while the agent is running (real-time protection for Agent 365 tooling servers, generally available).

I have been waiting for this one. Most of the agent security conversations I have with customers stop at “who can build an agent” and “what data can it reach”. Very few get to “what happens when someone feeds the agent a poisoned document at 3am”. This is Microsoft’s answer to that last question.

What was announced

Threat detection for Agent 365 agents (public preview). Defender analyses runtime signals from agent interactions, tool use and execution patterns, and raises alerts in the Defender portal. It covers cloud agents that emit observability logs to Agent 365, which today means:

  • Microsoft Copilot Studio
  • Microsoft Foundry
  • Microsoft 365 Copilot Agent Builder
  • Agents integrated through the Microsoft Agent 365 SDK

The detections Microsoft lists include indirect prompt injection (XPIA), evasion techniques, malicious content propagation, secret leakage, LLM reconnaissance and access from suspicious or anonymised IP addresses. Alerts land in the normal Defender XDR experience, so analysts can use Advanced Hunting and the usual investigation flow.

Real-time protection for Work IQ and custom MCP servers (GA). When an agent calls a registered tool or receives a tool response, Defender evaluates that interaction against your policies and decides inline whether to allow or block it. Microsoft says this currently guards against evasion techniques, malicious content propagation, secret leakage and communication with untrusted email domains.

The Real-time protection page in the Microsoft Defender portal listing rules with their status, type and scope.
Real-time protection rules live in the Defender portal, under the Security for AI workload.Edit: screenshot updated to the current interface.Image: Microsoft Learn (CC BY 4.0)

Both capabilities sit in a dedicated Security for AI workload inside Defender, which brings detections, investigations and runtime policies together in one place.

What it means for organisations

The big shift is that agent security is no longer only a design time problem. Until now, most controls I put in place for agents were preventative and static: DLP policies, connector restrictions, environment strategy, who gets maker rights. Those still matter. But an agent that reads email, browses SharePoint and calls an MCP server is exposed to content you do not control, and that is exactly where indirect prompt injection lives.

A few practical points stand out.

The SOC now owns part of your agent estate. If alerts appear in Defender XDR, someone in security operations has to triage them. In many organisations I work with, the SOC has never heard of Copilot Studio. Get them in the room before the first alert fires, not after.

Observability is the price of entry. Threat detection only works for agents that send observability logs to Agent 365. If your makers are building in Copilot Studio or Foundry, check that those agents are actually registered and visible. An agent Defender cannot see is an agent Defender cannot protect.

Tool boundaries become an enforcement point. Real-time protection evaluates the tool call and the response. That is the right place to stop secrets leaking or an agent emailing an untrusted domain, and it means developers do not have to write their own guardrail code for every tool. It also means your MCP servers need to be registered properly as Agent 365 tooling servers to benefit.

The detection types dropdown in the Defender Create rule wizard listing options such as secret exfiltration, malicious content propagation and evasion technique.
When you create a rule you pick which detection types it should act on.Edit: screenshot updated to the current interface.Image: Microsoft Learn (CC BY 4.0)

Licensing is the open question. The announcement does not spell out pricing or which licences are needed for each capability. Before you promise anything to a steering group, read the get started guidance on Learn and confirm with your Microsoft account team what you are entitled to today.

Preview versus GA matters. Detection is preview, blocking is GA. I would happily switch on real-time protection rules in a pilot scope now, but I would treat the preview detections as a signal to learn from rather than something to build hard SLAs around.

What I would do now

For me this is a sensible step. Agents are only as safe as the content they read and the tools they call, and having the same SOC tooling watch both is the right model. It is not a replacement for good design, but it is a much better safety net than we had last month.

↑↓ navigateEnter openEsc close