Cyber Security · Advanced

Microsoft 365 Security Hardening: 15 Settings to Make in Your Tenant

A compromised Microsoft 365 account can lead to fake invoices, data leaks and ransomware. We list 15 security settings to check in your tenant, with command examples.

SistemON Technical Team · · 5 min read

In short

  • Most attacks on Microsoft 365 accounts can be stopped with MFA and conditional access.
  • The classic traces of a compromised account: automatic forwarding outside the company and hidden inbox rules.
  • Secure Score is a good starting point for measuring and prioritising your tenant’s security.

Microsoft 365 accounts are very valuable to attackers: fake invoices can be sent to customers by email, documents in OneDrive and SharePoint can be downloaded, and the same account can be used to move into other systems. This article summarises 15 settings tenant admins should check, in order of priority. For licence differences, see our article Business Premium or Standard?; some of the settings below need Entra ID P1 or Defender for Office 365.

Identity and sign-in

1. MFA for all users

If you don’t have a P1 licence, switch on Security Defaults. On Business Premium, create a conditional access policy that requires MFA for all users. Microsoft Authenticator (with number matching) or FIDO2 keys should be preferred to SMS as the verification method.

2. Block legacy authentication

Old protocols that don’t support MFA are a way around it. Create a conditional access policy that blocks access for “Other clients” and “Exchange ActiveSync clients”. If you still have printers or applications using SMTP AUTH, identify them and leave it enabled only on the mailboxes that need it.

3. Separate admin accounts and limit their number

Keep the number of Global Administrators between 2 and 4, and don’t use admin accounts for everyday work. Assign more narrowly scoped roles for Exchange, user or helpdesk tasks.

4. Create an emergency access account

Set up one or two “break-glass” accounts that are excluded from conditional access policies, have strong passwords and have their use monitored. This removes the risk of locking yourself out of the tenant with your own policy.

5. Limit risky sessions and locations

Use conditional access so admin roles can only be used from company devices or specific locations. You can block sign-ins from countries where you don’t do business.

Email security

6. Turn off automatic forwarding outside the company

The first thing attackers do in a compromised account is forward a copy of incoming email outside the company. Keep automatic forwarding off in the outbound spam policy and check existing forwarding:

# Exchange Online PowerShell
Connect-ExchangeOnline

# Mailboxes with external forwarding set
Get-Mailbox -ResultSize Unlimited |
  Where-Object { $_.ForwardingSmtpAddress -or $_.ForwardingAddress } |
  Select-Object UserPrincipalName, ForwardingSmtpAddress, ForwardingAddress, DeliverToMailboxAndForward

# Turn off automatic forwarding for the default remote domain
Set-RemoteDomain Default -AutoForwardEnabled $false

7. Look for suspicious inbox rules

To hide their own correspondence, attackers create rules that delete emails containing words such as “invoice”, “payment” or “IBAN”, or move them to the RSS folder:

Get-Mailbox -ResultSize Unlimited | ForEach-Object {
  Get-InboxRule -Mailbox $_.UserPrincipalName |
    Where-Object { $_.ForwardTo -or $_.RedirectTo -or $_.DeleteMessage -or $_.MoveToFolder -like "*RSS*" } |
    Select-Object MailboxOwnerId, Name, ForwardTo, RedirectTo, DeleteMessage, MoveToFolder
}

8. SPF, DKIM and DMARC

Configure all three records to make your domain harder to spoof, and tighten DMARC in stages. Details: SPF, DKIM and DMARC guide.

9. Preset security policies and advanced protection

Apply Defender for Office 365’s preset (Standard/Strict) security policies. They enable impersonation protection, Safe Links and Safe Attachments with the recommended values.

Apps, data and devices

10. Limit users’ ability to consent to apps

Granting a malicious app permission to “read my mailbox” is a way to take over an account without stealing a password (OAuth consent phishing). Limit user consent to verified publishers and low-risk permissions, and turn on the admin consent workflow for other requests.

11. Restrict external sharing

In SharePoint and OneDrive, turn off “Anyone” links or make an expiry date mandatory, and set the default sharing link type to “People in your organisation”.

12. Device compliance

Define compliance policies in Intune, such as disk encryption, screen lock and an up-to-date operating system, and use conditional access so sensitive apps can only be reached from compliant devices.

Monitoring

13. Confirm the audit log is on

Get-AdminAuditLogConfig | Select-Object UnifiedAuditLogIngestionEnabled
Get-OrganizationConfig | Select-Object AuditDisabled

The unified audit log is on by default in new tenants, but it should be checked in older ones. AuditDisabled should be False.

14. Review alert policies

Make sure alerts for events such as a forwarding rule being created, unusual bulk file downloads and admin roles being assigned go to the right people.

15. Track Secure Score regularly

Microsoft Secure Score ranks the recommendations for your tenant by impact. Review it monthly and document both what you have applied and the risks you have consciously accepted.

Order matters: create conditional access policies in “Report-only” mode first and review their impact in the sign-in logs. Don’t switch on a blocking policy before setting up the emergency access account.

Conclusion

Microsoft 365’s security features are powerful, but most don’t come fully configured by default. MFA, switching off legacy authentication, auditing forwarding rules and limiting app consent stop most account takeover attacks. On the on-premises side, our articles on Active Directory hardening and event log monitoring complete the picture. At SistemON, as part of our Microsoft solutions, we assess your tenant’s security and apply settings in stages without disrupting your workflow.

Frequently Asked Questions

Should we use security defaults or conditional access?

If you don’t have an Entra ID P1 licence (e.g. Business Basic or Standard), at least switch on security defaults. On plans that include P1, such as Business Premium, conditional access is far more flexible and powerful. The two can’t be used at the same time; security defaults are switched off when you move to conditional access.

Why do we need an emergency access (break-glass) account?

A mistake in a conditional access policy or a problem with the MFA service can lock every admin out of the tenant. One or two emergency accounts, excluded from conditional access policies, with very strong passwords, stored securely and with their use monitored, remove this risk.

What should we do if we suspect an account has been compromised?

Reset the account’s password, revoke all its sessions, review its MFA methods, check inbox rules and forwarding, and examine recent sign-in records and the audit log. If emails were sent externally from the account, let the recipients know.

Need help with this?

Let us review your infrastructure free for the first month and share a clear list of risks and priorities.

Talk to an expert

First month free

Keep your systems ON.
Leave the rest to us.

Let us review your infrastructure free of charge for a month and walk you through the state of your backups, security and performance.

Chat with us