0:02What if your next Sev 1 security incident isn't a compromised user, but instead an autonomous agent, chaining actions across systems you didn't even know it could reach? In the agentic era, SOC teams aren't just defending endpoints or identities. They're defending a machine-speed execution layer that collapses boundaries and turns small gaps into full attack paths. When agents act on their own while logged in as a user, on-behalf-of activity becomes user impersonation. They can access and interact with Teams, email,
0:34other internal apps, and your users' devices. This blurs the lines between human and agent activity. So how do you gain visibility into these activities and stay in control? It starts with the fundamentals of agent defense, knowing what's running, controlling what it can access, and seeing what it's doing in real time. Agent 365 brings all these defense areas together through a unified control plane. The Microsoft 365 admin center provides centralized inventory and governance of agents and tools.
1:04Entra establishes strong identity with least-privilege access and clear ownership. Defender delivers runtime protection and deep observability with end-to-end activity tracing and detection. And Purview enforces data protection and posture by monitoring how agents interact with sensitive information. Together, these capabilities create a shared, consistent view so security and IT can manage agent risk as one system, not in silos. Today, in the second episode of this series, we build on that foundation
1:35and dive deeper from the SOC perspective in Microsoft Defender, showing how unified agent visibility enables faster detection, stronger investigations, and coordinated response with IT before agent-driven risk escalates. Starting off as an IT admin in the Microsoft 365 admin center, I can see agents which have risks associated with them. The agent risks tab in the registry has identified several agents that need my attention based on security risk signals surfaced here. And drilling into any of these agents
2:06exposes the security & compliance page, where the IT admin will see only unresolved alerts with high and critical severity from Defender. Switching perspectives, as a SOC analyst on the Zava security team, the Microsoft Defender portal is my go-to-solution for threat protection, including posture management and investigations. I also need detailed security information for the agents that run in our environment. I can view the same agent within Defender with a security lens with related incidents and alerts. I mentioned before that an IT admin can see the big picture
2:38and even view unresolved alerts from critical incidents within their experience, but as a SOC analyst, I need the granular details to dig deeper into the incident. I can see all the lower priority and resolved incidents that provide more context on the activity of this agent. Microsoft Defender continuously monitors AI agent activity in real time. It can block malicious tool invocation attempts as they happen, and alert security teams that there have been attempts to jailbreak AI agents. Let's click into the critical incident to investigate further.
3:09In the details, I can see that this has been identified as a collection incident involving one user. It also includes the information that our SOC team needs. I can look at the incident description to see that the agent is connected to a tool that sends emails, which was blocked, thankfully. Let's open the incident page to investigate further. Now we can see a detailed explanation of what happened, who was involved, and additional context. Alerts related to the agent are combined into a more detailed incident view, including persistent jailbreak attempts
3:39on a Copilot Studio agent and an AI agent tool invocation by the same user, which was blocked by Microsoft Defender. The alert also provides recommended actions to remediate it. It shows all events related to our user, Griffin, where the agent tried to invoke the same email tool multiple times within a short period, each with details on the date, time, and the user's IP address. Optionally, we could investigate the user further using advanced hunting to view additional activity across a longer period. That said, for this incident, I have enough information
4:11to suspect that it's potentially stolen credentials and is carrying out suspicious activity. I can then click on the user to view their details and confirm that they have been compromised. Defender can automatically trigger our Entra conditional access policy to revoke Griffin's access and require them to reset their password. This would now show that their account has been compromised and let us resolve the incident without further impact. And I can also prevent future incidents with this agent. For that, I'll use advanced hunting to get more information and context. I'll click on the agent within the incident graph
4:41to find out more about the purpose of the agent, its number of associated incidents and alerts, as well as other tools it's connected to. Running this query gives me the most up-to-date information about this agent. I can see detailed attributes like the agent's name and creation date, who last modified it, and when. It also shows its action triggers, which actually invokes the agent to run, and any connected or child agents it interacts with. Now, tying this back to our earlier attack, we saw that Defender's real-time protection blocked a tool invocation for the tool that sends emails.
5:13That's already good news, but as the investigator, I want to know what else this agent can do and how risky it is. I'll open Agent Tool Details and I can see that, in addition to sending emails, this agent also has access to an MCP server as a knowledge source. MCP servers often expose a broad set of actions. These are mostly used for read access, but sometimes write access too. Often, as a workaround for future permissions issues, developers or makers give write access even in cases where the agent only needs read access. That's what we call overpermissioning,
5:45and it goes against the principle of least privilege. In turn, it introduces a lot more risk if the agent is ever compromised. But I don't want to stop with just one agent. Let's find out if other agents in my organization are exposing risks related to overpermissioning. Here, I have a collection of pre-built queries designed specifically for AI agents, making it easy to spot misconfigurations, excessive permissions, and other risky setups across my environment. This specific template gives me a view into agents with MCP tools configured using the maker's credentials.
6:16That's not good. With these permissions, the MCP server tools can be accessed using the standing permissions of the agent maker. This can lead to privilege escalation and data exposure. The advanced hunting results show that multiple agents have access to MCP servers with maker privileges, which put them at high risk. Now we have the information we need to notify each creator that changes are necessary to scope their agent's permissions so that they can be used safely. From there, our Microsoft 365 administrator can prevent the current agents from being used
6:47until new versions are ready. To do that, as the IT admin, I'm signed into the Microsoft 365 admin center, and in the Agent Registry. There's our Customer Billing Agent, and I'll click into its details. I can take action from here and block it from being used, then confirm. That's going to remove it from the Agent Store for new users, and prevent current users from accessing it. Then, once a newer, safer version of the agent is ready, the maker can resubmit it for publishing approval. With Agent 365 using Microsoft Defender, you can strengthen agent security posture
7:19and protect against threats. This helps you proactively identify and mitigate risks before attacks occur. To learn more, check out aka.ms/Agent365SecOps. And in the next episode of this series, we'll explore Agent 365 with Microsoft Entra to prevent agent sprawl, unclear ownership, and weak lifecycle management. Keep watching Microsoft Mechanics for the latest AI and security updates. Thanks for watching.