Open Canary Honey Pot on Raspberry Pi
- Download 32Bit Ubuntu Image
- Flash Image onto SD Card
- Update System
- Install Pre Requsites
- Setup Virtual Environment
- Install Open Canary
- Configure Open Canary
- Setup E-Mail
- Start Open Canary
- Restart Open Canary
- Related
- Links
Download 32Bit Ubuntu Image
https://ubuntu.com/download/raspberry-pi
Flash Image onto SD Card
dd status=progress if=/downloads/ubuntu.iso of=/dev/mmcblkid0
Update System
sudo sudo apt update && sudo apt upgrade -y
Install Pre Requsites
sudo apt install nano ftp python-dev python-pip python-virtualenv build-essential libssl-dev libffi-dev -y
Setup Virtual Environment
virtualenv env/
. env/bin/activate
Install Open Canary
pip install --upgrade 'setuptools<45.0.0'
pip install rdpy #Must be install first on Ubuntu
pip install opencanary
Configure Open Canary
opencanaryd --copyconfig
[*] A sample config file is ready (/home/ubuntu/.opencanary.conf) [*] Edit your configuration, then launch with "opencanaryd --start"
nano ~/.opencanary.conf
Setup E-Mail
Add the SMTP Handeler snippet below into ~/.opencanary.conf
SMTP Handeler Snippet
"SMTP":
{
"class": "logging.handlers.SMTPHandler",
"mailhost": ["smtp.gmail.com", 587],
"fromaddr": "noreply@yourdomain.com",
"toaddrs" : ["youraddress@gmail.com"],
"subject" : "OpenCanary Alert",
"credentials" : ["youraddress", "abcdefghijklmnop"],
"secure" : []
},
Edit opencanary.conf
nano ~/.opencanary.conf
Insert SMTP Handeler Snippet into opencanary.conf
"kwargs": {
"formatters": {
"plain": {
"format": "%(message)s"
}
},
"handlers": {
<<<<<<<<<<<<<<<<<<<<Inset Here>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"console": {
"class": "logging.StreamHandler",
"stream": "ext://sys.stdout"
Start Open Canary
opencanaryd --start
Restart Open Canary
opencanaryd --restart
Related
Links
- https://github.com/thinkst/opencanary
- https://opencanary.readthedocs.io/en/latest/starting/opencanary.html
- https://ubuntu.com/download/raspberry-pi