T1098.002 Sumo Logic CSE · Sumo

Detect Additional Email Delegate Permissions in Sumo Logic CSE

Adversaries may grant additional permission levels to maintain persistent access to an adversary-controlled email account. Using cmdlets like Add-MailboxPermission in Exchange/Office 365, or assigning folder-level permissions, attackers can ensure continued access to target mailboxes. This technique is commonly used in BEC incidents and persistent threat campaigns (APT28, APT29, Magic Hound) to maintain covert email access, enable internal spearphishing, and evade detection by reading communications without triggering login alerts.

MITRE ATT&CK

Tactic
Persistence Privilege Escalation
Technique
T1098 Account Manipulation
Sub-technique
T1098.002 Additional Email Delegate Permissions
Canonical reference
https://attack.mitre.org/techniques/T1098/002/

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
(_sourceCategory=*o365* OR _sourceCategory=*office365* OR _sourceCategory=*azure/audit*)
| json field=_raw "Operation" as operation nodrop
| json field=_raw "UserId" as user_id nodrop
| json field=_raw "ClientIP" as client_ip nodrop
| json field=_raw "Parameters" as parameters nodrop
| json field=_raw "RecordType" as record_type nodrop
| where operation in (
    "Add-MailboxPermission",
    "Add-MailboxFolderPermission",
    "Set-MailboxFolderPermission",
    "Add-RecipientPermission",
    "Set-Mailbox",
    "New-ManagementRoleAssignment"
  )
  OR (operation in (
    "Add app role assignment to service principal",
    "Add delegated permission grant",
    "Add member to role"
  ) and (parameters matches "(?i)(ApplicationImpersonation|Exchange\.ManageAsApp)"))
| where parameters matches "(?i)(FullAccess|SendAs|SendOnBehalf|ApplicationImpersonation|ChangePermission|ChangeOwner)" or operation = "New-ManagementRoleAssignment"
| if(parameters matches "(?i)ApplicationImpersonation", 1, 0) as is_impersonation
| if(parameters matches "(?i)(FullAccess|SendAs|SendOnBehalf)", 1, 0) as is_high_risk_right
| if(parameters matches "(?i)(\"Default\"|\"Anonymous\")", 1, 0) as is_default_anon
| if(operation matches "(?i)MailboxFolderPermission", 1, 0) as is_folder_perm
| (is_impersonation + is_high_risk_right + is_default_anon) as risk_score
| if(risk_score >= 2, "HIGH", if(risk_score = 1, "MEDIUM", "LOW")) as risk_level
| fields _messageTime, user_id, operation, client_ip, parameters, is_impersonation, is_high_risk_right, is_default_anon, is_folder_perm, risk_score, risk_level
| sort by _messageTime desc
high severity high confidence

Sumo Logic search detecting Exchange mailbox permission changes and Azure AD ApplicationImpersonation grants from O365 and Azure audit log sources. Parses JSON fields from raw events, filters on known suspicious cmdlets and access rights, and computes a risk score mirroring the SPL logic: ApplicationImpersonation, high-risk rights (FullAccess/SendAs), and default/anonymous scope each contribute to risk level (HIGH/MEDIUM/LOW).

Data Sources

Office 365 Audit Log (Sumo Logic O365 HTTP source or Collector)Azure Active Directory Audit Logs (Sumo Logic Azure AD source)

Required Tables

Sumo Logic O365 source (_sourceCategory=*o365*)Sumo Logic Azure AD source (_sourceCategory=*azure/audit*)

False Positives & Tuning

  • Automated Microsoft 365 provisioning tools that configure delegate access for executive/EA mailbox pairs during onboarding
  • Email archiving and compliance solutions (Mimecast, Barracuda, AvePoint) with pre-approved ApplicationImpersonation service accounts
  • Helpdesk bulk operations assigning FullAccess to shared mailboxes during department restructuring or employee offboarding
Download portable Sigma rule (.yml)

Other platforms for T1098.002


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Grant FullAccess Mailbox Permission via PowerShell

    Expected signal: Office 365 Unified Audit Log: Operation='Add-MailboxPermission', RecordType='ExchangeAdmin', UserId=<admin UPN>, [email protected], Parameters containing 'FullAccess' and '[email protected]'. PowerShell Event ID 4104 (ScriptBlock) if logging is enabled on the workstation running the cmdlet.

  2. Test 2Grant ApplicationImpersonation Role for Tenant-Wide Mailbox Access

    Expected signal: Office 365 Unified Audit Log: Operation='New-ManagementRoleAssignment', RecordType='ExchangeAdmin', Parameters containing 'ApplicationImpersonation' and '[email protected]'. Azure AD Audit Logs may also show a role assignment event. PowerShell ScriptBlock Log (Event ID 4104) captures the New-ManagementRoleAssignment cmdlet with parameters.

  3. Test 3Set Default User Reviewer Permission on Mailbox Inbox Folder

    Expected signal: Office 365 Unified Audit Log: Operation='Set-MailboxFolderPermission' and 'Add-MailboxFolderPermission', Parameters containing 'Default' and 'Reviewer'. Two separate audit events expected — one for Inbox and one for root folder. RecordType='ExchangeAdmin'.

  4. Test 4Grant SendAs Permission to Attacker Account for BEC

    Expected signal: Office 365 Unified Audit Log: Operation='Add-RecipientPermission', RecordType='ExchangeAdmin', [email protected], Parameters containing 'SendAs' and '[email protected]'. ClientIP of the admin session performing the grant.

Unlock Pro Content

Get the full detection package for T1098.002 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections