If you are using Microsoft Defender for Office in your mail environment and have experienced false clicks or false attachment opens, it is because Defender for Office has link processing and attachment processing rules that are causing this. You can set up additional mail flow rules that allow you to bypass safe links and attachments processing for phishing test emails from KnowBe4's IP addresses. However, if you have a mail filter in front of your mail server, we recommend you whitelist in Microsoft Defender for Office by email header instead.
You only need to create rules for your organization's needs. For example, if you whitelist by header, follow the Safe Link Bypass Rule by Header and Safe Attachments Bypass Rule by Header sections. We recommend that you allow an hour for the rules to circulate to all of your users. To test out your rule, set up a phishing campaign for a small test group that includes yourself prior to starting a phishing campaign.
Safe Link Bypass Rule
To set up a mail flow rule to bypass Safe link processing:
- Create a new mail flow rule in your Microsoft 365 Exchange admin center.
- Give the rule a name such as "Bypass Safe Links".
- Click More options....
- From the Apply this rule if…. drop-down menu, select The senders then select IP address is in any of these ranges or exactly matches.
- Enter our IP address. For the most up-to-date list of our IP addresses, please see this article.
- From the Do the following… drop-down menu, select Modify the message properties... and then set a message header.
- Click the first *Enter text... link and set the message header to "X-MS-Exchange-Organization-SkipSafeLinksProcessing".
- Click the second *Enter text... link and set the value to "1".
- Click Save.
Safe Attachments Bypass Rule
Below are the steps to set up a mail flow rule to bypass Safe Attachments Processing:
- Create a new mail flow rule in your Microsoft 365 Exchange admin center.
- Give the rule a name such as Bypass Safe Attachments.
- Click more options.
- From the Apply this rule if… drop-down, select The senders then select IP address is in any of these ranges or exactly matches.
- Enter our IP addresses. Please see this article for the most up-to-date list of our IP addresses.
- From the Do the following… drop-down, select Modify the message properties... and then set a message header.
- Click the first *Enter text... link and set the message header to "X-MS-Exchange-Organization-SkipSafeAttachmentProcessing".
- Click the second *Enter text... link and set the value to "1".
- Click Save.
Safe Link Bypass Rule by Header
To set up a mail flow rule to bypass Safe Link processing by header:
- Create a new mail flow rule in your Microsoft 365 Exchange admin center.
- Give the rule a name such as "Bypass Safe Links".
- Click More options....
- From the Apply this rule if… drop-down menu, select A message header... then selects includes any of these words.
- On the right side of that rule, you will see *Enter text... and *Enter words...
- Click *Enter text... to open the specify header name window. In this window, type the header name. For more information on what to enter for your header name, see the note below.
Note:By default, the header for KnowBe4 mail is X-PHISHTEST. We recommend that you change the default header to a custom header or header token for enhanced security. You can change the header settings for your account from the Account Settings page. For more information, see our How to Edit Your Account Settings article.
- Click *Enter words … and type in KnowBe4 and click the + sign.
- From the Do the following… drop-down menu, select Modify the message properties... and then set a message header.
- Click the first *Enter text... link and set the message header to "X-MS-Exchange-Organization-SkipSafeLinksProcessing".
- Click the second *Enter text... link and set the value to "1".
- Click Save.
Safe Attachments Bypass Rule by Header
Below are the steps to set up a mail flow rule to bypass Safe Attachments Processing by header:
- Create a new mail flow rule in your Microsoft 365 Exchange admin center.
- Give the rule a name such as "Bypass Safe Attachments by Header".
- Click more options.
- From the Apply this rule if… drop-down menu, select A message header... then selects includes any of these words.
- On the right side of that rule, you will see *Enter text... and *Enter words...
- Click *Enter text... to open the specify header name window. In this window, type the header name. For more information on what to enter for your header name, see the note below.
Note:By default, the header for KnowBe4 mail is X-PHISHTEST. We recommend that you change the default header to a custom header or header token for enhanced security. You can change the header settings for your account from the Account Settings page. For more information, see our How to Edit Your Account Settings article.
- Click *Enter words … and type in keyword that should be found in the header. By default, the keyword would be "KnowBe4". Click the + sign.
- From the Do the following… drop-down, select Modify the message properties... and then set a message header.
- Click the first *Enter text... link and set the message header to "X-MS-Exchange-Organization-SkipSafeAttachmentProcessing".
- Click the second *Enter text... link and set the value to "1".
- Click Save.
Still need assistance? Submit a support ticket and we can help!