Skip to content

Commit

Permalink
Update rule Powershell Exfiltration Over SMTP considering the attachm…
Browse files Browse the repository at this point in the history
…ent flag
  • Loading branch information
dan21san committed Oct 15, 2024
1 parent f33530e commit 033d531
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ references:
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/send-mailmessage?view=powershell-7.4
- https://www.ietf.org/rfc/rfc2821.txt
author: frack113
date: 2022-09-26
date: 2024-10-15
tags:
- attack.exfiltration
- attack.t1048.003
Expand All @@ -19,7 +19,9 @@ logsource:
definition: 'Requirements: Script Block Logging must be enabled'
detection:
selection:
ScriptBlockText|contains: 'Send-MailMessage'
ScriptBlockText|contains|all:
- 'Send-MailMessage'
- '-Attachments'
filter:
ScriptBlockText|contains: 'CmdletsToExport'
condition: selection and not filter
Expand Down

0 comments on commit 033d531

Please sign in to comment.