Files
atomic-red-team/atomics/T1114.001/T1114.001.yaml
Carrie Roberts d4709021fb Handle spaces in file paths (#2535)
* updating atomics count in README.md [ci skip]

* wip

* handle spaces in path

* update readme

* fix typo

---------

Co-authored-by: publish bot <opensource@redcanary.com>
2023-09-22 10:47:25 -06:00

36 lines
1.5 KiB
YAML

attack_technique: T1114.001
display_name: 'Email Collection: Local Email Collection'
atomic_tests:
- name: Email Collection with PowerShell Get-Inbox
auto_generated_guid: 3f1b5096-0139-4736-9b78-19bcb02bb1cb
description: |
Search through local Outlook installation, extract mail, compress the contents, and saves everything to a directory for later exfiltration.
Successful execution will produce stdout message stating "Please be patient, this may take some time...". Upon completion, final output will be a mail.csv file.
Note: Outlook is required, but no email account necessary to produce artifacts.
supported_platforms:
- windows
input_arguments:
output_file:
description: Output file path
type: string
default: $env:TEMP\mail.csv
file_path:
description: File path for Get-Inbox.ps1
type: string
default: PathToAtomicsFolder\T1114.001\src
dependency_executor_name: powershell
dependencies:
- description: |
Get-Inbox.ps1 must be located at #{file_path}
prereq_command: |
if (Test-Path "#{file_path}\Get-Inbox.ps1") {exit 0} else {exit 1}
get_prereq_command: |
Invoke-WebRequest "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1114.001/src/Get-Inbox.ps1" -OutFile "#{file_path}\Get-Inbox.ps1"
executor:
command: |
powershell -executionpolicy bypass -command "#{file_path}\Get-Inbox.ps1" -file #{output_file}
cleanup_command: |
Remove-Item #{output_file} -Force -ErrorAction Ignore
name: powershell