
Part 8: what Agent 365 can see on your endpoints
In the previous part: Part 7 blocked a user who ran an unapproved local AI agent, using only Microsoft 365 E5 parts, and parked Microsoft’s own Agent 365 route because the lab had no licence.
Employees are installing AI agents on their laptops faster than most security teams can list them: desktop assistants, coding agents in the terminal, local model runners. Microsoft’s answer is Agent 365 and its new Shadow AI page in the Microsoft 365 admin center. This part adds an Agent 365 licence to the lab and asks a simple question: what does Agent 365 actually see on a Windows endpoint, and what does it miss? Part 9 covers what it can block.
Short version
The Shadow AI page (Frontier preview) checks for 20 desktop AI agent platforms. It detected Claude Desktop on the lab device less than an hour after a test user signed in to it, and it did that for a user with no Agent 365 licence.
Command-line agents, which run in a terminal, and IDE agents, which run inside a code editor such as VS Code or Cursor, sit on a different page: All agents > Local agents catalogues 40 more, and it picked up Claude Code, Gemini CLI and two VS Code extensions on the lab device. That is 60 agents with visibility, against six with runtime protection in Parts 1-4. Visibility is not protection.
The lab
| Item | Detail |
| Tenant | Contoso lab tenant with Microsoft 365 E5 |
| Device | Windows 11 VM, Entra joined, Intune enrolled, onboarded to Defender for Endpoint (the same device as Parts 2-7) |
| Users | Two new test users, both Microsoft 365 E5. agent-approved also has an Agent 365 licence. agent-unapproved does not. Admin account excluded from every policy. |
| Licences added for this part | One Microsoft 365 Copilot licence (needed for the Frontier programme) and one Agent 365 licence |
| Preview programme | Copilot Frontier, scoped to the admin account only |
Turn on Frontier for one admin, not the whole tenant
Shadow AI is a Frontier preview. Frontier needs at least one Microsoft 365 Copilot licence in the tenant, and it is switched on in the Microsoft 365 admin center under Copilot > Settings > Copilot Frontier. The pane is now titled Release preferences.
Lessons learned: Frontier defaults to All users
When you switch Turn on Frontier to On, the scope defaults to All users, who then receive Frontier features and agents automatically. Select Specific users and groups before you save. In a shared or production tenant that is the difference between one admin testing a preview and everyone getting it.

Within an hour, a new Shadow AI item appeared under Agents in the admin center navigation.
The Shadow AI page: 20 desktop agents, zero detected
Agents > Shadow AI lists the AI agent platforms Microsoft can detect on managed Windows devices, with a status, publisher, instance count and last-detected date for each. Before any test user touched an agent, all 20 showed Not detected.

The 20 platforms on the list in December 2026:
| Publisher | Platforms |
| Anthropic | Claude Desktop |
| OpenAI | ChatGPT Desktop, ChatGPT Classic, Codex Desktop |
| Antigravity Desktop | |
| Local model runners | Ollama Desktop, LM Studio, LM Studio Bionic |
| Agent frameworks | OpenClaw, ZeroClaw, QClaw (Tencent), Nanobot, Goose Desktop, Hermes Agent |
| Other | Devin Desktop, Perplexity Desktop, Poe Desktop, Grok Bot, Qwen Studio, CoCo Desktop (Snowflake) |
Compare that with Part 1. Runtime protection, the feature that inspects prompts and blocks injection, covers six agents. Shadow AI can see 20. Visibility has more than tripled. Protection has not changed.
A banner on the page reads “Unlock more control over shadow AI with Agent 365”. Detection works with Frontier alone. The banner disappeared once the Agent 365 licence was assigned.
What the Agent 365 licence adds
The standalone Agent 365 licence is assigned per user, like any other Microsoft 365 licence. Assigning it to one user unlocked the Agents at risk card on Agents > Overview straight away. No separate terms of service prompt appeared.

The licence bundles 14 service plans. Three matter for this series:
- Defender For AI
- Entra Conditional Access for Agents
- Entra ID Protection for Agents
The rest extend Purview (audit, communication compliance, Compliance Manager, data lifecycle management, data loss prevention, information protection, insider risk management, eDiscovery) and Entra (ID Governance and network controls for assistive agents) to agents. Part 9 tests the three above.

Run a desktop agent as an unlicensed user
The test user without an Agent 365 licence, agent-unapproved, signed in to the lab device and opened Claude Desktop. Within an hour Shadow AI showed Claude Desktop: Detected, 1 instance.

Two things stand out. First, the user had no Agent 365 licence, so detection is a tenant and device capability, not a per-user one. Second, detection relies on Defender for Endpoint. Microsoft’s documentation describes the Last Seen field as the last time Defender detected the agent on the device, so a device that is not onboarded to Defender is invisible to Shadow AI.
Lessons learned: The count arrives before the detail
When the list first showed one instance, the agent’s Instances tab still said No instances found. The headline count and the per-device detail update separately. Give it time before concluding a detection has no device or user attached.
Selecting the agent opens a detail pane with four tabs: Details (first used, last detected), Instances (the user, agent and device combination), Access and Activity. The Access tab is where blocking lives, which is Part 9.
Command-line agents live on a different page
Every platform on the Shadow AI list is a desktop app or a local model runner. Claude Code, Gemini CLI and GitHub Copilot CLI are not on it. They are not missing, though. They sit under Agents > All agents > Local agents, a tab next to the registry that catalogues 40 command-line and IDE agents: Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI, Cursor, Windsurf, Kiro, Cline, Roo Code and the VS Code extensions for several of them.
In plain terms
An IDE (integrated development environment) is the code editor a developer works in, such as VS Code, Cursor or Windsurf. IDE agents are AI coding assistants built into those editors or added as extensions, such as GitHub Copilot or the Claude Code extension for VS Code. They read and change code in the project the developer has open, the same way a command-line agent does from a terminal.

Lessons learned: Two pages, two catalogues
Shadow AI covers 20 desktop platforms. Local agents covers 40 CLI and IDE agents. Neither page links to the other, and Claude Desktop appears only on the first while Claude Code appears only on the second. Check both before you tell anyone what Agent 365 found.
Defender saw the CLI agents too, and faster. When agent-unapproved launched Gemini CLI from PowerShell, the Part 7 near-real-time custom detection, which matches node.exe running a known agent CLI, raised a High alert within a minute and marked the user as compromised. Agent 365 reported the same agent later, as an inventory entry with no alert.

In plain terms
Agent 365 gives you an inventory: which agents are on which devices. Defender gives you events and alerts: which processes ran, when, and what they did. A developer working entirely in the terminal shows up on the Local agents tab, not on the Shadow AI page, and only Defender raises an alert about it.
Sign-ins Microsoft never sees
Gemini CLI first offered a Google sign-in. Google authenticated the account, then refused it: personal accounts are “no longer supported for Gemini Code Assist for individuals”, and the message pointed to Google’s Antigravity suite instead. Antigravity Desktop is one of the 20 platforms on the Shadow AI list, so the vendor is moving users from a tool Shadow AI cannot see to one it can.
The alternative route is an API key from Google AI Studio, pasted into an environment variable.

Neither the Google sign-in nor the API key passes through Microsoft Entra. Claude Desktop and Claude Code sign in to Anthropic in the same way. That matters for Part 9: Conditional Access can only evaluate sign-ins it sees.
Licensed v unlicensed user
Both test users ran agents on the same device: agent-approved, with an Agent 365 licence, ran Claude Code; agent-unapproved, without one, ran Claude Desktop, Claude Code and Gemini CLI.
| Where | Licensed user | Unlicensed user |
| Shadow AI and Local agents | Agent counted | Agents counted. The pages show agents and instance counts, not which user is licensed. |
| Agents at risk | 0 | 0 |
| Defender AgentsInfo, EntraAgentID column | Populated for Claude Code | Populated for Claude Desktop and Gemini CLI, empty for Claude Code |
There is no consistent licence effect on what Agent 365 or Defender can see. Endpoint discovery is a tenant and device capability. The per-user licence matters for what you can do with an agent identity, which is Part 9.
Where the documentation is behind
Microsoft’s Shadow AI article was last updated on 23 October 2026. The lab tenant on 4 December 2026 already differs from it:
| Topic | Learn (23 Oct 2026) | Lab (4 Dec 2026) |
| Platforms | Seven agents for detection, OpenClaw only for blocking | 20 desktop platforms on Shadow AI plus 40 CLI and IDE agents on Local agents; Claude Desktop and Claude Code both offer a block |
| Blocking | Creates an Intune policy named A365 - Block OpenClaw for all managed Windows devices | App Control for Business policy, scoped to Entra device groups, behind a readiness check (Part 9) |
| Licence to view | Microsoft 365 E5 | Worked with E5 and Frontier; no Agent 365 licence needed for detection |
This is a preview, and these differences will move. Check the tenant, not the article.
What worked, what didn’t
| Test | Result |
| Frontier scoped to one admin | Worked. Shadow AI appeared within the hour. |
| Baseline Shadow AI | 20 platforms, 0 detected |
| Claude Desktop as an unlicensed user | Detected in under an hour |
| Instance detail | Lagged behind the count |
| Licensed v unlicensed user | No difference in what was detected |
| Gemini CLI and Claude Code | Not on the Shadow AI page; detected under All agents > Local agents. Defender (Part 7 detection) alerted on Gemini CLI within a minute. |
| Agent 365 licence | Unlocked Agents at risk immediately; no terms prompt |
Before you use this in production
- Shadow AI is a Frontier preview. Behaviour, the platform list and blocking will change.
- Scope Frontier to named admins first. The default is everyone.
- Detection needs Defender for Endpoint on the device and Intune enrolment. Unmanaged and personal devices are out of scope.
- Global Secure Access adds traffic metadata (endpoints, requests, data sent) to the detail pane. Without it several tiles stay empty.
- Check both Shadow AI and All agents > Local agents. Neither alerts, so keep a Defender detection for CLI agents, such as the Part 7 rules, if you need to act quickly.
- Knowing which employee runs which AI tool is personal data. Agree the purpose with HR and your data protection officer before you start acting on it.
Licensing
| Capability | What it needed in this lab |
| Copilot Frontier | At least one Microsoft 365 Copilot licence in the tenant |
| Shadow AI detection | Frontier, Microsoft 365 E5 (Defender for Endpoint, Intune) |
| Agents at risk, Agent 365 service plans | Agent 365 licence (per user), or Microsoft 365 E7 |
| Defender detection of CLI agents | Defender for Endpoint Plan 2 (in E5) and a custom detection |
Next in the series
Part 9 is the final part of this series: can Agent 365 actually stop the agent it just found? It tests the App Control block on the Shadow AI page, Conditional Access for agents, Entra Agent ID and agent risk, and compares Microsoft’s route with the E5 route from Part 7.
The detections used in this part are in the defender-ai-agent-runtime-protection repo on GitHub.