Exfiltration Over Web Service: Exfiltration to Text Storage Sites

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.[1]

Note: This is distinct from Exfiltration to Code Repository, which highlight access to code repositories via APIs.

ID: T1567.003
Sub-technique of:  T1567
Tactic: Exfiltration
Platforms: Linux, Windows, macOS
Contributors: Harun Küßner
Version: 1.0
Created: 27 February 2023
Last Modified: 04 May 2023

Mitigations

ID Mitigation Description
M1021 Restrict Web-Based Content

Web proxies can be used to enforce an external network communication policy that prevents use of unauthorized external services.

Detection

ID Data Source Data Component Detects
DS0029 Network Traffic Network Traffic Content

Monitor and analyze network traffic for exfiltration attempts using text storage sites, i.e. POST requests to text storage sites.

Network Traffic Flow

Monitor network data for uncommon data flows, specifically to text storage sites such as Pastebin[.]com, Paste[.]ee, and Pastebin[.]pl.

References