# Safe Attachments is not bypassed

Microsoft Defender for Office 365 Safe Attachments assists scanning for zero day malware by using behavioural analysis and sandboxing, supplementing…

Source: https://maester.dev/docs/tests/ORCA.189

<!-- 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/soulemike" title="Michael Soule · Original author"><img src="https://github.com/soulemike.png" alt="Michael Soule" 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/soulemike">Michael Soule</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/orca">ORCA</a> · Defender · Mail flow · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId ORCA.189
```

## Overview

Microsoft Defender for Office 365 Safe Attachments assists scanning for zero day malware by using behavioural analysis and sandboxing, supplementing signature definitions. The protection can be bypassed using mail flow rules which set the X-MS-Exchange-Organization-SkipSafeAttachmentProcessing header for email messages.

#### Remediation action

Remove mail flow rules which bypass Safe Attachments.

#### Related Links

* [Exchange admin center in Exchange Online](https://outlook.office365.com/ecp/)

## Details

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

| Field | Value |
| --- | --- |
| Test ID | ORCA.189 |
| Severity | Medium |
| Suite | ORCA |
| Product | Defender |
| Related products | Exchange Online |
| Feature | Mail flow |
| Area | Email and collaboration protection |
| Resource type | MailFlowRule |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | T1566.001 Spearphishing Attachment, T1204.002 Malicious File |
| Supports controls | nist-800-53-r5:SI-3 |
| PowerShell test | [Test-ORCA189](https://github.com/maester365/maester/blob/main/tests/orca/Test.ORCA.189.ps1) |
| Services | ExchangeOnline |
| Compatible licenses | ATP_ENTERPRISE |

</details>

## Source

- Test: [`tests/orca/Test.ORCA.189.ps1`](https://github.com/maester365/maester/blob/main/tests/orca/Test.ORCA.189.ps1)
- Documentation: [`tests/orca/Test.ORCA.189.md`](https://github.com/maester365/maester/blob/main/tests/orca/Test.ORCA.189.md)
