This is a project for the Cloud Village at DefCon 27, demonstrating just how easy it is for attackers and malware authors to use SaaS and social media services as command and control vectors.
This code is a proof of concept intended for research purposes only. It does not contain any payloads. It is not weaponized.
Design was in no small part influenced by:
- The Slub Backdoor as reported by Trend Micro and us at Netskope
- PaulSec's Twittor
- Coalfire's Slackor
We leverage the following apps/services:
Retrieving API keys
- Github Gist
Command and Control
- Imgur (images only)
saasy_boi offers file upload and download/execute functionality, reverse shell functionality, and can take and upload screenshots of the active screen.
They key here is that we're looking to be robust to changing API keys, getting banned from platforms, and from IDS/IPS. The weakness that can be exploited is that the initial fetching of API keys from Github and Pastebin necessitates that those locations be hard-coded. There are some potential workarounds there (including maybe just hard-coding the API keys for Slack from the start!).
Note that this code works on my configuration of my machines and even though I've successfully tested it on Mac, Linux (Ubuntu 18.04), and Windows, it may require some work to run in your particular environment. No guarantee of this code working or warranty of any kind is implied.
Again, this code is a proof of concept intended for research purposes only. It does not contain any payloads. It is not weaponized.