Skip to content
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Sponsor

Ensure users installing Outlook add-ins is not allowed

MT.1041MediumExchange OnlineOutlook

Part of Maester · Exchange Online · Outlook · All checks

Run this check
Invoke-Maester -TestId MT.1041

Users SHOULD NOT be allowed to install Outlook add-ins

Rationale: When users can install their own Outlook add-ins, it creates security risks. Malicious add-ins could access email content, exploit vulnerabilities, or facilitate data exfiltration through legitimate-looking add-ins.

  1. Connect to Exchange Online:
Connect-ExchangeOnline
  1. Get the current role assignment policy:
Get-RoleAssignmentPolicy | Where-Object { $_.IsDefault }
  1. Check which app-related roles are assigned:
Get-ManagementRoleAssignment -RoleAssignee "Default Role Assignment Policy" | Where-Object { $_.Role -like "My*Apps" }
  1. Remove the app installation permissions from the default policy:
Get-ManagementRoleAssignment -RoleAssignee "Default Role Assignment Policy" | Where-Object { $_.Role -like "My*Apps" } | Remove-ManagementRoleAssignment -Confirm:$false
  1. Verify the changes:
Get-ManagementRoleAssignment -RoleAssignee "Default Role Assignment Policy" | Where-Object { $_.Role -like "My*Apps" }

The result should return no assignments.

Every attribute of this check
FieldValue
Test IDMT.1041
SeverityMedium
SuiteMaester
ProductExchange Online
FeatureOutlook
AreaApplications and workload identities
Resource typePolicy
User impactMedium
Implementation costLow
MITRE ATT&CKT1137.006 Add-ins, T1114.002 Remote Email Collection
Supports controlsnist-800-53-r5:CM-7, nist-800-53-r5:CM-11
PowerShell testTest-MtExoOutlookAddin
ServicesExchangeOnline