# AI agents should require user authentication

AI agents should require user authentication. A Maester check for Copilot Studio, Agents.

Source: https://maester.dev/docs/tests/MT.1114

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/lnfernux" title="Truls Thorstad Dahlsveen · Original author"><img src="https://github.com/lnfernux.png" alt="Truls Thorstad Dahlsveen" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/lnfernux">Truls Thorstad Dahlsveen</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Copilot Studio · Agents · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1114
```

## Overview

AI agents should require user authentication with sign-in enforced.

This test flags two issues:
- **No authentication**: Agents configured without any authentication allow anonymous access.
- **Sign-in not required**: Agents with authentication configured but "Require users to sign in" toggled off. This means users can interact with the agent without authenticating, undermining the auth configuration.

### How to fix

1. In Copilot Studio, open the agent settings and configure authentication to use **Authenticate with Microsoft** or **Authenticate manually**.
2. Enable **Require users to sign in** to ensure every user authenticates before interacting with the agent.

Learn more: [Configure user authentication in Copilot Studio](https://learn.microsoft.com/microsoft-copilot-studio/configuration-end-user-authentication#required-user-sign-in-and-agent-sharing)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | MT.1114 |
| Severity | High |
| Suite | Maester |
| Product | Copilot Studio |
| Feature | Agents |
| Area | AI and agents |
| Resource type | Agent |
| User impact | Medium |
| Implementation cost | Medium |
| MITRE ATT&CK | T1213 Data from Information Repositories |
| Supports controls | nist-800-53-r5:IA-2 |
| PowerShell test | [Test-MtAIAgentNoAuthentication](https://github.com/maester365/maester/blob/main/tests/maester/copilot-studio/Test.MT.1114.ps1) |
| Services | Graph |

</details>

## Source

- Test: [`tests/maester/copilot-studio/Test.MT.1114.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/copilot-studio/Test.MT.1114.ps1)
- Documentation: [`tests/maester/copilot-studio/Test.MT.1114.md`](https://github.com/maester365/maester/blob/main/tests/maester/copilot-studio/Test.MT.1114.md)
