AI agents write code, analyze data and act across company systems. To be useful they need access, and that access makes them a new kind of insider risk. That is how Microsoft framed it on October 19, when it extended Project Perception to securing agents. Source: Microsoft Security Blog.

Controls outside the model

The core principle is that a model should not be its own security authority. What an agent can access, what it can do and whether it should keep running must be decided by controls outside the model, which the agent cannot bypass. Microsoft also assumes an agent can make mistakes, be manipulated (for example through prompt injection) or be compromised.

What Microsoft announced

  • A unified agent registry shared by Project Perception and Microsoft Agent 365. Discovery now covers 60 types of local agents, including Claude Code, OpenAI Codex and GitHub Copilot.
  • A separate identity for each agent in Microsoft Entra Agent ID, distinct from the person using it.
  • Dynamic Permissions: an agent starts with no authority and gets only what the task needs, for as long as the task lasts.
  • Dynamic Agent Risk and Dynamic Conditional Access: agent risk is assessed continuously and the response is graduated, from blocking writes while keeping reads, to requiring human approval, to stopping the agent.

What this means for companies

In our view these principles are worth applying whatever vendor you use. When you deploy an agent, know who owns it from day one, give it its own narrow permissions instead of an employee’s full access, run it in an isolated environment and decide which actions need human approval. The same applies to developer tools such as coding agents running on your team’s machines.

Turn the principle into an integration design

The following steps are our proposed implementation approach, rather than additional features announced by Microsoft. Begin with an inventory of operations the agent can perform. For each one, identify the inputs, destination system, required permissions and whether its effects can be reversed. Reading an order status, drafting a reply and approving a refund should be separate operations. This makes it possible to offer a useful capability without exposing every function used by the customer service team.

Assign both a business owner and a technical owner. The business owner defines acceptable outcomes and exceptions that need a person’s decision. The technical owner handles the integration, access restrictions and investigation of problems. One person can fill both roles in a small company, but responsibility still needs to be explicit. Otherwise, an unusual action may be dismissed as an exception when it should lead to a correction or suspension of the automation.

Example: an agent helping with support tickets

Consider a hypothetical agent that reads a support request and proposes a response. Initially, it can retrieve only information needed for that ticket and save a draft in the support tool. Sending the message remains a separate action. This gives the company an opportunity to assess response quality before allowing direct communication with customers. Reviewers have a concrete result to inspect and can record incorrect claims, missing context or unsuitable wording for later evaluation.

Treat the ticket text as external input. It may contain instructions to reveal other tickets, change the agent’s rules or send information to an unrelated address. The integration should enforce access restrictions regardless of how the model interprets the message. If the task concerns one ticket, the backend should not return the full customer database simply because the model asks for it. Apply the same separation to attachments and material retrieved from websites, which can also contain untrusted instructions.

Make approval specific to the proposed action

A general question asking whether the agent may proceed says little about consequences. For a significant action, display the destination, data scope and proposed result. A person approving a message should see its content and recipient. For a system update, show the affected records and values. Approval should apply to that particular version of the operation. If the recipient or data scope changes afterwards, the system should require a fresh decision rather than treating earlier consent as unlimited authority.

Manual confirmation is not necessary for every operation. Define a clear boundary between automatic actions and exceptions, based on impact, reversibility and the information involved. The system executing the operation should enforce that boundary. A textual instruction alone does not provide the same control. Reviewing ordinary model responses also cannot establish whether the restriction works when an external input deliberately requests a prohibited action. The pilot should test both expected behavior and attempts to exceed the intended scope.

Test denial and interruption as well as success

Include invalid identifiers, missing permissions, unexpected document content and repeated actions in the pilot. Simulate permission withdrawal while a task is running. Verify that the agent receives a denial and that subsequent steps do not proceed on assumptions made before access was removed. In the audit record, distinguish the model’s suggestion, the attempted tool call and confirmation from the destination system. These describe different stages and should not be treated as interchangeable evidence of an operation.

Set limits for time, spend and operation count, together with a way to stop the workflow. After interruption, inspect effects already committed, queued work and responsibility for the unfinished case. A model that has stopped generating text does not necessarily mean that every downstream operation has stopped. Include these exercises in the production decision. They assess the integration, access controls and recovery process alongside response quality, giving the company a clearer view of what it is actually delegating.

Planning to deploy AI agents in your company? Let’s talk about a secure approach to your process.