In short
- The foundation of Exchange security is staying current: a supported version (SE), the current CU and the latest security update.
- Extended Protection, AMSI and the Emergency Mitigation Service should be on; TLS 1.0/1.1 and NTLMv1 should be off.
- Admin interfaces (EAC, remote PowerShell) must not be reachable from the internet; web shells and suspicious changes should be hunted for regularly.
Exchange servers are among the few systems on a company network that are directly exposed to the internet and also hold very high privileges in Active Directory. That is why they have been among the most exploited business software in recent years. This guide summarises, with commands, the hardening steps to apply to Exchange Server SE, or to your current server if you haven’t migrated yet.
1. A supported, up-to-date version
Exchange 2016 and 2019 no longer get any security updates. Any hardening on a server running these versions falls short against a new vulnerability that won’t be patched. The first step is moving to Exchange SE: an in-place upgrade from 2019 or a migration from 2016.
- Track every new security update (SU) and install actively exploited ones within a few days. For prioritisation: vulnerability management and patch prioritisation.
- Run Microsoft’s HealthChecker.ps1 script after every update; it reports missing updates and incorrect security settings.
- Install Windows Server updates with the same discipline.
2. Extended Protection
Extended Protection binds Windows authentication to the TLS connection to defend against attacks where credentials are relayed (relay and man-in-the-middle attacks). It is enabled by default during setup on Exchange 2019 CU14 and later, and on Exchange SE. For it to work:
- TLS settings must be consistent across all Exchange servers; for .NET,
SchUseStrongCryptoandSystemDefaultTlsVersionsshould be explicitly set to1. LmCompatibilityLevelmust be at least3, preferably5; NTLMv1 isn’t supported.- The load balancer must not do SSL offloading; SSL bridging is only supported with the same certificate.
# Check the NTLM compatibility level
Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa" -Name LmCompatibilityLevel
# Extended Protection status: with the script from the CSS-Exchange repository
.\ExchangeExtendedProtectionManagement.ps1 -ShowExtendedProtection
3. TLS configuration
- Disable TLS 1.0 and 1.1 on the server and client side; require TLS 1.2.
- On Windows Server 2022 or 2025, Exchange SE also supports TLS 1.3.
- Confirm from the Health Checker report that weak ciphers such as RC4, DES and 3DES are disabled.
- Apply changes to all Exchange servers at the same time and in the same way; inconsistent TLS settings break Extended Protection.
4. AMSI and the Emergency Mitigation Service
AMSI integration has HTTP requests reaching Exchange scanned by the AMSI-compatible antivirus on the server (e.g. Microsoft Defender Antivirus) and blocks known exploitation attempts. The Emergency Mitigation Service (EEMS) lets Microsoft automatically apply temporary mitigations (e.g. IIS URL Rewrite rules) to your server for a known vulnerability before a patch is released.
# Check that AMSI hasn't been disabled through a setting override
Get-SettingOverride | Format-List Name, ComponentName, SectionName, Parameters
# Emergency Mitigation Service: is it on at organisation and server level?
Get-OrganizationConfig | Format-List MitigationsEnabled
Get-ExchangeServer | Format-Table Name, MitigationsEnabled, MitigationsApplied, MitigationsBlocked
For EEMS to work, the IIS URL Rewrite module must be installed and the server’s outbound HTTPS connection to Microsoft’s configuration service must not be blocked.
5. Close admin interfaces to the internet
The Exchange admin centre (EAC, /ecp) and remote PowerShell (/PowerShell) are endpoints users don’t need but attackers value highly.
- On the reverse proxy or web application firewall, publish only the paths that are needed:
/owa,/Microsoft-Server-ActiveSync,/EWS,/mapi,/Autodiscover,/OABand, if in use,/rpc. - Block external access to the
/ecpand/PowerShellpaths. - Use Exchange client access rules to make the EAC reachable only from the management network:
# First make sure you have the management network right; a wrong range locks you out
New-ClientAccessRule -Name "EAC-ManagementNetworkOnly" -Action DenyAccess `
-AnyOfProtocols ExchangeAdminCenter `
-ExceptAnyOfClientIPAddressesOrRanges 192.168.10.0/24
6. Permissions and authentication
- Accounts used for everyday work must not be members of Organization Management; create separate accounts used only for administration.
- Review Exchange’s broad permissions in Active Directory (e.g. Exchange Trusted Subsystem, Exchange Windows Permissions). Details: Active Directory security and hardening.
- Aim for multi-factor authentication for OWA and Outlook: modern authentication with AD FS on-premises, or Hybrid Modern Authentication in hybrid set-ups.
- Monitor the expiry of the Auth certificate; if it expires, PowerShell payload signing and hybrid features break.
# Expiry date of the Auth certificate
$auth = Get-AuthConfig
Get-ExchangeCertificate -Thumbprint $auth.CurrentCertificateThumbprint | Format-List Subject, NotAfter
7. Auditing and logs
# Is the admin audit log on?
Get-AdminAuditLogConfig | Format-List AdminAuditLogEnabled, AdminAuditLogAgeLimit
# Mailboxes with mailbox auditing switched off
Get-Mailbox -ResultSize Unlimited | Where-Object { -not $_.AuditEnabled } |
Set-Mailbox -AuditEnabled $true
# Admin changes in the last 7 days
Search-AdminAuditLog -StartDate (Get-Date).AddDays(-7) |
Format-Table RunDate, Caller, CmdletName, ObjectModified
Send IIS logs and the Exchange proxy logs under Logging\HttpProxy to a central system. For detailed server-side visibility, see our Sysmon and Windows event logs guides.
8. Hunt for signs of compromise
In past Exchange attacks, attackers left web shells with the .aspx extension in web directories for persistence. Regularly check these folders for recently changed files:
$paths = "$env:ExchangeInstallPath\FrontEnd\HttpProxy\owa\auth",
"C:\inetpub\wwwroot\aspnet_client"
Get-ChildItem $paths -Recurse -Include *.aspx, *.ashx -ErrorAction SilentlyContinue |
Where-Object LastWriteTime -gt (Get-Date).AddDays(-30) |
Select-Object FullName, LastWriteTime
CU and SU installations also update legitimate files in these folders; compare the dates of any files found against your update dates. If you find a file you don’t recognise, take a copy before deleting it and start incident response.
Out-of-support server warning: if you still run Exchange 2016 or 2019, these steps reduce the risk but don’t remove it. Until the migration is complete, narrow external access as much as possible (e.g. OWA only over VPN) and monitor the logs closely.
Conclusion
A secure Exchange server comes from a supported version, updates installed on time, correctly configured Extended Protection and TLS, admin interfaces closed to the outside world, and regular monitoring. At SistemON, as part of our cyber security service, we audit the security of your Exchange servers, fix the gaps and manage updates on a regular basis.
Frequently Asked Questions
Our Exchange server is behind a firewall. Is there still a risk?
Yes. As long as port 443 is open to the internet for OWA, ActiveSync and Autodiscover, Exchange’s web components are directly exposed to attack. Vulnerabilities such as ProxyLogon and ProxyShell were exploited exactly this way. A firewall is necessary, but it doesn’t replace updating and hardening.
How quickly should we install security updates?
Aim to install security updates (SUs) released for Exchange within a few days, especially those announced as actively exploited. That needs a pre-agreed maintenance window and a tested backup ready to go.
Could some things stop working when Extended Protection is turned on?
They could. Load balancers doing SSL offloading, inconsistent TLS settings between servers and older clients using NTLMv1 aren’t compatible with Extended Protection. That is why the prerequisites should first be checked with Health Checker.
Need help with this?
Let us review your infrastructure free for the first month and share a clear list of risks and priorities.