In brief
Most Microsoft 365 break-ins at small and midsize companies use the same handful of gaps: accounts without MFA, legacy sign-in protocols, consent granted to apps that phish for mailbox access, automatic forwarding of email outside the company, anonymous file links and a disabled audit log. Each one is closed by a specific setting in the Entra, Exchange, SharePoint or Purview admin centers. Below is a list of those settings in the order worth checking them, with what each one requires.
Identity: MFA and legacy protocols
The first line of defense is sign-in. Microsoft Entra ID offers two routes:
- Security defaults. With no extra license, they require every user to register for MFA, require MFA on every administrator sign-in, block legacy authentication protocols (for example IMAP, POP3 and SMTP with a password) and block device code sign-in. This is a good starting point for a company without an Entra ID P1 license.
- Conditional Access. It needs at least an Entra ID P1 license and lets you set policies for groups, apps, locations and devices. When a company moves to Conditional Access, it turns security defaults off and immediately turns on policies that replace them.
Legacy protocols matter because they do not support MFA. A password stolen through phishing or another breach then works even though MFA is on in the browser. Microsoft has already turned off basic authentication for most Exchange Online protocols, but SMTP AUTH used by printers and old applications needs its own review. Types of MFA and why passkeys resist phishing are covered in MFA and passkeys.
Administrator accounts
| Setting | Why |
|---|---|
| A separate admin account for each administrator, with no mailbox and no everyday work | phishing the mailbox does not yield admin rights |
| Only a few people with the Global Administrator role, everyone else with narrower roles (Exchange, users, helpdesk) | fewer accounts whose takeover means losing the whole service |
| Two cloud-only emergency access accounts with strong authentication, written into a procedure | access to the service when normal sign-in fails |
| Roles granted for the duration of a task (Privileged Identity Management, Entra ID P2 license) | the admin role is not permanently active |
| An alert on every admin role assignment | quick detection of a compromised account |
General principles for reviewing accounts and roles are covered in Identity and access management (IAM).
Apps and user consent
By default, a user can allow an external app to read their mail or files, as long as the permission does not require admin consent. Attackers exploit this: they send a link to an app with a trustworthy name, the user clicks "Accept" and the app gets a token for the mailbox that works regardless of the password and MFA.
What to set:
- User consent only for apps from verified publishers and only for permissions classified as low risk. This is what Microsoft recommends.
- The admin consent workflow, so a user can request an app instead of looking for a workaround.
- A review of existing consents. Changing the setting does not revoke consents granted earlier, so the list of apps with access to mail and files has to be reviewed separately.
Email: forwarding and phishing protection
The first thing an attacker does after taking over a mailbox is create a rule that quietly forwards mail to their own address. That way they keep reading correspondence even after the password is changed.
- Automatic external forwarding explicitly turned off in the outbound spam filter policy (the "Off" setting). The default "Automatic" value behaves differently across organizations, so Microsoft recommends setting it explicitly. Exceptions for specific domains go into remote domains.
- The auto-forwarded messages report once a month, to see who forwards and where.
- Preset security policies (Standard or Strict) in Exchange Online Protection and Defender for Office 365 instead of setting dozens of options by hand.
- SPF, DKIM and DMARC for every domain the company sends mail from. Step by step instructions are in SPF, DKIM and DMARC.
Files: SharePoint, OneDrive and Teams
External sharing is set at the organization level and for each site. The most common gap is "Anyone with the link" links, which work without sign-in and circulate in email for years.
- Limit external sharing to signed-in guests or existing guests, and turn off anonymous links or give them an expiry date.
- Set the default link type to "people in your organization", so quick sharing does not leave the company.
- Set stricter rules for sites with HR and finance data than for the rest.
- Review guests every quarter and remove those who have not signed in for months.
The audit log and regular checks
Without an audit log you cannot establish what an attacker did after taking over an account. According to Microsoft's documentation, auditing is on by default for organizations with enterprise licenses, but not on the Business Basic, Business Standard and Business Premium plans. On those plans you have to turn it on manually in the Microsoft Purview portal. Check this right away, because the log does not work retroactively.
For regular checks, the SCuBA secure configuration baselines from the US agency CISA are useful, together with the free ScubaGear tool, which compares a tenant's settings with the recommendations for Entra ID, Exchange Online, SharePoint and OneDrive, Teams and other services. A report from such a tool does not replace a test, but it shows where to start.
What this cleanup looks like in practice is shown in the case studies on Elevate at a transport company and at a café chain: an inventory, MFA, backups and order in accounts. When a company wants to verify that the settings really work, B2Bnetwork engineers review the configuration and try to get around it the way an attacker would, as part of our security testing.
Questions and answers
Are security defaults enough for a small company?
For a company without an Entra ID P1 license they are the best start: MFA for everyone, legacy protocols blocked and admin accounts protected with one switch. They do not allow exceptions or device-based policies, so a company that needs those moves to Conditional Access. App consent, forwarding, sharing and auditing still have to be set separately.
What if a printer or an old app sends email over SMTP with a password?
Check whether the device supports modern authentication. If it does not, move sending to a mail connector restricted to an IP address or to a relay inside the company network. A password account used by a printer is a typical back door, because it bypasses MFA and rarely gets reviewed.
Will turning on MFA disrupt the team's work?
Usually not, if it is planned. Tell people a few days ahead, prepare instructions for registering in an authenticator app and name someone to help. Old mail clients and devices cause most of the trouble, so before the change, check the sign-in log for who still uses legacy protocols.
How often should Microsoft 365 settings be reviewed?
A quarterly review works well: administrators and roles, guests, app consents, forwarding and audit status. Microsoft regularly changes defaults and adds features, so a configuration from a year ago may no longer match the recommendations. A tool that compares settings against a baseline shortens the review.
Sources
- Microsoft Learn, Security defaults in Microsoft Entra ID
- Microsoft Learn, Block legacy authentication with Conditional Access
- Microsoft Learn, Deprecation of Basic authentication in Exchange Online
- Microsoft Learn, Manage emergency access admin accounts
- Microsoft Learn, Configure how users consent to applications
- Microsoft Learn, Control external email forwarding
- Microsoft Learn, Preset security policies in EOP and Defender for Office 365
- Microsoft Learn, Manage sharing settings for SharePoint and OneDrive
- Microsoft Learn, Turn auditing on or off
- CISA, Secure Cloud Business Applications (SCuBA) Project