# AI agents should not send email with AI-controlled inputs

AI agents should not send email with AI-controlled inputs. A Maester check for Copilot Studio, Agents.

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

<!-- 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.1116
```

## Overview

AI agents should not send email with AI-controlled inputs.

Agents configured with email-sending tools (such as Office 365 Outlook connectors) where the recipient, subject, or body can be influenced by AI-generated content present a data exfiltration risk. An attacker could craft prompts that cause the agent to send sensitive organizational data to external addresses.

### How to fix

Remove email-sending tools from agents that do not have a legitimate business need to send email. For agents that do require email capabilities, ensure recipients are restricted to a fixed list and are not dynamically determined by user input or AI-generated content. Use DLP policies to block the Outlook connector for agents that should not send email.

Learn more: [Configure data policies for agents](https://learn.microsoft.com/microsoft-copilot-studio/admin-data-loss-prevention?tabs=webapp#configure-a-data-policy-in-the-power-platform-admin-center)

## Details

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

| Field | Value |
| --- | --- |
| Test ID | MT.1116 |
| Severity | High |
| Suite | Maester |
| Product | Copilot Studio |
| Feature | Agents |
| Area | AI and agents |
| Resource type | Agent |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | T1048 Exfiltration Over Alternative Protocol |
| Supports controls | nist-800-53-r5:AC-4 |
| PowerShell test | [Test-MtAIAgentEmailExfiltration](https://github.com/maester365/maester/blob/main/tests/maester/copilot-studio/Test.MT.1116.ps1) |
| Services | Graph |

</details>

## Source

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