Configure your Microsoft 365 tenant for increased security


The improved Microsoft 365 Defender portal is now available. This new experience brings Defender for Endpoint, Defender for Office 365, Microsoft 365 Defender, and more into the Microsoft 365 Defender portal. Learn what's new.

Applies to

This topic walks you through recommended configuration for tenant-wide settings that affect the security of your Microsoft 365 environment. Your security needs might require more or less security. Use these recommendations as a starting point.

Check Office 365 Secure Score

Office 365 Secure Score analyzes your organization's security based on your regular activities and security settings and assigns a score. Begin by taking note of your current score. Adjusting some tenant-wide settings will increase your score. The goal is not to achieve the max score, but to be aware of opportunities to protect your environment that do not negatively affect productivity for your users. See Microsoft Secure Score.

Tune threat management policies in the Microsoft 365 Defender portal

The Microsoft 365 Defender portal includes capabilities that protect your environment. It also includes reports and dashboards you can use to monitor and take action. Some areas come with default policy configurations. Some areas do not include default policies or rules. Visit these policies under Email & collaboration > Policies & rules > Threat policies to tune threat management settings for a more secure environment.

Area Default policy? Recommendation
Anti-phishing Yes Configure the default anti-phishing policy as described here: Configure anti-phishing protection settings in EOP and Defender for Office 365.

More information:

Anti-Malware Engine Yes Configure the default anti-malware policy as described here: Configure anti-malware protection settings in EOP.

More information:

Safe Attachments in Defender for Office 365 No Configure the global settings for Safe Attachments and create a Safe Attachments policy as described here: Configure Safe Attachments settings in Microsoft Defender for Office 365.

More information:

Safe Links in Microsoft Defender for Office 365 No Configure the global settings for Safe Links and create a Safe Links policy as described here: Configure Safe Links settings in Microsoft Defender for Office 365.

More information:

Anti-spam (mail filtering) Yes Configure the default anti-spam policy as described here: Configure anti-spam protection settings in EOP

More information:

Email Authentication Yes Email authentication uses DNS records to add verifiable information to email messages about the message source and sender. Microsoft 365 automatically configures email authentication for its default domain (, but Microsoft 365 admins can also configure email authentication for custom domains. Three authentication methods are used:


For non-standard deployments of SPF, hybrid deployments, and troubleshooting: How Microsoft 365 uses Sender Policy Framework (SPF) to prevent spoofing.

View dashboards and reports in the Microsoft 365 Defender portal

Visit these reports and dashboards to learn more about the health of your environment. The data in these reports will become richer as your organization uses Office 365 services. For now, be familiar with what you can monitor and take action on.

Dashboard Description
Email security reports These reports are available in Exchange Online Protection. For more information, see View email security reports in the Microsoft 365 Defender portal.
Defender for Office 365 reports The reports are available only in Defender for Office 365. For more information, see View Defender for Office 365 reports in the Microsoft 365 Defender portal.
Mail flow reports and insights These reports and insights are available in the Exchange admin center (EAC). For more information, see Mail flow reports and Mail flow insights.
Threat Explorer (or real-time detections) If you are investigating or experiencing an attack against your tenant, use Explorer (or real-time detections) to analyze threats. Explorer (and the real-time detections report) shows you the volume of attacks over time, and you can analyze this data by threat families, attacker infrastructure, and more. You can also mark any suspicious email for the Incidents list.

Configure additional Exchange Online tenant-wide settings

Here are a couple of additional settings that are recommended.

Area Recommendation
Mail flow rules (also known as transport rules) Add a mail flow rule to help protect against ransomware by blocking executable file types and Office file types that contain macros. For more information, see Use mail flow rules to inspect message attachments in Exchange Online.

See these additional topics:

Create a mail flow rule to prevent auto-forwarding of email to external domains. For more information, see Mitigating Client External Forwarding Rules with Secure Score.

More information: Mail flow rules (transport rules) in Exchange Online

Modern authentication Modern authentication is a prerequisite for using multi-factor authentication (MFA). MFA is recommended for securing access to cloud resources, including email.

See these topics:

Modern authentication is enabled by default for Office 2016 clients, SharePoint Online, and OneDrive for Business.

More information: How modern authentication works for Office 2013 and Office 2016 client apps

Configure tenant-wide sharing policies in SharePoint admin center

Microsoft recommendations for configuring SharePoint team sites at increasing levels of protection, starting with baseline protection. For more information, see Policy recommendations for securing SharePoint sites and files.

SharePoint team sites configured at the baseline level allow sharing files with external users by using anonymous access links. This approach is recommended instead of sending files in email.

To support the goals for baseline protection, configure tenant-wide sharing policies as recommended here. Sharing settings for individual sites can be more restrictive than this tenant-wide policy, but not more permissive.

Area Includes a default policy Recommendation
Sharing (SharePoint Online and OneDrive for Business) Yes External sharing is enabled by default. These settings are recommended:
  • Allow sharing to authenticated external users and using anonymous access links (default setting).
  • Anonymous access links expire in this many days. Enter a number, if desired, such as 30 days.
  • Default link type — select Internal (people in the organization only). Users who wish to share using anonymous links must choose this option from the sharing menu.

More information: External sharing overview

SharePoint admin center and OneDrive for Business admin center include the same settings. The settings in either admin center apply to both.

Configure settings in Azure Active Directory

Be sure to visit these two areas in Azure Active Directory to complete tenant-wide setup for more secure environments.

Configure named locations (under conditional access)

If your organization includes offices with secure network access, add the trusted IP address ranges to Azure Active Directory as named locations. This feature helps reduce the number of reported false positives for sign-in risk events.

See: Named locations in Azure Active Directory

Block apps that don't support modern authentication

Multi-factor authentication requires apps that support modern authentication. Apps that do not support modern authentication cannot be blocked by using conditional access rules.

For secure environments, be sure to disable authentication for apps that do not support modern authentication. You can do this in Azure Active Directory with a control that is coming soon.

In the meantime, use one of the following methods to accomplish this for SharePoint Online and OneDrive for Business:

Get started with Defender for Cloud Apps or Office 365 Cloud App Security

Use Office 365 Cloud App Security to evaluate risk, to alert on suspicious activity, and to automatically take action. Requires Office 365 E5 plan.

Or, use Microsoft Defender for Cloud Apps to obtain deeper visibility even after access is granted, comprehensive controls, and improved protection for all your cloud applications, including Office 365.

Because this solution recommends the EMS E5 plan, we recommend you start with Defender for Cloud Apps so you can use this with other SaaS applications in your environment. Start with default policies and settings.

More information:

Defender for Cloud Apps dashboard.

Additional resources

These articles and guides provide additional prescriptive information for securing your Microsoft 365 environment: