A developer installs an AI agent on their laptop to help clean up a repository. They give it access to the project folder, the terminal and, while they're at it, an MCP server they found on GitHub that can read email. The agent works fast and approves its own actions. Nobody in IT knows it exists, and the same folder holds the .env file with the credentials for the customer database.
That's shadow AI today, and it's no longer just someone pasting a spreadsheet into a chatbot. It now includes local AI agents that read files, run commands and connect to other systems with the same permissions as the person who installed them. At Microsoft Ignite 2026, held November 17 to 20, Microsoft announced that Defender's runtime protection for these agents is now generally available on Windows. That builds on local agent discovery, which became generally available at the end of October. For a company in Chile, there's finally a practical way to answer a basic question: which AI agents are running on our machines?
What shadow AI is and why local agents change it
Shadow AI is the use of artificial intelligence tools without the knowledge or approval of IT or security. That's how Microsoft defines it in its guide to preventing data leaks to shadow AI, where it lists three risks: leaks of sensitive information, regulatory noncompliance and reputational damage.
Until recently, the conversation was about someone copying customer data into a free chatbot. That still happens, and we covered it in our article on what a company AI use policy should say.
A local agent is a different thing. It runs on the user's computer, whether as a desktop app, a command line tool or a VS Code extension, and it can:
- read and change files in the folders it can reach;
- run commands in the terminal;
- connect to MCP (Model Context Protocol) servers that give it access to email, databases, repositories or other systems;
- in some cases, approve its own actions without asking the user.
With a chatbot, the exposure is whatever the person copies and pastes. With a local agent, the reach is the same as the user's account on that machine, which is often a lot more than anyone assumes.
What Microsoft announced and what you can use now
Microsoft Learn and the Ignite 2026 Book of News make it possible to separate what's available from what's still in preview:
| Capability | Status | What it does |
|---|---|---|
| Local agent discovery in Defender for Endpoint | Available (Windows and macOS) | Inventories agents such as Claude Code, GitHub Copilot CLI, Cursor or ChatGPT Desktop, plus the MCP servers they have configured |
| Runtime protection for local agents | Available on Windows | Detects hidden malicious instructions (prompt injection) and can audit or block the action before it happens |
| Generative AI app discovery in Defender for Cloud Apps | Available | Shows which cloud AI services the organization uses, with a risk score, and lets you mark them as unsanctioned |
| Network-level discovery with Entra Global Secure Access | Preview | Adds visibility into the destinations, MCP servers and resources agents connect to |
| Purview DLP for Copilot prompts and local agents | Preview announced for January | Aims to stop sensitive data from leaving through AI |
According to Microsoft, Defender and Global Secure Access already recognize more than 60 local agents. The full list is in the Defender for Endpoint support matrix.
Microsoft's own example of runtime protection is easy to picture. A coding agent reads a project's documentation on a web page. The page contains hidden text telling the agent to read the .env file and post it to an external URL. Defender detects the injection in the response and blocks the action before the data leaves the device (Microsoft Learn).
Which licenses you need
Check this before you get excited. According to the local agent discovery documentation:
- The minimum license to discover local agents and query them in advanced hunting is Microsoft Defender for Endpoint Plan 2, which is included in Microsoft 365 E5 and E7.
- To see each agent's risk level, risk indicators and security recommendations, you need Microsoft 365 E7, or Microsoft Agent 365 together with Defender for Endpoint Plan 2.
- Runtime protection is also aimed at Defender for Endpoint Plan 2 customers.
- Devices must be onboarded to Defender for Endpoint, with Microsoft Defender Antivirus in active mode and a minimum platform version.
If your company is on other plans, the local agent inventory may be out of reach for now, but you can start with cloud AI app discovery and access policies. Before buying licenses, check what your current ones cover. Our article on Microsoft Defender for Business for SMBs goes over what that option includes.
How to detect and sort out shadow AI in five steps
Blocking everything on day one usually backfires: people find another tool and the problem gets harder to see. In practice, this order works better:
- Look before you block. Turn on generative AI app discovery in Defender for Cloud Apps and, if you have Defender for Endpoint Plan 2, check the local agents tab in the Defender portal (Assets > AI agents). For two or three weeks, just watch what's being used, by whom and on which devices.
- Find the risky configurations. Microsoft provides advanced hunting queries to find agents that approve their own actions or run in untrusted processes. Start with the ones on finance machines, admin accounts or people with access to customer data.
- Decide what gets approved. Talk to the teams using these tools. If an agent adds value, approve it with a corporate account and clear rules. If not, mark it as unsanctioned. In Defender for Cloud Apps, an unsanctioned app is blocked on devices onboarded to Defender for Endpoint, with a delay of up to three hours (Microsoft Learn).
- Turn on runtime protection in audit mode. Measure what it catches without getting in anyone's way. Once the impact is clear, switch to block mode on the most sensitive machines. You can set it up from the Defender portal or from Intune.
- Write the rule down and explain it. No tool replaces a use policy that says which agents are allowed, which folders and data they can touch, and who reviews their configuration. For agent governance beyond the laptop, see our guide on AI agent security and governance in the enterprise.
Shadow AI and Chile's Law 21.719
On November 23, Chile's Official Gazette published Law 21.855, which pushes the effective date of Law 21.719 on personal data protection to October 15, 2027 (Carey). We already wrote about how to use that extra time.
More time doesn't change the work, and shadow AI is squarely part of it. If a local agent reads a customer database and sends its contents to an external model, the company is processing personal data with a third party nobody vetted, and there's no record of it. It's hard to show you protect data when you don't know where it went. An inventory of AI agents and services is part of the processing map you'll need to comply with the law.
Frequently asked questions
Is shadow AI only a problem for large companies?
No. It can happen more easily at a small business, where there are usually fewer controls and people install whatever helps them. What changes is the tooling you have to detect it. If you don't have Defender for Endpoint Plan 2, you can start with cloud app discovery and a clear use policy.
Does detecting an agent mean someone is misusing it?
Not necessarily. According to Microsoft, discovery only shows that the agent's process ran on the device, not that it was used or that it reached an AI service. Treat it as a reason to talk to the person, not as proof of wrongdoing.
Should we ban local AI agents?
Usually not. If you ban them without offering an alternative, people will keep using them on personal devices, where you have no visibility at all. It works better to approve a few tools, limit what they can access and watch for risky configurations.
Get a handle on the AI already on your machines
At Disrupsoft we start with a security assessment: which AI tools are in use, on which devices and with what permissions. Then we define identity, access and data controls, deploy the Microsoft Security tools that fit your licenses, and support you with monitoring. If you want to know which AI agents are running on your company's laptops today, let's talk about Microsoft security.



