If you've allowlisted CanIPhish in Microsoft 365, but the links in your simulations are being rewritten, or open a content blocked warning, Microsoft Defender for Office 365 is still scanning them.
Defender for Office 365 has two features that get in the way of simulations:
- Safe Attachments opens attachments in a sandbox before the email is delivered, which can hold back or delay simulations that include an attachment.
- Safe Links rewrites every link in an email so that each click goes through Microsoft's checking service first. Your people see a rewritten link, and can land on a warning page instead of the simulation's landing page, so your results don't reflect what they'd really do.
Both features are part of Defender for Office 365 Plan 1 and Plan 2, so whichever plan you have, set up both exemptions below. Each one is scoped to CanIPhish only: the rest of your email keeps its full protection.
- Step 1. Bypass Safe Attachments scanning (a mail flow rule)
- Step 2. Bypass Safe Links scanning (a Safe Links policy)
Note: Microsoft's guidance says changes can take up to six hours to take effect, but we typically find it's much quicker.
Step 1. Bypass Safe Attachments scanning
This mail flow rule adds a message header to emails from our two sending servers. The header tells Microsoft to skip Safe Attachments scanning for those emails, and only those.
- Open the Exchange admin center at https://admin.exchange.microsoft.com/, then select Mail flow > Rules, and click Add a rule.
- Click Create a new rule.
- Give the rule a name you'll recognize later, such as Bypass ATP Attachment Processing. Under Apply this rule if, choose The sender, then IP address is in any of these ranges or exactly matches. This matches emails by the server that sent them, so the rule only ever applies to mail from CanIPhish.
-
Add each of our two sending IP addresses, clicking Add after each one, then click Save. These are the addresses every CanIPhish simulation and training email is sent from (they're also in our Allowlisting - Quick Reference).
3.106.21.22 13.237.47.221 - Under Do the following, choose Modify the message properties, then set a message header.
-
Click the first Enter text link, paste in the header name below, and click Save. It needs to match exactly, so copy and paste it rather than typing it.
X-MS-Exchange-Organization-SkipSafeAttachmentProcessing - Click the second Enter text link, enter 1 as the value, and click Save. The value 1 is what switches the skip on. The rule now reads back both settings, as below. Click Next.
- Leave the rule settings as they are and click Next. The default mode, Enforce, is the one that applies the header; the test modes don't. Review the rule and click Finish.
- Turn the rule on. As the review page says, a new rule starts turned off, and it does nothing until you turn it on. In the Rules list, select your new rule, then switch Enable or disable rule on. The list can take a minute to show the rule as Enabled; refresh it if it doesn't.
Step 2. Bypass Safe Links scanning
This Safe Links policy covers everyone in your organization and lists our landing page addresses as URLs not to rewrite. Links to our landing pages then reach your people unchanged, while every other link keeps Safe Links protection.
Already use a custom Safe Links policy? Only one Safe Links policy applies to each person, so rather than creating a second one, open your existing policy and add our URLs to it (steps 5 to 7 below), under its URL & click protection settings.
- Open Microsoft Defender at https://security.microsoft.com/, then go to Email & collaboration > Policies & rules > Threat policies, and click Safe Links. If the menu is collapsed to icons, click Show navigation first.
- Click Create.
- Give the policy a name you'll recognize later, such as CanIPhish Safe Link Bypass, and click Next.
- Make sure the policy covers everyone in your organization, since anyone can receive a simulation. The simplest way is to add the domain your email addresses use under Domains. If your people use more than one email domain, add each of them, or choose a group that includes everyone. Click Next.
- Leave the protection settings as they are, so every other link stays protected. Under Do not rewrite the following URLs in email, click Manage 0 URLs.
- Click Add URLs.
-
Paste in each of our landing page URL patterns below, pressing Enter after each one, so each becomes its own entry. Each domain is listed twice: authwebmail.com/* covers the domain itself, and *.authwebmail.com/* covers its subdomains, so both are covered. When all 20 are in, click Save, then Done.
authwebmail.com/* *.authwebmail.com/* cmail31.com/* *.cmail31.com/* securesupportcloud.com/* *.securesupportcloud.com/* webnotifications.net/* *.webnotifications.net/* alerting-services.com/* *.alerting-services.com/* onlineverify.net/* *.onlineverify.net/* verificationweb.net/* *.verificationweb.net/* portal-login.net/* *.portal-login.net/* cloud-notification-services.com/* *.cloud-notification-services.com/* authenticationsecure.com/* *.authenticationsecure.com/* - Click Next (leave Notification & Url as it is), then Next again. Check the review page lists your domain and the 20 URLs, then click Submit.
- Click Done. Your policy now shows in the Safe Links list, turned on.
Check it's working
Once the changes have applied, send yourself a test email from CanIPhish (Phishing Content > Phishing Emails, preview a template, then Send test email). Open it and click its link: it should go straight to the landing page, with no Microsoft warning page in between. To double-check, right-click the link and copy its address: a link that's still being rewritten contains safelinks.protection.outlook.com. If it doesn't, you've set up both exemptions, and your simulations reach your people untouched.
Links still being rewritten after a few hours? Check that the Safe Links policy is turned on, that it covers the recipient's email domain, and that the URL patterns were pasted without extra spaces. Emails with attachments still held back? Check that the mail flow rule is turned on and lists both IP addresses.
Comments
0 comments
Please sign in to leave a comment.