Zero Trust for AI starts with a simple rule: an AI agent should never receive more access, data, or authority than it needs to complete a specific task.

That means every user, agent, application, data source, tool, and action must be verified. Permissions should remain limited, sensitive data should stay protected throughout the workflow, and high-impact actions should require additional validation or human approval.

For organizations building on Azure, Zero Trust for AI must extend across the entire environment, including cloud infrastructure, data platforms, agent identities, connected tools, memory, and monitoring. Securing the model alone is not enough. The full workflow has to be governed from the first request through the final action.

Quick Answer

Zero Trust for AI means that an organization does not automatically trust a user, agent, model, application, data source, tool, or requested action.

Organizations should begin with a governed Azure foundation that uses Microsoft Entra ID, managed identities, role-based access control, network isolation, centralized logging, and policy enforcement. They should also classify and protect data before connecting it to AI.

Each production agent should have a clear purpose, its own governed identity, limited permissions, an accountable sponsor, and a defined lifecycle. In addition, high-impact actions should require deterministic validation or human approval.

Finally, organizations need to monitor what agents actually do, including the data they retrieve, the tools they call, and the actions they attempt. The goal is not to stop AI from acting. It is to make every action authorized, observable, and reversible.

In This Blog

Why Does AI Change the Zero Trust Conversation?

Most enterprise security models were built around interactions that were relatively easy to follow.

A user signs in. An application checks the user’s permissions. The application then retrieves information or performs an action according to predefined rules.

Agent-based workflows are less linear.

For example, imagine an accounts-payable agent that receives an invoice by email. It may extract the invoice details, search for the matching purchase order, review vendor information, check for discrepancies, update an ERP system, and notify an employee.

Each step may be reasonable. However, the security risk lies in the connections between those steps.

What happens if the invoice contains hidden instructions intended for the agent? What if the agent retrieves records that the requesting employee should not see? What if it has permission to change vendor payment information when it only needs to read an invoice?

AI also creates new places where sensitive information may appear. Data can move into prompts, retrieved context, model outputs, memory, traces, vector indexes, and connected tools.

Traditional security question

Additional AI security question

Is the user authenticated?

Which user, application, or agent is responsible for this step?

Can the application access the database?

Should this agent access this record for this specific task?

Is the API authorized?

Is the agent permitted to choose and call this tool?

Is the data encrypted?

Could the data appear in a prompt, response, memory store, or trace?

Is application activity logged?

Can the organization reconstruct the agent’s decisions and actions?

Is the application patched?

Are the agent’s model, tools, grounding sources, and instructions trustworthy?

How Do Zero Trust Principles Apply to AI?

Microsoft’s Zero Trust model centers on three principles: verify explicitly, use least-privilege access, and assume breach.

Those principles remain relevant in the age of AI. However, organizations must apply them to nonhuman identities and multi-step workflows as well as employees and applications.

Verify explicitly

Authentication at the beginning of a conversation is only one trust decision.

An agent may continue working after the user sends a request. It may retrieve data, call a model, use several tools, or pass work to another agent. Consequently, important transitions within the workflow may require their own authorization checks.

Organizations may need to verify:

  • The user making the request

  • The application hosting the agent

  • The agent’s identity

  • The resource being accessed

  • The data involved

  • The tool being requested

  • The proposed action

  • The current risk level

  • Whether stronger authentication or approval is required

Use least-privilege access

An agent should receive only the permissions required for its defined job.

For example, an employee may have access to an entire customer database. A sales-summary agent may need only a limited group of accounts and a small set of fields. Giving the agent everything the employee can access creates unnecessary risk.

Assume breach

Zero Trust assumes that any component could become compromised.

Therefore, organizations should plan for a malicious prompt, overprivileged identity, manipulated document, vulnerable plugin, or unexpected agent decision. Isolation, narrow permissions, logging, and reliable shutdown controls reduce the damage when something goes wrong.

How Do You Secure the Azure Foundation for AI?

AI security begins before an agent receives its first prompt.

An organization needs a governed Azure environment with clear subscription boundaries, identity standards, network controls, resource policies, and centralized monitoring. Otherwise, teams may build sophisticated AI controls on top of an inconsistent cloud foundation.

Microsoft’s Azure AI security guidance emphasizes identity and access management, network isolation, data protection, monitoring, model governance, and secure development practices.

Prefer identity-based authentication

Production AI workloads should use Microsoft Entra authentication and managed identities wherever the supporting service allows them.

Managed identities reduce reliance on long-lived API keys. More importantly, they make it easier to determine which workload accessed a resource and to revoke that access without rotating a shared secret across several applications.

For instance, an agent that queries Azure AI Search and writes results to Azure Storage can use its identity to authenticate to both services. Administrators can then grant only the required Azure roles at the narrowest practical scope.

Separate administration from execution

The identity that deploys or configures an AI solution should not automatically become the identity that runs it.

Administrative roles often carry broad privileges. Runtime identities, by contrast, usually need a much smaller set of permissions. Separating those responsibilities reduces the effect of a compromised agent or application.

Control network paths

Private endpoints, virtual networks, firewalls, managed network isolation, and outbound traffic restrictions can reduce unnecessary exposure.

However, teams should map the entire workflow rather than focusing on one resource. That review should answer several practical questions:

  1. Where does the user connect?

  2. Where does the agent run?

  3. Which model endpoint does it use?

  4. Which data stores can it reach?

  5. Which external APIs can it call?

  6. Where are files, prompts, memory, and traces stored?

  7. Which requests can leave the private network?

One public dependency can create risk across an otherwise isolated architecture. As a result, network design should account for every system the agent touches.

Apply guardrails through policy and code

Azure Policy, infrastructure as code, deployment pipelines, and standardized landing zones make security repeatable.

This matters because AI experiments can multiply quickly. Without a repeatable deployment pattern, a promising prototype may enter production with broad permissions, public endpoints, test credentials, or incomplete logging.

How Do You Protect the Data Connected to AI?

In many AI projects, the greatest security challenge is not the model. It is the data connected to it.

An agent cannot consistently respect boundaries that the organization has never defined. Therefore, teams should understand what information exists, where it lives, who owns it, and which users or workloads should be allowed to access it.

Microsoft Purview can help organizations discover, classify, govern, and protect data used by Copilots, agents, and other generative AI applications.

Protect data throughout the workflow

Data stage

Recommended Zero Trust control

Source system

Classify information and enforce access at the original source.

Ingestion

Validate sources, inspect files, restrict connectors, and preserve lineage.

Storage

Encrypt data and separate accounts, workspaces, environments, or tenants.

Retrieval

Filter results based on the user, agent, purpose, and current request.

Prompt construction

Send only the minimum information needed to complete the task.

Model response

Check for sensitive, prohibited, unsupported, or unexpected content.

Agent memory

Limit what can be stored and how long it remains available.

Logs and traces

Treat prompts, outputs, and retrieved context as potentially sensitive.

Preserve source-level permissions

Retrieval-augmented generation can ground AI responses in enterprise information. However, the retrieval layer should not become a shortcut around the permissions protecting that information.

For example, adding SharePoint documents, Microsoft Fabric data, Azure SQL records, or Power BI semantic models to an AI index does not mean every agent should be able to search all of them.

Whenever possible, retrieval should preserve document, workspace, row, column, or record-level permissions. In addition, the application should return only information the current user and agent have a legitimate reason to access.

Minimize the data sent to the model

An agent does not need every available record simply because the data can be retrieved.

Prompt construction should include only the information required to complete the task. This reduces the amount of sensitive data exposed to the model and makes responses easier to validate.

For example, an agent preparing a shipment update may need an order number, delivery status, and destination. It probably does not need the customer’s full payment history or every field in the account profile.

Treat memory like a database

Agent memory may contain user preferences, previous conversations, task history, retrieved facts, or summaries of sensitive documents.

As a result, organizations need clear rules for memory isolation, encryption, access, retention, and deletion. A user’s memory should not silently become available to another user or agent simply because both use the same application.

Why Should Every AI Agent Have Its Own Identity?

Organizations would not intentionally allow several departments to share one administrator account. They should apply the same thinking to AI agents.

Microsoft Entra Agent ID extends identity and security capabilities to AI agents, giving organizations purpose-built ways to authenticate, authorize, govern, and protect these nonhuman identities.

A production agent should have more than a name in a development portal. It should have a defined security and business identity.

Define exactly what the agent does

“Support the finance team” is not a useful security boundary.

A better definition might be:

Read approved invoice fields, compare them with purchase-order data, and prepare an exception summary for an employee to review.

That description gives the security team something concrete to govern. It also makes unnecessary permissions easier to spot.

Assign a sponsor and technical owner

The business sponsor should remain accountable for why the agent exists and whether the organization still needs it.

Meanwhile, the technical owner should handle maintenance, monitoring, testing, access changes, and incident response. Security teams should be able to identify both people quickly when unusual activity appears.

Separate agents by purpose

A finance agent, HR agent, customer-service agent, and security investigation agent should not normally use the same identity.

Separate identities make access easier to review. They also allow the organization to suspend one agent without interrupting unrelated workflows.

Review access throughout the lifecycle

Agent permissions should not remain in place forever.

Organizations should review access when the agent’s purpose changes, its owner leaves, a project ends, or the underlying data source changes. In addition, unused agents, credentials, tools, and memory stores should be removed during decommissioning.

How Do You Secure Agent-Based Workflows?

Identity controls determine what an agent can technically access. Workflow controls determine what it should do in a particular situation.

An agent might have permission to update a customer record. However, the application still needs to validate which fields it can change, under what circumstances, and within which limits.

Restrict the tools an agent can use

Agents should work from an approved tool catalog rather than discovering and calling any available function.

For each tool, define:

  • The operations the agent can request

  • The input fields it can submit

  • The records or systems it can access

  • Transaction or monetary limits

  • Rate limits

  • Required approval steps

  • Expected outputs

  • Safe failure behavior

A written instruction telling an agent not to perform an action is not an enforceable security boundary. The API, identity platform, application logic, and destination system must also block unauthorized requests.

Validate actions outside the model

A model may suggest an action. Deterministic business logic should decide whether the system will execute it.

Suppose an agent drafts a refund. Before processing it, the application can confirm that the order exists, the customer is eligible, the amount falls below a defined limit, and another refund has not already been issued.

This separation matters because the agent cannot be the only component responsible for checking its own authority.

Match human approval to the level of risk

Requiring approval for every step can make an agent frustrating to use. On the other hand, allowing every action to run automatically creates obvious risk.

A risk-based approach offers a better balance.

Agent action

Example control

Search an approved knowledge base

Automatic with permission-filtered retrieval

Summarize an internal document

Automatic with data-loss controls

Draft an email

Human review before sending

Update a low-risk field

Automatic within validated limits

Delete business data

Human approval or tightly restricted automation

Release a payment

Strong authentication and human approval

Change a security control

Privileged workflow with step-up verification

Grant another identity access

Approval, logging, and expiration

High-risk actions should remain observable and interruptible. In many cases, they should also require a second layer of approval before the workflow continues.

How Do You Reduce Prompt-Injection Risk?

Prompt injection receives a great deal of attention, and for good reason. A malicious instruction may attempt to make an agent ignore its rules, disclose protected data, or call a tool it should not use.

However, the attack does not always come directly from a user.

An agent may encounter indirect instructions inside an email, webpage, PDF, support ticket, database record, or retrieved document. Microsoft Prompt Shields are designed to help detect both direct user prompt attacks and document-based attacks.

Even so, prompt screening should remain one layer rather than the entire defense.

Organizations should also:

  • Treat retrieved content as untrusted input

  • Separate system instructions from retrieved information

  • Prevent documents from granting new permissions

  • Restrict tools through enforceable allowlists

  • Validate every consequential tool request

  • Limit the data included in prompts

  • Test agents with adversarial content

  • Require approval for sensitive actions

  • Give agents narrow identities and permissions

This layered approach changes the potential impact of an attack. A manipulated agent with broad administrative access can cause serious harm. A manipulated agent that can only read a narrow set of approved records has far less room to act.

What Should Organizations Monitor?

Infrastructure monitoring can tell a team whether an endpoint was available or a database query succeeded. However, it may not explain why an agent chose a tool or what happened between the initial request and the final action.

Agent observability should capture the workflow itself.

Useful telemetry may include:

  • The user who initiated the request

  • The agent that processed it

  • The model and version involved

  • The information retrieved

  • The tools the agent selected

  • The inputs passed to each tool

  • The actions attempted

  • Approval or denial decisions

  • Errors, retries, and latency

  • Token usage and cost

  • The final result

Microsoft Foundry tracing can send agent telemetry to Azure Monitor Application Insights. These traces can help teams examine model calls, tool invocations, application dependencies, performance, and execution flow.

Protect the telemetry too

Detailed traces are valuable during debugging and incident response. At the same time, they may contain prompts, customer content, retrieved documents, or personal information.

Therefore, access to Application Insights and the underlying Log Analytics data should remain limited and governed. Teams should also establish retention periods and decide whether prompts or responses need to be stored in full.

Build an AI inventory

Security teams cannot govern agents, models, and data connections they do not know exist.

An AI inventory should include:

  • Agent name and purpose

  • Business sponsor

  • Technical owner

  • Agent identity

  • Models and model versions

  • Data sources

  • Tools and plugins

  • Production endpoints

  • Vector indexes

  • Memory stores

  • Prompt templates

  • Content-safety settings

  • Evaluation results

  • Deployment status

Microsoft Defender for Cloud can help organizations identify AI workloads and assess parts of their security posture. Still, the inventory should remain connected to the organization’s broader asset-management and incident-response processes.

Connect agent activity to security operations

Agent monitoring should not remain isolated in a development dashboard.

Relevant signals can be connected to Microsoft Defender, Microsoft Sentinel, Azure Monitor, Application Insights, and existing incident-response workflows.

Teams may want to alert on behavior such as:

  • Repeated attempts to call a blocked tool

  • Access to unusually sensitive data

  • An unexpected increase in tool calls

  • Actions outside normal business hours

  • Attempts to bypass system instructions

  • Use of an unapproved model or endpoint

  • Access to systems unrelated to the agent’s purpose

  • Sensitive information appearing in output or traces

The response plan should include a practical way to suspend the agent, revoke its identity, preserve evidence, and identify affected users or systems.

What Does a Practical Zero Trust for AI Roadmap Look Like?

Organizations do not need to solve every AI security issue before starting a project. However, they should avoid connecting a prototype to critical data and hoping to add governance later.

A phased approach makes the work more manageable.

Phase 1: Discover the current environment

Begin by identifying existing agents, AI applications, models, data sources, tools, and experiments.

Then document:

  • The business purpose of each use case

  • The data involved

  • The actions the agent may perform

  • The business sponsor

  • The technical owner

  • The potential impact of an error or compromise

This process often uncovers unsanctioned AI use, abandoned prototypes, or tools that teams adopted before a formal governance program existed.

Phase 2: Establish Azure guardrails

Next, strengthen the platform foundation.

Use standardized subscriptions, Azure Policy, infrastructure as code, centralized logging, identity-based authentication, managed identities, and network controls. Also separate production workloads from experiments.

The goal is to give project teams an approved path to production instead of forcing each team to design security from the beginning.

Phase 3: Secure identities and data

Assign each production agent an appropriate identity. Then apply least-privilege roles, lifecycle reviews, data classification, retrieval filtering, and memory isolation.

At this stage, test whether the agent can retrieve information outside its intended scope. Also confirm that developers, administrators, users, and runtime agents have separate levels of access.

Phase 4: Control tools and actions

Create explicit tool allowlists. Validate tool inputs, apply transaction limits, and define which actions require approval.

In addition, provide a reliable way to pause the workflow or revoke the agent’s access. An emergency control is only useful when the security and operations teams know where it is and can use it quickly.

Phase 5: Monitor and test continuously

Finally, enable tracing and connect relevant signals to security operations.

Teams should run adversarial tests, review permissions, evaluate agent behavior, and rehearse incident response. Because models, tools, permissions, and data change, a one-time security review will not remain sufficient.

Which AI Security Mistakes Should Organizations Avoid?

Moving a prototype directly into production

Proofs of concept often use broad permissions, shared keys, and public endpoints to move quickly.

Before production, teams should revisit every temporary decision rather than assuming the original configuration is safe.

Letting an agent inherit all of a user’s access

The agent’s permissions should reflect its task, not the maximum access held by the employee using it.

A user may have broad access because of several job responsibilities. The agent usually serves only one of them.

Treating the content filter as the complete security layer

Content and prompt controls can reduce certain risks. However, they do not replace identity, authorization, network security, data governance, or workflow validation.

The most important controls should be enforced outside the model.

Trusting every retrieved document

An approved data source may still contain manipulated, outdated, or incorrectly permissioned content.

Therefore, agents should treat retrieved information as data, not as authority. A document should not be able to change the agent’s identity, permissions, or approved tool set.

Collecting detailed logs without governing them

Logging everything may help troubleshooting, but it can also create a new repository of sensitive information.

Collect what the organization needs, restrict access, and define retention rules. In addition, teams should know whether users can request that stored prompts, outputs, or memory be deleted.

Forgetting to retire unused agents

Dormant agents can leave behind identities, permissions, tools, model endpoints, and memory stores.

A complete lifecycle must include review, suspension, and decommissioning. Otherwise, an old proof of concept can remain a quiet access path into current systems.

Building AI That Can Be Trusted to Act

The most valuable enterprise agents will do more than generate text. They will help employees complete tasks, coordinate processes, investigate issues, and carry out approved actions across business systems.

That level of autonomy requires more precision, not broader trust.

A well-governed agent has a known identity, a narrow purpose, protected data, approved tools, limited permissions, observable behavior, and an accountable owner. Sensitive actions receive stronger validation than low-risk tasks. Meanwhile, administrators can review, suspend, or revoke access when circumstances change.

Zero Trust for AI is not a single Microsoft license, product, or configuration setting. It connects Azure architecture, Microsoft Entra, data governance, agent identities, network security, prompt protections, workflow controls, observability, and human accountability.

Emergent Software helps organizations design and secure Microsoft environments that are ready for practical AI adoption. By building the security foundation early, organizations can move beyond isolated experiments and introduce agent-based workflows without losing control of their identities, data, or business processes.

Frequently Asked Questions

What is Zero Trust for AI?

Zero Trust for AI is an approach that continuously verifies users, agents, applications, data sources, tools, and actions instead of trusting them automatically. It applies identity controls, least-privilege access, data protection, isolation, monitoring, and governance across the full AI workflow.

Is Zero Trust for AI different from traditional Zero Trust?

The core principles remain the same. However, AI expands the number of identities, data flows, tools, and decisions that organizations must govern. Teams must now apply Zero Trust to agent identities, model endpoints, retrieval systems, memory, prompts, and autonomous actions as well as employees and applications.

Should every AI agent have its own Microsoft Entra identity?

Production agents should generally have distinct identities based on their purpose and access requirements. A separate identity improves auditing, lifecycle management, least-privilege access, and incident containment. Microsoft Entra Agent ID provides identity constructs designed for managing and protecting AI agents.

How can organizations protect sensitive data used by AI agents?

Start by classifying the data and enforcing permissions at the original source. Then preserve those permissions during retrieval, minimize the information placed in prompts, isolate agent memory, protect logs, and monitor for unexpected access. Microsoft Purview can help organizations understand and manage data risks connected to AI use.

Can Microsoft Foundry automatically secure an AI agent?

Microsoft Foundry provides important security and observability capabilities, but organizations must still configure the surrounding architecture. They remain responsible for identity, roles, networking, data permissions, tool restrictions, approval logic, monitoring, and incident-response procedures.

How can organizations prevent prompt-injection attacks?

No single control can eliminate prompt injection. Organizations should combine Prompt Shields with restricted identities, permission-filtered retrieval, approved tool lists, deterministic validation, adversarial testing, and human approval for sensitive actions.

Which agent actions should require human approval?

Human approval is most appropriate when an action could create significant financial, operational, legal, privacy, or security impact. Examples include releasing payments, deleting data, changing access permissions, modifying security settings, or sending consequential external communications.

What should an organization secure first when adopting AI agents?

Start with the use case rather than the model. Identify the data the agent needs, the actions it may take, the systems it will access, and the person accountable for it. From there, create the identity, permissions, workflow controls, and monitoring required to support that limited purpose.

Solutions