INSIGHTS
AI & Data

Microsoft SC-500: Secure AI Agents with Purview, Entra Agent ID, and Foundry

An AI agent is not necessarily a harmless text interface.

In this article
  1. Assess data exposure before expanding AI access
  2. Distinguish an agent identity from an unrestricted tool account
  3. Configure Copilot Studio runtime protection around action risk
  4. Make Foundry guardrails enforceable within the workflow
  5. Protect model API traffic with an AI gateway
  6. Investigate the blast radius of a compromised agent
  7. Use Defender visibility without confusing detection and prevention

An AI agent is not necessarily a harmless text interface. It can retrieve sensitive content, connect to internal applications and invoke tools that make lasting changes. Microsoft SC-500 explicitly covers security for AI workloads, including Microsoft Purview Data Security Posture Management for AI, SharePoint oversharing, Copilot Studio protection, Microsoft Entra Agent ID, Foundry guardrails, API Management’s AI gateway and Defender visibility. These features address different stages of an agent’s lifecycle and should be chosen according to a real threat model.

Imagine an employee asking an agent to summarize contracts, identify pending exceptions and open a procurement review. The agent could mistakenly retrieve documents from an overexposed SharePoint site, pass sensitive values to an unsuitable service or attempt an unauthorized tool action. A secure design must identify who is using the agent, which agent identity or service executes, what data enters the model context, and what authority the downstream API actually accepts.

Assess data exposure before expanding AI access

Microsoft 365 Copilot can surface information already available to a user; AI can make excessive permissions more visible even without changing the underlying access model. Review overshared SharePoint sites, broad “everyone” access and stale external guests before enabling an experience that synthesizes enterprise knowledge at scale. Fix permissions and document ownership at the source rather than relying on the agent’s system prompt to hide sensitive material.

Purview DSPM for AI helps organizations discover and evaluate selected AI-related data security risks and usage. Determine which data types and application scenarios are supported, who can review the findings, and which controls enforce restrictions. A risk dashboard is not the same as a permission enforcement engine. The SC-100 data security perspective covers governance choices; Microsoft SC-500 asks how to configure and verify the protective controls.

Distinguish an agent identity from an unrestricted tool account

An Entra agent identity is not equivalent to a conventional user account or an application-wide secret. The published identity blueprint model separates how an agent obtains a token from what downstream APIs authorize. An evaluator should name the exact agent, requesting actor, effective resource permissions and approval needed before a write operation. Foundry tool-call guardrails and related protection features may be preview or license-dependent; a diagram is not evidence that a tenant enforces them.

An agent needs a traceable identity and permission boundary, not an inherited blanket right to act as its creator. When Entra Agent ID is used, document which identity represents the agent, how it receives permissions, whether user-delegated authority applies, and how its access is monitored or revoked. Conditional Access for agent identity is an SC-500 objective, but the relevant support and prerequisites should be confirmed in the actual Microsoft environment before a deployment plan relies on them.

Test that a restricted user cannot ask the agent to retrieve another department’s document, and that the agent cannot execute an administrative tool using an unrestricted shared credential. The backend must enforce role or permission checks independently of model output. A prompt injection contained in a retrieved document should not gain the authority to change access policy or send data outside the organization. The SC-500 OAuth and workload identity review supports this separation of application and delegated privileges.

Configure Copilot Studio runtime protection around action risk

Real-time protection for Copilot Studio agents can identify certain unsafe or suspicious behavior in supported deployments. The engineer still needs to define what actions the agent may perform, validate tool arguments, configure connectors with minimum privileges and require human approval for consequential operations. Monitoring a risky action is not the same as preventing it; be explicit about whether a chosen control blocks, warns or merely records.

Use test prompts that include indirect instructions in a retrieved document, ambiguous identity claims, requests for off-policy destinations and invalid tool parameters. Observe what the platform detects and what the actual external service allows. Test a safe refusal, escalation, and denied backend transaction. Do not claim protection from every attack technique just because one simulated prompt produced a warning.

Make Foundry guardrails enforceable within the workflow

Foundry-based agents can use model instructions, content safety features, tool restrictions and evaluators, but a robust guardrail design separates advisory model behavior from independent application policy. Decide what data the model may receive, which actions require approval and what happens when a safety classifier is uncertain. A model’s own explanation cannot replace server-side authorization or validation of a financial operation.

Compare a benign user instruction with malicious instructions embedded in a PDF or search result. Ensure retrieved text remains lower-trust content. Validate structured outputs before passing them to a tool, enforce explicit operation allowlists and retain appropriate trace evidence. Changes to models, prompts and tool schemas should trigger regression tests because they may alter which actions an agent attempts even when the outer business workflow is unchanged.

Protect model API traffic with an AI gateway

Azure API Management’s AI gateway capabilities can mediate supported model traffic, providing policy controls and operational visibility as configured. Decide what the gateway must do: authenticate callers, apply supported quotas, manage routing, record metadata, or protect the backend from excessive requests. Verify the current policy and supported deployment model in Microsoft documentation; do not assume every gateway feature works on every tier or provider.

A gateway helps manage service requests but does not cure overshared source documents or grant legal permission to process data in a particular region. Record which application or agent is making the call and what usage budget it may consume. When the gateway denies a request, the agent should handle the error without silently retrying through a less-governed endpoint. Distinguish rate limits from authorization failures and from model safety refusals.

Investigate the blast radius of a compromised agent

Suppose an agent’s tool connection is compromised. Determine which documents, APIs, subscriptions and downstream records the agent identity could reach, not only which one the user intended. Defender XDR and related Microsoft signals can support investigation of supported agent identities and activity; correlate the actual principal, permissions, issued tokens and affected resources. Revoke unnecessary privileges and isolate risky tools while preserving evidence.

A defensible incident record includes the agent and model versions, token identity, action parameters, relevant correlation IDs, source document provenance and backend result. Avoid copying sensitive documents or credentials into unprotected tickets. Separately test emergency suspension: can the owner disable one write action without destroying harmless read-only access for users? Restrict incident-response access to those who need it.

Use Defender visibility without confusing detection and prevention

Microsoft Defender for Cloud includes supported AI security posture and workload protection capabilities, including a Data and AI security view and coverage for AI services. Inspect which plan, resource types, regions and integrations are actually enabled, then verify relevant findings. A green onboarding state should not be treated as proof that a malicious tool action would be prevented. Record what signal each control produces and how quickly analysts can act on it.

SC-500’s secure-compute domain now includes these AI-specific pathways alongside ordinary server and application hardening. A candidate should be able to choose controls based on the real trust boundary: source-document access, agent principal, model API, tool execution or monitoring. The best implementation verifies permitted behavior, blocked behavior and a safe recovery path when one of these layers fails.

Filed under AI & Data