Edit

Discover AI agents and assess security posture using Microsoft Defender (Preview)

After you onboard to Microsoft Agent 365, you can discover all of the AI agents in your organization and view their configuration details using Advanced Hunting in the Microsoft Defender portal.

Microsoft Defender also provides a dedicated AI agent inventory experience in the Defender portal for agent discovery and posture management, including agent details, posture insights, risk factors, and security recommendations, where supported. This inventory is currently available for agents built with Microsoft Copilot Studio, Microsoft Foundry, AWS Bedrock, and GCP Vertex AI. To use the inventory, you need to enable the required features.

This article explains how to discover AI agents, assess their security posture, and use the AI agent inventory in the Microsoft Defender portal.

View all Agent 365-managed agents and configuration details using Advanced Hunting

The AIAgentsInfo table in Advanced Hunting provides a complete inventory of your Agent 365 agents along with their security-relevant properties. This table enables you to:

  • Discover AI agents registered in your Agent 365 environment.
  • Assess security posture and risks by querying authentication, access control, tools, knowledge sources, and orchestration settings.

Note

The AIAgentsInfo table provides an extended set of properties for Copilot Studio agents.

To view all of your Agent 365-managed agents and their configuration details:

  1. Open the Microsoft Defender portal

  2. Select Investigation & response > Hunting > Advanced hunting.

  3. Query the AIAgentsInfo table.

    To manage security posture, use the prebuilt queries that Microsoft provides and maintains for AI agents. To access these queries, select the Queries tab, then select AI Agents. For more information, see Sample queries.

    Create your own queries using Kusto Query Language (KQL). For example, run this query to get a list of all AI agents registered with Microsoft Agent 365, along with their key security information:

    AIAgentsInfo
    | summarize arg_max(Timestamp, *) by AIAgentId
    | where RegistrySource == "A365"
    | where AgentStatus != "Deleted"
    

    The results show you all of the AI agents in your organization that are registered with Microsoft Agent 365, along with their configuration settings.

    Screenshot of Advanced Hunting in Microsoft Defender showing a KQL query editor, Run query button, and agent results table.

    Important

    The AIAgentsInfo table stores multiple snapshots of each agent over time. Use arg_max(Timestamp, *) to get the latest state of each agent. For more information about the arg_max() aggregation function, see arg_max() function.

    For more information about Advanced Hunting, see Proactively hunt for threats with Advanced Hunting in Microsoft Defender.

Discover and manage security posture of supported AI agents using the AI agent inventory UI

The AI agent inventory page in the Defender portal provides a centralized view of all agents you build with Microsoft Copilot Studio, Microsoft Foundry, AWS Bedrock, and GCP Vertex AI, along with their key attributes and security status.

For Microsoft Foundry agents, Microsoft Defender also surfaces security posture recommendations. For a complete list of AI security posture recommendations that can apply to Microsoft Foundry workloads, see AI security recommendations.

  1. Enable the required features for AI agent inventory:

  2. Sign in to the Microsoft Defender portal.

  3. In the left navigation pane, select Assets > AI Agents.

    A list of all detected AI agents appears.

    Screenshot that shows the AI agent inventory in the Defender portal.

  4. Select Microsoft Foundry, Copilot Studio, AWS Bedrock, or GCP Vertex AI to see a filtered list of AI agents based on the tool used to create the agent.

  5. To see detailed information about an AI agent, select the agent from the list. This opens the Agent pane, which provides detailed information about the selected agent. The information displayed varies based on whether the agent was created in Microsoft Copilot Studio, Microsoft Foundry, AWS Bedrock, or GCP Vertex AI.

    Screenshot of the AI agent inventory in the Defender portal showing agent list, filters, and detailed information for a selected Microsoft Foundry agent.

    Note

    For Microsoft Copilot Studio agents, the AI agent inventory currently supports agent discovery, but not security posture management. To manage security posture for Copilot Studio agents, use Advanced Hunting.

    • Select Open agent page to open the AI Agent page.

      Screenshot that shows the details for Microsoft Foundry AI agents in the Defender portal.

    • Select Go hunt to run Advanced Hunting queries.

    • Select View on map to see the agent's location and related attack paths.

Next steps