Sigma rule: Mail Forwarding/Redirecting Activity In O365

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-072c05947b52, updated 2024-11-17T00:00:00.000Z.

Rule

Title
Mail Forwarding/Redirecting Activity In O365
Status
test
Level
medium
Author
RedCanary Team (idea), Harjot Singh @cyb3rjy0t
Date
2023-10-11
Modified
2024-11-17
File
rules-threat-hunting/cloud/m365/audit/microsoft365_susp_email_forwarding_activity.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects email forwarding or redirecting activity in O365 Audit logs.

Log source

product
m365
service
audit
definition
Requirements: The 'OperationProperties' and 'Parameters' fields are a list of dict. A correct mapping to the 'Value' field inside is recommended to avoid greedy search

Detection

# Note: Might require seperation in the future when enough data is gatherd
selection_updateinbox:
    Operation|contains: 'UpdateInboxRules'
    OperationProperties|contains:
        - 'Forward'
        - 'Recipients'
selection_setmailbox:
    Operation|contains: 'Set-Mailbox'
    Parameters|contains:
        - 'ForwardingSmtpAddress'
        - 'ForwardingAddress'
selection_setinbox:
    Operation|contains:
        - 'New-InboxRule'
        - 'Set-InboxRule'
    Parameters|contains:
        - 'ForwardAsAttachmentTo'
        - 'ForwardingAddress'
        - 'ForwardingSmtpAddress'
        - 'ForwardTo'
        - 'RedirectTo'
        - 'RedirectToRecipients'
condition: 1 of selection_*

False positives (as the rule lists them)

  • False positives are expected from legitimate mail forwarding rules. You need organisation specific knowledge. Filter out the domains that are allowed as forwarding targets as well as any additional metadata that you can use for exclusion from trusted sources/targets in order to promote this to a potential detection rule.

Tags

  • attack.collection
  • attack.stealth
  • attack.t1114.003
  • attack.t1564.008
  • attack.exfiltration
  • attack.t1020
  • detection.threat-hunting

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/cloud/m365/audit/microsoft365_susp_email_forwarding_activity.yml

Sources and licences

  • SigmaHQ

    "Mail Forwarding/Redirecting Activity In O365" by RedCanary Team (idea), Harjot Singh @cyb3rjy0t (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/cloud/m365/audit/microsoft365_susp_email_forwarding_activity.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Mail Forwarding/Redirecting Activity In O365",
entity page, dataset version ref-072c05947b52, updated 2024-11-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/c726e007-2cd0-4a55-abfb-79730fbedee5 (accessed 2026-11-03).
Underlying source: SigmaHQ rule c726e007-2cd0-4a55-abfb-79730fbedee5, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.