蜜罐
开源蜜罐的一些学习资料
现代密网(MHN)
MHN是一个开源软件,它简化了蜜罐的部署,同时便于收集和统计蜜罐的数据。用ThreatStream(http://threatstream.github.io/mhn/ )来部署,MHN使用开源蜜罐来收集数据,整理后保存在Mongodb中,收集到的信息也可以通过web接口来展示或者通过开发的API访问。
MHN能够提供多种开源的蜜罐,可以通过web接口来添加他们。一个蜜罐的部署过程很简单,只需要粘贴,复制一些命令就可以完成部署,部署完成后,可以通过开源的协议hpfeeds来收集的信息。
MHN支持以下蜜罐:
1 | 1.Sort:https://www.snort.org/ |
opencanary_web
github: https://github.com/p1r06u3/opencanary_web
架构: Tornado+Vue+Mysql+APScheduler+Nginx+Supervisor
opencanary_web 添加dionaea支持(可以监听全端口)
安装dionaea : https://github.com/DinoTools/dionaea.git
文档: https://dionaea.readthedocs.io/en/latest/index.html
配置使用sqlite存储connections:
1 | cp /opt/dionaea/etc/dionaea/ihandlers-available/log_sqlite.yaml /opt/dionaea/etc/dionaea/ihandlers-enabled/ |
dionaea.sqlite
1 | 表名connections |
获取sqlite数据并发送到opencanary_web 的 log 接口
1 | #coding: utf-8 |
在crontab 定时执行
```
*/3 * * * * cd /opt/dionaea/var/log/dionaea/ && /usr/bin/python send_dionaea.py >> report.log