A high scalable low to medium interactive SSH/TCP honeypot using Linux Namespaces, capabilities, seccomp, cgroups designed for OpenWrt and IoT devices.
Latest commits
| Commit | Message | Author | Date |
|---|---|---|---|
| 11bebb97a9 | added -g3 to default CFLAGS and some safe I/O syscalls to prevent SECCOMP filtering | Toni Uhlig | 6 years ago |
| 834cbc6de2 | fixed superfluous loop iteration | Toni Uhlig | 6 years ago |
| 8e7316c712 | using official archlinux/base image | Toni Uhlig | 6 years ago |
| 60fb08bea6 | force non-zero via setuid/setgid | Toni Uhlig | 6 years ago |
| 266ee9e20c | welcome ASAN, LSAN and UBSAN | Toni Uhlig | 6 years ago |
Branches
| Name | Target | Subject | Date |
|---|---|---|---|
| master | 11bebb97a9 | added -g3 to default CFLAGS and some safe I/O syscalls to prevent SECCOMP filtering | 6 years ago |
| feature/jail_packet | f68988980d | Introduced the protocol->jail binary packet. We are using a handler/callback functions to obtain additional information from the protocol handler and transmit it to the sandbox. | 7 years ago |
| feature/jail_protocol | 48f11c634b | jail protocol handshake read/write | 7 years ago |
| thesis | 322187d46b | thesis update | 8 years ago |
| skeleton | d0f6c772ae | POTD skeleton #105. | 8 years ago |
README
honey[potd]aemon
================
This project is part of a BA thesis. It is currently in a pre-alpha state.
Dependencies
============
Kernel/libc requirements: Cgroups, Namespaces (UTS, IPC, PID, NET, CGROUPS)
Required: libssh, pthread
Optional: libseccomp
A chroot'able directory that contains an executable named '/bin/sh'.
HowTo
=====
Build:
- ./autogen.sh
- ./configure
- make
Run:
- Example:
./src/potd --redirect 0.0.0.0:2222:127.0.0.1:22222 \
--protocol 127.0.0.1:22222:127.0.0.1:33333 \
--jail 127.0.0.1:33333
This will process, filter and redirect all traffic incoming from 0.0.0.0:2222 to the
protocol handler at 127.0.0.1:22222 and if the protocol accepts it, it will forward
all traffic to the jail/sandbox at 127.0.0.1:33333.
(clunky atm, will be simplified in the future)
- Do not forget to set the --rootfs <directory> which contains an executable /bin/sh.
- see ./src/potd --help
Features
========
The server supports currently only shell channels but exec and direct-tcp channels are coming soon!
Supported protocols (at the moment):
- ssh with libssh
Protocols to implement:
- HTTP
- ssh with openssh
- SCADA
- MySQL
Suits perfect for your favoured Desktop/Server/OpenWrt Linux system.
TODOs
=====
- RESTful listener for output sampled data from different processes
(send (real-time)statistics about protocols/jails/etc to higher level apps)
- ptrace support for jailed processes (trace syscalls)
- improved event handling (maybe libevent?)
Software Architecture
=====================
see data/potd-arch.{svg,dia}