Event type
Mailbox External Forwarding Configuration
Set-Mailbox with ForwardingSmtpAddress - Data Exfiltration Risk
Records Set-Mailbox operations that configure external email forwarding, a common data exfiltration technique where emails are automatically forwarded to external addresses
Overview
What this event covers
Captures Set-Mailbox operations that configure ForwardingSmtpAddress, enabling automatic forwarding of emails to external addresses. This is a critical security event as it's commonly used for data exfiltration and persistence.
When generated
- ›Administrator configures email forwarding for a user mailbox
- ›Attacker with compromised admin credentials sets up data exfiltration
- ›Mailbox delegation includes external forwarding
- ›Legitimate business process requires external email forwarding
Security relevance
CriticalCompliance
Frequency notes
Low frequency under normal operations. Sudden increases or external forwarding to free email services (Gmail, Outlook.com) are high-priority security alerts. Night/weekend activity is particularly suspicious (3x multiplier).
Resources
Docs and tools
Generation
Configuration
- Base frequency
- 2 events/hour
- Time patterns
- business_hours night_hours weekend
- Business hours
- 1.5x
- Night hours
- 3.0x
- Weekend
- 2.0x
Schema
Field definitions
Field reference for this event type — types, requirements, examples, and allowed values.
CreationTime
Timestamp when the Set-Mailbox operation was executed
Source: now() | iso8601
ISO 86012024-12-15T14:23:47ZId
Unique identifier for this audit record
Source: random_guid()
GUIDa8f3c2d1-4b5e-6a7f-8c9d-0e1f2a3b4c5dOperation
Exchange PowerShell cmdlet executed
Source: Static value 'Set-Mailbox'
Set-MailboxOrganizationId
Microsoft 365 tenant identifier
Source: Derived from organization domain with random hex
GUIDb4c5d6e7-8f9a-0b1c-2d3e-4f5a6b7c8d9eRecordType
Office 365 audit log record type (1 = ExchangeAdmin)
Source: Static value 1
1-
1ExchangeAdmin - Exchange administrative operations
ResultStatus
Outcome of the operation
Source: random_choice(['Success', 'PartiallySucceeded', 'Failed'])
Success-
SuccessOperation completed successfully -
PartiallySucceededOperation completed with warnings -
FailedOperation failed
UserKey
Unique identifier for the user who performed the action
Source: registry.get_random_user().email
admin@contoso.comUserType
Type of user performing the action
Source: random_choice([0, 2])
0-
0Regular user -
2Administrator
Workload
Office 365 service where the operation occurred
Source: Static value 'Exchange'
ExchangeUserId
User principal name of the account that performed the action
Source: registry.get_random_user().email
Email/UPNadmin@contoso.comClientIP
IP address and port of the client that performed the operation
Source: random_choice([random_public_ip(), random_private_ip()]) with random_port()
IPv4:Port203.0.113.45:52874ObjectId
Target mailbox that was modified
Source: registry.get_random_user().email
Email/UPNfinance.user@contoso.comExternalAccess
Indicates if the operation was performed from outside the corporate network
Source: random_choice(['true', 'false', 'false', 'false']) - weighted 25% external
trueOrganizationName
Microsoft 365 tenant name
Source: Derived from organization domain
*.onmicrosoft.comcontoso.onmicrosoft.comOriginatingServer
Exchange server that processed the operation
Source: Random Exchange Online server identifier with version
BN8PR01MB5678 (15.20.7654.32)Parameters
PowerShell parameters used in the Set-Mailbox operation
Source: Array of parameter objects
Parameters[].Name
Parameter name (Identity, ForwardingSmtpAddress, DeliverToMailboxAndForward)
ForwardingSmtpAddressParameters[].Value
Parameter value - ForwardingSmtpAddress contains external email in smtp: format
Source: Random external email address with smtp: prefix
smtp:external.recipient@gmail.comSessionId
Session identifier for the administrative connection
Source: random_guid()
GUIDc9d8e7f6-5a4b-3c2d-1e0f-9a8b7c6d5e4fClientInfoString
Information about the client application used
Source: Random client type (WebServices, OWA, PowerShell)
Client=WebServices;Mozilla/5.0;Item
Object containing details about the modified mailbox
Source: Object with Id and ParentFolder
ModifiedProperties
Properties that were changed, showing old and new values
Source: Array showing ForwardingSmtpAddress and DeliverToMailboxAndForward changes