PRACTITIONER ARTICLE / Security
Can the Defender XDR Story Seeder Demonstrate AI Agent Risk?
What seeded Defender XDR incidents can show in a demo, how Defender assesses AI agent risk, and what I would verify in an Agent 365 MCP gateway test.
By Phil Kinsley
I built the Defender XDR Story Seeder because an empty Defender portal is a poor place to teach incident investigation. Seeded alerts gave me an incident queue to work through and evidence to discuss. I wanted to see how far the same approach would take me with AI agents.
I could create agent identities, add registry entries and write incidents around them. That gave me a way to walk through an agent incident in Defender. Demonstrating how Defender assesses the agent itself would require evidence the service could evaluate.
What the incident seeder could show
The seeder uses the Microsoft Graph beta manual-alert API. Its first alert creates an incident, then subsequent alerts use the returned incident ID in linkToIncident. That lets me put 10 to 12 related alerts in one incident and populate the graph with identities, fictional endpoints and other evidence. Microsoft’s manual alert API documentation
I used that same approach to tell stories about directory discovery, unexpected mailbox changes and an agent reaching an unrelated workspace. Those manual records gave me something to open in the portal. For a detection exercise, I would need the underlying identity, resource or tool activity and evidence that Defender associated it with the agent. An agent’s name in the alert description alone gives me no basis for making that claim.
What I saw in the agent inventory
My first assumption was that an agent would be another directory object I could associate with an alert. The experiment involved an Entra blueprint and its principal, individual agent identities, permissions and separate Agent Registry records. I had to track those objects individually. Some entries appeared in one portal before another, and some Defender cards stayed visible after I deleted the corresponding records elsewhere. I would check the underlying object by ID before treating the card as evidence that it still existed. Microsoft’s agent identity blueprint guidance
I configured three profiles, from read-only lookup to a workflow with broader search and mailbox permissions, up to a profile with simulated send, update and delete operations. I supplied tool metadata, but the lab had no active runtime making calls through the Agent 365 Tooling Gateway. In the views I checked, the agents showed no associated Model Context Protocol (MCP) servers or active risk indicators.
Microsoft distinguishes Not evaluated, which means Defender lacked enough information to assess the agent, from No known risk, which means it assessed the agent and found no active indicators. Defender can use configuration, access, tools, runtime activity and alerts where the platform and available data support them. The portal results alone didn’t tell me which inputs Defender had assessed in my lab. Microsoft’s AI agent posture risk documentation
How I would test the MCP path next
My proposed Azure design, which I called Pulse, would host one HTTPS MCP service with read-only, workflow and simulated write profiles. A scheduled job would make small calls against synthetic data, with simulated writes confined to disposable lab state. The original incident seeder writes manual alerts to Microsoft 365 without Azure hosting. Pulse would need an Azure subscription for the service, scheduled runtime and logging.
I would first prove one call through a supported client. Microsoft’s preview workflow requires registering the custom MCP server, securing administrator approval and completing the required consent before a supported client can use it. Whether my proposed scheduled runtime could invoke the approved server through the gateway was still an open question when I paused the work. Microsoft’s guidance for bringing your own MCP server
For that first call I would record the agent identity, tool name and time. I would compare the runtime log with the sign-in evidence and look for the corresponding ExecuteToolByGateway event in Defender’s CloudAppEvents table. That gives me something I can verify before expanding the experiment. A successful call would establish that I can observe the invocation. The risk rating would still depend on which indicators Defender can evaluate for that agent. Microsoft’s gateway monitoring example
I would also record the IDs of the Azure resources, role assignments, agent identities and registrations so I can verify what cleanup removed. The seeded Defender records have a different lifecycle. The original seeder’s cleanup resolves alerts and closes eligible incidents, so their history remains.
Where I left it
I paused the agent and MCP work when my day job needed the time. If I return to it, I’ll start with one approved tool call and check whether I can trace it from the agent through the gateway to a record in Defender.
For an incident-response demo, I’d still use Story Seeder v0.1.0-beta in an authorized lab tenant and start with a small run. It gives you a queue, related manual alerts and an attack story to work through with the audience. Defender XDR Story Seeder v0.1.0-beta package
Primary source
Microsoft: AI agent posture risk in Defender ↗Further sources
Microsoft’s manual alert API documentation ↗
Continue reading
Demoing Defender XDR When Your Tenant Has No Alerts ↗
Your Conditional Access Policies Might Not Protect Your AI Agents ↗
You’ve Secured Your AI Agents. But Can You Trust Their MCP Servers? ↗