Files
blue-team-tools/rules/windows/powershell/powershell_script/posh_ps_send_mailmessage.yml
T

29 lines
1.1 KiB
YAML
Raw Normal View History

2022-01-08 09:17:56 +01:00
title: Powershell Exfiltration Over SMTP
id: 9a7afa56-4762-43eb-807d-c3dc9ffe211b
status: experimental
description: |
2022-07-11 14:11:53 +01:00
Adversaries may steal data by exfiltrating it over an un-encrypted network protocol other than that of the existing command and control channel.
The data may also be sent to an alternate network location from the main command and control server.
2022-01-08 09:17:56 +01:00
references:
2022-07-11 14:11:53 +01:00
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1048.003/T1048.003.md#atomic-test-5---exfiltration-over-alternative-protocol---smtp
2022-01-08 09:17:56 +01:00
- https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/send-mailmessage?view=powershell-7.2
- https://www.ietf.org/rfc/rfc2821.txt
author: frack113
2022-09-26 23:52:48 +02:00
date: 2022/09/26
2022-10-26 09:43:39 +02:00
tags:
- attack.exfiltration
- attack.t1048.003
2022-01-08 09:17:56 +01:00
logsource:
product: windows
category: ps_script
definition: Script block logging must be enabled
2022-01-08 09:17:56 +01:00
detection:
2022-09-26 23:52:48 +02:00
selection:
ScriptBlockText|contains: 'Send-MailMessage'
filter:
ScriptBlockText|contains: 'CmdletsToExport'
condition: selection and not filter
2022-01-08 09:17:56 +01:00
falsepositives:
2022-03-16 14:39:23 +01:00
- Legitimate script
2022-01-08 09:17:56 +01:00
level: medium