Suspicious PowerShell Mailbox SMTP Forward Rule

Detects usage of the powerShell Set-Mailbox Cmdlet to set-up an SMTP forwarding rule.

Sigma rule (View on GitHub)

 1title: Suspicious PowerShell Mailbox SMTP Forward Rule
 2id: 15b7abbb-8b40-4d01-9ee2-b51994b1d474
 3status: test
 4description: Detects usage of the powerShell Set-Mailbox Cmdlet to set-up an SMTP forwarding rule.
 5references:
 6    - https://m365internals.com/2022/10/07/hunting-in-on-premises-exchange-server-logs/
 7author: Nasreddine Bencherchali (Nextron Systems)
 8date: 2022/10/26
 9tags:
10    - attack.exfiltration
11logsource:
12    product: windows
13    category: ps_script
14    definition: 'Requirements: Script Block Logging must be enabled'
15detection:
16    selection:
17        ScriptBlockText|contains|all:
18            - 'Set-Mailbox '
19            - ' -DeliverToMailboxAndForward '
20            - ' -ForwardingSmtpAddress '
21    condition: selection
22falsepositives:
23    - Legitimate usage of the cmdlet to forward emails
24level: medium

References

Related rules

to-top