Join our Newsletter — 33% off our NHI Course
Home› Guides› Microsoft Exchange Server Security Guide: RBAC, Hybrid Trust…
Guide Endpoint Security

Microsoft Exchange Server Security Guide: RBAC, Hybrid Trust and Patch Discipline

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 27 October 2026 12 min read
On this page

On-premises Exchange Server combines an internet-facing web stack, deep Active Directory rights and, in hybrid estates, a trust path into Exchange Online, which is why it keeps appearing in the CISA Known Exploited Vulnerabilities catalog. ProxyLogon, ProxyShell and ProxyNotShell were all pre-authentication or low-privilege chains against OWA, ECP, EWS and Autodiscover, and the 2025 hybrid flaw CVE-2025-53786 showed that an attacker with admin rights on one on-premises server could reach the cloud tenant. This guide covers how authentication and RBAC work in Exchange, which roles and service principals are effectively Tier 0, how to configure Extended Protection, AMSI and the Emergency Mitigation service, what to log, and the patch discipline Exchange demands. It is for Exchange and Windows administrators, identity teams and SOC engineers still running Exchange 2019 or Exchange Server Subscription Edition (SE).

Key takeaways

  • Stay on a supported build or disconnect. Exchange 2016 and 2019 reached end of support in October 2025, and security fixes target only the latest and previous cumulative update; anything older should be treated as exposed.
  • Exchange is Tier 0 in practice. Organization Management, the Exchange Trusted Subsystem and Exchange Windows Permissions groups hold rights over Active Directory; protect them like Domain Admins or move to split permissions.
  • Turn on Extended Protection everywhere. It binds NTLM and Kerberos authentication to the TLS channel and blocks the relay attacks that several Exchange CVEs depend on, but it requires consistent TLS and no SSL offloading.
  • Hybrid is a cloud identity. The hybrid connection is an Entra application with a certificate credential; move to the dedicated hybrid app and clear certificates from the shared first-party service principal.
  • Assume you will need to hunt. Keep IIS, HttpProxy, admin audit and AMSI filtering logs long enough to answer "was this server exploited before we patched".

How identity and access work in Exchange Server

Exchange authenticates users against Active Directory and authorises administration through role based access control (RBAC). Client protocols are published by IIS virtual directories on the Mailbox server, which in current versions also hosts the client access front end.

EndpointUsed byDefault authenticationExposure note
/owa, /ecpOutlook on the web, Exchange admin centerForms based (NTLM or Kerberos behind it), optionally AD FS claims or Hybrid Modern AuthPublish /ecp internally only where possible; it was the target of several post-auth RCE chains
/ewsOutlook for Mac, integrations, hybrid free/busyNTLM, Kerberos, OAuthCommon integration surface; ApplicationImpersonation grants access to any mailbox through it
/mapi, /rpcOutlook for WindowsNTLM, Kerberos, OAuth with Hybrid Modern AuthCore client traffic
/Microsoft-Server-ActiveSyncMobile mailBasic over TLS, OAuth with Hybrid Modern AuthPassword spray target when Basic is used
/autodiscoverClient configurationVariesAbused for SSRF in ProxyShell and ProxyNotShell
/powershellExchange Management Shell remotingKerberosShould never be reachable from the internet
  • Hybrid Modern Auth: moves Outlook and mobile clients to Entra ID tokens so MFA and Conditional Access apply on-premises. It is the most effective way to remove password-only protocols from the internet edge.
  • NTLM: still widely used internally, which is why relay protection matters. See the NTLM Relay Guide for the relay mechanics this guide does not repeat.

Admin roles and privileged access

RBAC has three building blocks: management roles (sets of cmdlets and parameters), role groups (universal security groups that carry administrative roles) and role assignment policies (end-user roles beginning with "My" applied to mailboxes). Scopes restrict where a role assignment applies.

Role group or roleWhat it can doTreat as
Organization ManagementAlmost any task on any Exchange object; can grant itself further rolesTier 0; a handful of named admin accounts, no mailboxes on those accounts
Exchange Trusted Subsystem (system group)Read and write to every Exchange object, local Administrators on Exchange servers, member of Exchange Windows PermissionsTier 0; any Exchange server compromise inherits it
Exchange Windows Permissions (system group)In shared and RBAC split models, rights on many non-Exchange AD objects and attributesTier 0; reduce with AD split permissions
Server ManagementServer level transport, mailbox and client access configurationTier 1 with change control
Recipient ManagementCreate and modify recipientsTier 1; scope to OUs with management scopes
Discovery ManagementSearch any mailbox, place holdsHigh sensitivity; legal and compliance only, every search audited
ApplicationImpersonation roleAct as any mailbox in scope through EWSA non-human privilege; assign only with a management scope to a specific service account
Hygiene ManagementAnti-spam and anti-malware configuration; third-party tools often add their service accountsReview membership for stale vendor accounts

Shared, RBAC split or AD split permissions

  • Shared (default): Exchange administrators can create AD security principals through Exchange tools. Simplest, weakest separation.
  • RBAC split: only a role group you create (plus Exchange servers and services) can create principals. Microsoft recommends this for most organisations because it keeps most of the separation with far less friction.
  • AD split: removes Exchange's ability to create security principals and removes the Exchange Windows Permissions rights on non-Exchange AD objects; enabled with Setup.exe /PrepareAD /ActiveDirectorySplitPermissions:True. Mailboxes and groups must then be created in AD first. Choose it where the AD team must own every principal and Exchange compromise must not equal AD compromise; expect more operational overhead.
  • Practical controls: use dedicated admin accounts from privileged access workstations, review Get-ManagementRoleAssignment output monthly, never change the Exchange Trusted Subsystem membership or ACLs manually (Microsoft warns this can cause irreparable damage), and include Exchange in your AD tiering. See the Active Directory and Entra ID Hardening Guide.

Integrations, API tokens and service accounts

Exchange estates accumulate non-human identities: hybrid applications, archive and backup service accounts, multifunction printers relaying mail, CRM connectors and monitoring tools. Each one is a credential with mailbox or transport rights.

  • Dedicated hybrid application: historically, the Hybrid Configuration Wizard uploaded the on-premises Auth Certificate to a shared first-party Exchange Online service principal. CVE-2025-53786 abused that trust: with admin access to an on-premises server, an attacker could escalate into Exchange Online. CISA Emergency Directive 25-02 required agencies to apply the April 2025 Hotfix Update, deploy the dedicated Exchange hybrid app with ConfigureExchangeHybridApplication.ps1 -FullyConfigureExchangeHybridApplication and then purge the shared principal's key credentials. Microsoft's documentation names the parameter -ResetFirstPartyServicePrincipalKeyCredentials and warns that re-running the Hybrid Configuration Wizard with the OAuth option re-uploads the certificate, so the reset must be repeated.
  • Timeline to plan against: Microsoft permanently blocked EWS access through the shared service principal on 31 October 2025, made a Graph based hybrid flow available from the May 2026 Hotfix Update, and lists October 2026 for the retirement of EWS in Exchange Online. Check the current documentation before relying on these dates.
  • Auth Certificate: it signs OAuth tokens between on-premises Exchange and the cloud. Monitor its expiry with Microsoft's MonitorExchangeAuthCertificate script, keep its private key on Exchange servers only, and include it in your certificate inventory.
  • Service accounts with impersonation: grant ApplicationImpersonation through a management scope limited to the mailboxes the application needs, give the account no interactive logon, and alert on its use from unexpected hosts. See the Service Account Security Guide.
  • SMTP relay: anonymous relay receive connectors should be bound to specific source IPs. Devices that authenticate to SMTP hold passwords that rarely rotate; inventory them.
  • Last Exchange Server: after moving mailboxes to Exchange Online, many organisations keep one server for recipient management. CISA highly recommends decommissioning it once it is no longer needed; Microsoft offers management tools without a full server for that purpose.

Logging and detection

SourceLocation or commandWhat to look for
IIS logs%SystemDrive%\inetpub\logs\LogFilesUnusual POSTs to /owa/auth, /ecp, /autodiscover with SSRF patterns; requests to unexpected .aspx files (web shells, ATT&CK T1505.003)
HttpProxy logsV15\Logging\HttpProxyRequests routed to unexpected back ends or with anomalous authenticated user values
AMSI request filtering%ExchangeInstallPath%\Logging\HttpRequestFilteringEntries with ScanResult Detected; any file here means a blocked request
Admin audit logSearch-AdminAuditLogNew role assignments, New-ManagementRoleAssignment, mailbox export requests, transport rule changes, mitigation settings disabled
Mailbox auditMailbox audit loggingNon-owner access, delegate additions (T1098.002), mass item access
Emergency Mitigation serviceApplication log source MSExchange Mitigation ServiceEvent 1005 and 1006 (mitigation applied), 1008 (cannot reach the Office Config Service)
Windows security logDomain controllers and Exchange serversGroup changes to Organization Management and Exchange Windows Permissions; new local admins
Entra IDSign-in and audit logsCredentials added to the hybrid application or the Exchange first-party service principal

Map detections to ATT&CK T1190 Exploit Public-Facing Application, T1505.003 Web Shell, T1114.002 Remote Email Collection and T1098.002 Additional Email Delegate Permissions. The Silk Typhoon Threat Actor Profile Guide covers the group Microsoft associated with the 2021 ProxyLogon exploitation.

Metrics

  • Patch latency: days from an Exchange Security Update or Hotfix Update to installation on every server; target days, not weeks, for internet-facing servers.
  • Health Checker findings: count of red findings across the estate from Microsoft's Exchange Server Health Checker script, trending to zero.
  • Extended Protection coverage: percentage of servers and virtual directories with Extended Protection enabled.
  • Privileged membership: number of members in Organization Management and Discovery Management, and number of ApplicationImpersonation assignments without a scope (target zero).
  • Legacy authentication: share of client connections still using Basic or NTLM from the internet.

Hardening baseline

AreaSettingReference
VersionExchange SE or Exchange 2019 CU15 with the latest update; nothing older than the previous CUExchange updates page
Extended ProtectionEnabled on all servers (default from 2019 CU14) via ExchangeExtendedProtectionManagement.ps1Microsoft Learn Extended Protection article
TLS consistencySchUseStrongCrypto and SystemDefaultTlsVersions set to 1 on every serverExtended Protection prerequisites
NTLMLmCompatibilityLevel 5 (minimum 3) under HKLM\System\CurrentControlSet\Control\LsaExtended Protection prerequisites
Load balancerNo SSL offloading; SSL bridging only with the same certificate as ExchangeExtended Protection prerequisites
AMSICompatible AMSI provider; body scanning on (default from the August 2025 Security Update, setting override section AmsiRequestBodyScanning)Microsoft Learn AMSI article
Emergency MitigationMitigationsEnabled true at organisation and server level; outbound 443 to officeclient.microsoft.com excluded from TLS inspectionMicrosoft Learn EEMS article
PublishingOnly required virtual directories reachable from the internet; /ecp and /powershell internal onlyReverse proxy or firewall rules
Client authHybrid Modern Auth with MFA; disable Basic on ActiveSync and EWS where possibleEntra Conditional Access
Permissions modelRBAC split or AD split; scoped role assignmentsSplit permissions article
HybridDedicated hybrid app; first-party service principal key credentials purgedCISA ED 25-02, dedicated hybrid app article

Rolling out Extended Protection and updates

  1. Inventory: run the Exchange Server Health Checker on every server to capture CU, SU, TLS settings and Extended Protection state; disconnect servers that cannot be brought to a supported build, as ED 25-02 required.
  2. Fix prerequisites: align TLS registry values, set LmCompatibilityLevel, remove SSL offloading, and test third-party proxies or antivirus that inspect TLS locally.
  3. Pilot: enable Extended Protection on one server with the script; test Outlook, OWA, ECP, ActiveSync, Mac clients, hybrid free/busy and mailbox moves. For servers published through the Hybrid Agent, exclude the front-end EWS virtual directory with -ExcludeVirtualDirectories "EWSFrontEnd".
  4. Roll out to remaining servers and re-run the Health Checker.
  5. Rollback: ExchangeExtendedProtectionManagement.ps1 -DisableExtendedProtection -ExchangeServerNames <server>, noting Microsoft's warning that disabling it re-exposes known vulnerabilities; fix the blocking dependency rather than leaving it off.
  6. Update cadence: install each Security Update or Hotfix Update in a test server first, then production within your critical patch SLA. See the Patch Management Guide.

Common misconfigurations

  • Unsupported or lagging builds: the KEV catalog lists ProxyLogon (CVE-2021-26855, CVE-2021-27065), ProxyShell (CVE-2021-34473, CVE-2021-34523, CVE-2021-31207), ProxyNotShell (CVE-2022-41040, CVE-2022-41082) and CVE-2024-21410, all with known ransomware use except the last. Servers more than one CU behind no longer receive fixes.
  • Patched but not investigated: applying an update does not remove web shells or accounts added before patching. After any Exchange KEV, hunt IIS logs and the OWA and ECP directories for new .aspx files.
  • Extended Protection blocked by SSL offloading: load balancers that terminate TLS prevent channel binding, so teams leave protection off. Re-architect to SSL bridging with the same certificate.
  • Hybrid certificate left on the shared principal: deploying the dedicated app but skipping the key credential reset, or re-running the wizard afterwards, leaves the CVE-2025-53786 path open.
  • Unscoped impersonation: an archive or migration tool granted ApplicationImpersonation organisation-wide can read every mailbox, and its password often sits in a configuration file.
  • Exchange outside AD tiering: admins log on to Exchange servers from ordinary workstations, or Exchange servers share local admin passwords, so one compromised server becomes domain compromise through Exchange's AD rights.

Framework mapping

Control areaNIST SP 800-53 Rev. 5NIST CSF 2.0ATT&CK
Supported builds and timely updatesSI-2, CM-8ID.RA-01, PR.PS-02T1190
RBAC, split permissions, scoped rolesAC-5, AC-6PR.AA-05T1098.002, T1078.002
Extended Protection, TLSSC-8, IA-2PR.AA-03T1557.001
Service account and hybrid app credentialsIA-5, AC-2PR.AA-01T1078.002
Web shell and abuse detectionSI-4, AU-12DE.CM-09T1505.003, T1114.002

Practitioner checklist

  • Run the Exchange Server Health Checker on every server and disconnect any server that cannot reach a supported build.
  • Enable Extended Protection on all servers, fixing TLS consistency, NTLMv2 and SSL offloading first.
  • Confirm AMSI body scanning and the Emergency Mitigation service are active, with their logs collected.
  • Reduce Organization Management to named admin accounts and move to RBAC split or AD split permissions.
  • Scope every ApplicationImpersonation assignment and inventory all Exchange service accounts and relay devices.
  • In hybrid estates, deploy the dedicated hybrid app, reset the first-party service principal key credentials and monitor Entra for new credentials on either.
  • Publish only required virtual directories externally and move clients to Hybrid Modern Auth with MFA.
  • Keep IIS, HttpProxy and admin audit logs for at least 90 days and run a compromise hunt after every Exchange KEV.

Standards and references

Related NHI Mgmt Group resources: NTLM Relay Guide · Active Directory and Entra ID Hardening Guide · Patch Management Guide · Service Account Security Guide · Silk Typhoon Threat Actor Profile Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 27 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.