FortiSIEM Rules

Office365: Set-Mailbox Forwarding Action Created

Rule ID


Default Status



An admin changed the properties of a mailbox that is forwarding mail to another destination.







Collection consists of techniques adversaries may use to gather information and the sources information is collected from that are relevant to following through on the adversary's objectives. Frequently, the next goal after collecting data is to steal (exfiltrate) the data. Common target sources include various drive types, browsers, audio, video, and email. Common collection methods include capturing screenshots and keyboard input.

MITRE ATT&CK® Techniques


Email Collection: Email Forwarding Rule

Adversaries may setup email forwarding rules to collect sensitive information. Adversaries may abuse email-forwarding rules to monitor the activities of a victim, steal information, and further gain intelligence on the victim or the victim's organization to use as part of further exploits or operations. Any user or administrator within the organization (or adversary with valid credentials) can create rules to automatically forward all received messages to another recipient, forward emails to different locations based on the sender, and more.



Data Source

Office 365 via Management Activity API



Remediation Guidance

Investigate that the mail action was intended. Mail forwards, redirects, and otherwise can be used to obscure malicious activity.

Time Window

If the following pattern or patterns match an ingested event within the given time window in seconds, trigger an incident.

300 seconds

Trigger Conditions

If the following defined pattern/s occur within a 300 second time window.


SubPattern Definitions

SubPattern Name: o365_forwards

This is the named definition of the event query, this is important if multiple subpatterns are defined to distinguish them.

SubPattern Query

This is the query logic that matches incoming events

eventType = "MS_OFFICE365_Exchange_Set-Mailbox"  AND ( options CONTAIN "DeliverToMailboxAndForward"  OR  options CONTAIN "ForwardingAddress"  OR  options CONTAIN "ForwardingSmtpAddress"  OR  options CONTAIN "GrantSendOnBehalfTo"  OR  options CONTAIN "MessageCopyForSendOnBehalfEnabled"  OR  options CONTAIN "MessageCopyForSentAsEnabled" )

Group by Attributes

This defines how matching events are aggregated, only events with the same matching attribute values are grouped into one unique incident ID


Aggregate Constraint

This is most typically a numerical constraint that defines when the rule should trigger an incident

COUNT(*) >= 1

Incident Attribute Mapping

This section defines which fields in matching raw events should be mapped to the incident attributes in the resulting incident.

The available raw event attributes to map are limited to the group by attributes and the aggregate event constraint fields for each subpattern