Secure enterprise tool calling

Kashyap Narayanan 100 Reputation points
2026-10-15T10:48:24.1033333+00:00

How can an Azure-hosted AI agent securely invoke enterprise APIs, databases, and Microsoft Graph operations using managed identities and least-privilege access? What controls should be implemented to prevent prompt injection from causing unauthorized tool execution or data exposure?

Foundry Agent Service
Foundry Agent Service

A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model

0 comments No comments

Answer accepted by question author
Salamat Shah 830 Reputation points MVP
2026-10-15T11:46:06.17+00:00

Secure the AI agent with managed identity, least-privilege access, strict tool authorization, input validation, network controls, and continuous monitoring to prevent unauthorized execution and data exposure.

To securely enable an Azure-hosted AI agent to access enterprise APIs, databases, and Microsoft Graph:

Use Managed Identities for authentication and avoid storing credentials or secrets.

Apply least-privilege RBAC and grant only the minimum permissions required.

Implement API gateways and allow only approved tools and endpoints.

Validate and sanitize all AI inputs to reduce prompt injection risks.

Require user approval or policy checks before executing sensitive actions.

Enforce network isolation using Private Endpoints, VNets, and firewall rules.

Enable logging, monitoring, and auditing for all tool invocations and data access.

Apply data classification, DLP policies, and output filtering to prevent data leakage.

Use Conditional Access and Just-In-Time (JIT) access where applicable.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.