JackKuo-tw / honeyterm

Docker based high interaction honeypot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

honeyterm

Docker based high interaction honeypot

Environment Setup

1. Change your ssh port from 22 to 2222(or other), and restart sshd

vi /etc/ssh/sshd_config

Port 2222

restart sshd

2. Install xinetd

sudo apt-get install xinetd

3. Install socat

sudo apt-get install socat

4. Install scripts

cp scripts/honeypot /usr/bin/honeypot

cp xinetd/honeypot /etc/xinetd.d/honeypot

5. Add honeypot port 22 to services

vi /etc/services

honeypot        22/tcp

6. Restart xinetd

restart xinetd

Make Honeypot Docker Image

There are two versions of terminal session recorder, Showterm & Asciinema, choose what you like :)

Asciinema

cd honeyterm_asciinema
make
make build

Showterm

cd honeyterm
make
make build

Usage

$ ssh guest@[IP/Domain Name] default password is "honeypot"

Type some command there, and logout.

You can now use $ sudo docker exec -it {Your_Container} bash to login without commands record

All records are saved in /tmp

If you choose honeyterm_asciinema, "getAsciinema.sh" can copy asciinema's json files and login information files from all containers.

You can put honeypot.clean to crontab, which can clean containers and backup log in /var/log/honeypot

About

Docker based high interaction honeypot

License:MIT License


Languages

Language:JavaScript 56.4%Language:Ruby 18.9%Language:C 10.8%Language:Shell 5.1%Language:HTML 3.3%Language:Dockerfile 1.6%Language:Python 1.5%Language:Roff 1.3%Language:CSS 0.7%Language:Makefile 0.4%