For the complete documentation index, see llms.txt. This page is also available as Markdown.

Copilot Studio (Threat Detection)

Connect Akto Atlas as an external threat detection provider for Microsoft Copilot Studio agents

Overview

Microsoft Copilot Studio lets you connect an external threat detection system to your agents for real-time protection. Once connected, every time a Copilot Studio agent considers invoking a tool, it checks with Akto first. Akto evaluates the request and tells the agent to allow or block it, so risky tool calls are stopped before they run - not just flagged after the fact.

Once connected, Akto Atlas:

  • Evaluates every tool-invocation request from your Copilot Studio agents in real time

  • Blocks unsafe or policy-violating tool calls before they execute, with no visible interruption for the user when a call is allowed

  • Reports every decision back to the Akto dashboard for monitoring and audit

What Gets Checked (and What Doesn't)

Microsoft only calls the external threat detection system at specific points in an agent's turn. Everything else in the turn runs without a check. Use this to set expectations before you connect Akto:

#
Point in lifecycle
Called?
Endpoint
What can be blocked
Effect on final response

1

Admin saves config in Power Platform admin center

Yes

POST /validate

Nothing runtime - only fails the save if the Entra app is misconfigured

None

2

User prompt received / before orchestration

No

-

Nothing

None - no hook exists here

3

Planner decides to invoke a tool (action, connector, flow, MCP tool)

Yes - the only runtime call

POST /analyze-tool-execution

The tool execution (pre-execution)

Indirect: a block halts the turn and shows a canned notice

4

Each subsequent tool in a multi-step plan

Yes - once per tool

POST /analyze-tool-execution

That specific step

Same as row 3

5

After a tool returns, before its output is used

Indirect only

via the next tool's call

Only the next tool call - the output itself can't be retracted

None directly

6

LLM composes the final answer

No

-

Nothing

Cannot be blocked

7

Final answer rendered to the user

No

-

Nothing

Cannot be blocked

8

Turn with no tool invocation at all

No

-

Nothing

Cannot be blocked

9

Classic (non-generative) agents

No

-

Nothing - skipped entirely

None

10

Provider times out or errors

Attempted, no verdict

POST /analyze-tool-execution

Governed by Set error behavior (default: allow after 1,000 ms)

Fail-open by default

Prerequisites

Before setting up Copilot Studio threat detection, ensure the following requirements are met. Most setup issues are caused by missing prerequisites - please review them carefully.

1. An Existing Microsoft Entra App Registration

This guide assumes you already have a Microsoft Entra application registered in your tenant. Reuse the same app registration you created when setting up the Copilot Studio (Multi Environment) connector in Akto Atlas - you don't need to create a new one for threat detection. You'll need:

  • Its Application (Client) ID

  • Permission to add Federated Identity Credentials to it (see Part 2)

If you haven't set up that connector and don't have an app registered yet, see Microsoft's Register an application guide before continuing.

2. Power Platform Administrator Access

You need a user with the Power Platform Administrator (or Global Administrator) role to configure threat detection for an environment in the Power Platform admin center.

3. Generative Orchestration Agents

The agents you want protected must use generative orchestration. Classic agents do not call the external threat detection system, so enabling this integration has no effect on them.

Steps to Connect

Part 1 - Get Your Akto Threat Detection Endpoint

1

Request your endpoint from Akto

Reach out to your Akto account team or support@akto.io and ask for your Copilot Studio Threat Detection Endpoint.

Reference the Microsoft Entra app registration you noted in Prerequisites - Akto ties the endpoint to your account, and you'll use it together with that app in the steps below.

2

Save the endpoint URL

Akto will give you a base URL similar to:

  • Format: https://<account-id>-guardrails.aktosecurity.com/copilot/threat-detection

Keep this handy - you'll need it in both Part 2 and Part 3.

Part 2 - Trust Akto in Your Microsoft Entra App

Copilot Studio authenticates to Akto using a Federated Identity Credential (FIC) on your Entra app - a secret-less trust relationship scoped to your tenant and the Akto endpoint. Configure it once per app registration.

1

Go to Microsoft Entra > App registrations. Select the same app registration you used to set up the Copilot Studio (Multi Environment) connector in Akto Atlas (see Prerequisites).

2

In the sidebar, select Manage > Certificates & secrets > Federated credentials, then select Add credential.

3

In the Federated credential scenario dropdown, select Other issuer.

4

Fill in the fields as follows:

  • Issuer: https://login.microsoftonline.com/{tenantId}/v2.0 - replace {tenantId} with your organization's Microsoft Entra tenant ID.

  • Type: Explicit subject identifier.

  • Value: /eid1/c/pub/t/{base64 tenantId}/a/m1WPnYRZpEaQKq1Cceg--g/{base64 endpoint} - replace the two placeholders with the base64-encoded values of your tenant ID and the Akto endpoint you copied in Part 1.

    Use the following PowerShell snippet to generate both base64 values (replace the two sample values with your own tenant ID and Akto endpoint):

  • Name: Any descriptive name, e.g. akto-threat-detection.

5

Select Add.

6

Note down the app's Application (Client) ID from the Overview page - you'll need it in Part 3.

Part 3 - Turn On Threat Detection in Power Platform Admin Center

Repeat this part for every environment you want Akto to protect.

2

On the side navigation, select Security, then select Threat detection.

3

Select Additional threat detection.

4

Select the environment you want to protect, then select Set up.

5

Select Allow Copilot Studio to share data with a threat detection provider.

6

Under Azure Entra App ID, enter the Application (Client) ID you noted in Part 2.

7

Under Endpoint link, paste the Akto Threat Detection Endpoint you copied in Part 1.

8

Under Set error behavior, choose how the agent should behave if Akto doesn't respond within one second:

  • Allow the agent to respond (default) - the tool call proceeds as planned.

  • Block the query - the tool call is blocked if Akto's decision doesn't arrive in time.

Choose Block the query if you want to fail closed rather than fail open on a timeout.

9

Select Save.

Once saved, Copilot Studio starts calling Akto before every tool invocation in that environment, and decisions begin appearing in your Akto dashboard.

Troubleshooting

Save Fails in Power Platform Admin Center

Error
How to Handle

There was a problem connecting to the protection provider.

Confirm the Endpoint link exactly matches the Akto Threat Detection Endpoint from Part 1, with no typos or trailing characters.

There was a problem with the configuration. Try checking the details you entered and the Microsoft Entra configuration.

The token acquisition failed. Recheck the Azure Entra App ID and the Federated Identity Credential from Part 2. Select Copy error info in the admin center for more detail.

To change a configuration, make sure you have Power Platform admin permissions.

Have a user with the Power Platform Administrator role perform the setup.

Common Entra / Authentication Issues

  • Application not found - Verify the Azure Entra App ID entered in Part 3 matches the app you configured in Part 2, and that it exists in the correct tenant.

  • No Federated Identity Credential configured - Confirm you completed Part 2 on the same app registration referenced in Part 3.

  • Invalid FIC issuer - The Issuer must be exactly https://login.microsoftonline.com/{tenantId}/v2.0, with your real tenant ID substituted in.

  • Invalid FIC subject - The Value must exactly match /eid1/c/pub/t/{base64 tenantId}/a/m1WPnYRZpEaQKq1Cceg--g/{base64 endpoint} - regenerate the base64 values with the PowerShell snippet in Part 2 and check for extra whitespace.

No Decisions Appearing in Akto

  • Confirm the environment shows Allow Copilot Studio to share data with a threat detection provider as enabled in the Power Platform admin center.

  • Confirm the agent you're testing uses generative orchestration - classic agents never call the threat detection endpoint.

  • Trigger a conversation that causes the agent to invoke a tool, then check the Akto dashboard for the corresponding decision.

Disconnect Threat Detection

To stop sending an environment's tool-invocation data to Akto:

2

On the side navigation, select Security, then select Threat detection.

3

Select Additional threat detection, choose the environment, then select Set up.

4

Unselect Allow Copilot Studio to share data with your selected provider.

5

Select Save.

This only turns off threat detection for that one environment. Repeat for any other environment you want to disconnect.

Get Support

If you need assistance with the Copilot Studio Threat Detection connector:

  • In-app Chat - Use the chat widget in your Akto dashboard for instant support.

  • Email Support - Contact us at support@akto.io.

Last updated