Over HTTP(s)
MITRE ATT&CK™ - Exfiltration Over Alternative Protocol - Technique T1048
Theory
Exfiltration Over Alternative Protocol can be done using various common operating system utilities such as Net/SMB or FTP. On macOS and Linux curl may be used to invoke protocols such as HTTP/S
We can also use HTTP(S) Tunneling as a good exfiltration channel.
Practice
We will host a simple PHP server in order to retrieve encoded POST data.
First write the following code in your index.php
file
Second, start the PHP web-server in the same directory
On the victim computer, you can now send data through POST request. It will be saved at /tmp/http.bs64
On attacking machine, we can decode now decode it:
Resources
Last updated