Microsoft Agent 365Project PerceptionAI agent security

How Does Microsoft Agent 365 Secure AI Agents Beyond Prompt Injection?

Microsoft Agent 365 and Project Perception give agents their own identity, time-bound permissions and risk-based access. Here is how the pieces fit.

Portrait of Luis Chavez-Mattos
Edited by Luis Chavez-Mattos, Director, Product··RSS
A grid of many small agent identity cards with stepped, shortening expiry tabs and risk-based access sliders, fanning out from one larger credential card, illustrating Microsoft Agent 365's agent identities and time-bound permissions.

How does Microsoft Agent 365 secure AI agents beyond prompt injection?

Microsoft's approach treats agents as governed entities, not just models to be filtered. Agent 365 and Project Perception give each agent its own identity, scope its access to the task, and contain it as risk changes, without altering what employees are already approved to access. Project Perception adds agent insights, guardian agents, dynamic permissions and risk-based access controls. Security teams review recommended protections, preview the impact, and approve a phased rollout before anything is enforced.

TL;DR

  • Microsoft's pitch is that prompt filtering is not enough, so Agent 365 focuses on knowing which agents exist, who owns them, and what they can reach.
  • Each agent gets its own identity, separate from the employees who use it.
  • Dynamic permissions give agent tasks time-bound access to supported resources instead of standing access.
  • Risk-based access controls evaluate supported agent actions against current risk and policy, not only at sign-in.
  • Agent insights show where existing controls leave gaps, and guardian agents help teams handle risk across groups of agents.
  • Nothing is enforced automatically: teams preview the impact and approve a phased rollout first.

Why is prompt injection only part of the problem?

Prompt injection happens when an agent reads external content (an email, a web page, a document) that contains instructions the user never gave. The agent may follow them. A solo builder can defend against this with input checks placed before content reaches the model, plus tight limits on what the agent can touch. That works because one person knows every agent they built and every system it connects to.

A company does not have that luxury. Agents run in the cloud and on employee devices. Many were built by different teams, and some may be unknown to security. Even a perfect injection filter would not answer basic questions: Which agents are running? Who owns each one? What can they reach if one is manipulated?

That is the gap Microsoft says it is targeting. The idea is to assume some injection attempts will get through, and limit the damage by controlling identity, access and behavior around the agent.

What does Agent 365 do for agent identity?

The first move is giving agents their own identity. Without one, an agent often borrows a user's credentials or a shared service account. That makes it hard to tell who did what, and hard to restrict the agent without restricting the human.

A distinct identity changes several things:

  • Inventory. You can list agents and see which ones exist.
  • Ownership. Each agent maps to a person or team accountable for it.
  • Scoping. Access is granted to the agent for its task, not inherited wholesale from a user.
  • Containment. You can restrict one agent without touching an employee's own permissions.

The last point matters in practice. According to the source material, Microsoft's controls work without affecting the access employees are already approved for. A security team can tighten an agent without breaking the workday of the person who deployed it.

How do dynamic permissions and risk-based access controls work?

Two mechanisms handle access, and they do different jobs.

MechanismWhat it doesWhen it applies
Dynamic permissionsGives agent tasks specific, time-bound access to supported resourcesAt task time, then expires
Risk-based access controlsEvaluates supported agent actions using current risk and policyContinuously, not only at sign-in

Dynamic permissions give agent tasks specific, time-bound access to supported resources. An agent drafting a report gets access to the data that report needs, for the duration of the task. It does not keep a standing grant it could misuse later, or that an injected instruction could exploit.

Risk-based access controls address a weakness of sign-in-only checks. An agent can pass authentication and then behave strangely an hour later. Evaluating each supported action against current risk and policy lets the system tighten or block access as conditions change. This is the "contains them as risk changes" part of the pitch.

Note the repeated qualifier "supported." Both mechanisms apply to supported resources and supported actions. Coverage will not be universal, so teams should check what is in scope for their own stack.

What are agent insights and guardian agents in Project Perception?

Project Perception adds two layers aimed at the security team rather than the agent.

Agent insights show where existing controls leave gaps. Most organizations already have identity, device and data policies. The question is whether those policies actually cover agents. Insights surface the places where they do not.

Guardian agents are agents that help security teams manage risk. The point, as described, is to handle risk across a whole group of agents instead of working one investigation at a time. When you have hundreds of agents, triaging each alert by hand does not scale. A guardian agent can look for patterns across many agents and recommend protections.

The source material does not detail how guardian agents are built, what models they use, or how they decide what to flag. Treat those as open questions until Microsoft publishes more.

How does phased enforcement work?

Recommended protections do not switch on by themselves. The workflow, as described, has three human checkpoints:

  1. The team reviews the recommended protections.
  2. The team previews the impact of those protections.
  3. The team approves a phased rollout before anything is enforced.

This is a practical design choice. Tightening permissions on a live agent can break workflows. Previewing impact shows what would have been blocked, and phasing limits the blast radius of a bad policy. It also keeps a person accountable for changes to access rules, even when an AI agent generates the recommendation.

Is this approach worth paying attention to?

The core ideas are sound regardless of vendor. Give agents separate identities. Grant access per task and let it expire. Re-evaluate risk during execution, not just at login. Roll out controls gradually. Anyone building agents for a business can apply these principles, whether or not they use Microsoft's tools.

There are limits to what can be said from the available material:

  • The main source is a creator walkthrough made in collaboration with Microsoft, so it reflects Microsoft's own description of the products.
  • It does not give pricing, licensing, availability dates, or a list of supported resources and actions.
  • It gives no benchmarks or measured results on how well the controls stop real attacks.

If you run agents at scale, the sensible next step is to compare Microsoft's documentation against your own inventory and see which of your agents and data sources fall inside the "supported" boundary.

How does this compare with a single-agent setup?

The creator in the source describes securing one personal agent with pre-LLM input checks and narrow access, and frames the enterprise version as the same thinking applied to hundreds of agents. That comparison is useful. The principles do not change between one agent and many. What changes is the need for central visibility, ownership records and policy that can be applied and rolled back across a fleet.

Frequently Asked Questions

5 questions

What is Project Perception?

It is the Microsoft component described alongside Agent 365 that adds agent insights, guardian agents, dynamic permissions and risk-based access controls. Its role is to show where controls leave gaps and to help security teams act on risk across many agents.

Does Agent 365 stop prompt injection?

The source frames prompt injection as only the start of agent security. The controls aim to limit what an agent can do if it is manipulated, through scoped, time-bound access and ongoing risk evaluation. The material does not claim to eliminate injection itself.

Will these controls change what employees can access?

According to the source, no. The controls scope and contain agents without affecting the access employees are already approved for. Agents get their own identity, so restrictions apply to the agent, not the person.

Are protections enforced automatically?

No. Security teams review the recommended protections, preview the impact, and approve a phased rollout before anything is enforced.

What is a guardian agent?

A guardian agent helps security teams deal with risk across a group of agents rather than investigating one at a time. The available material does not explain its internal design.

How we source, write, and correct our articles. Editorial standards

Related articles

Straight to your inbox.
New pieces as they publish. No noise.