Skip to content

hosafxd/HoneyManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍯 HoneyManager

Decoy Intelligence: Automated Threat Classification Through Deception

HoneyManager is an ultra-lightweight, open-source honeypot management framework designed specifically for home users and Small-to-Medium Businesses (SMBs). It transforms obsolete hardwareβ€”old laptops, desktops, Raspberry Pis, or Android devicesβ€”into active security sensors that detect both external attacks and internal lateral movement.

🎯 Why HoneyManager?

Traditional enterprise security solutions require expensive servers with massive RAM. HoneyManager changes the game:

  • πŸ–₯️ Runs on "Worthless" Hardware: Even a 15-year-old Core 2 Duo laptop with 512MB RAM becomes a modern security appliance
  • 🎭 Zero False Positives: Internal honeypots mean every connection is a confirmed threat (no legitimate device should touch them)
  • πŸ” Detects the "Guest Threat": Catches infected smartphones or consultant laptops attempting lateral movement on your Wi-Fi
  • 🌱 Sustainable Tech: Repurpose e-waste instead of buying new security appliances

✨ Key Features

πŸš€ Ultra-Lightweight Architecture

  • RAM Usage: ~250MB total (compared to 8GB+ for ELK stacks)
  • Storage: 4GB minimum
  • CPU: Single-core 1GHz sufficient
  • Custom Python analysis engine (no heavy JVM or complex indexing)

🎭 Four Honeypot Profiles

  1. SSH/Telnet Trapper (Cowrie): Mimics QNAP NAS or OpenWRT routers

    • Captures brute-force attempts, executed commands, downloaded malware hashes
  2. Web Camera Simulation (Nginx): 5MB Alpine-based container

    • Fake Hikvision camera interface
    • Extracts credentials from POST requests even in encrypted traffic
  3. Windows Services (Dionaea): SMB/FTP/MS-SQL trap

    • Captures actual malware binaries in isolated containers
  4. Custom IoT: General-purpose Linux IoT simulation

    • Simulates smart fridges, printers with Telnet/FTP/SSH open

πŸ”” Smart Alerting

  • Telegram Integration: Instant notifications for critical events
  • Severity Levels: Critical (login attempts), High (port scans), Medium (reconnaissance)
  • High Fidelity: Near-zero false positives due to internal placement

🌐 Professional Networking

  • Macvlan Support: Containers get real IPs from your router (bypasses NAT overhead)
  • Low CPU Impact: Direct layer-2 networking reduces virtualization load

πŸ–₯️ System Requirements

Component Minimum Recommended
CPU 1 GHz Single Core Any modern dual-core
RAM 512 MB 1 GB
Storage 4 GB SD Card/HDD 16 GB SSD
Network Ethernet/Wi-Fi Ethernet preferred
OS Linux (RHEL, Ubuntu, Debian, Rocky) Latest LTS Ubuntu/Debian

Tested on: Raspberry Pi Zero W, 2008 Netbooks, Proxmox LXC containers


πŸš€ Quick Start Guide

1. Clone Repository

git clone https://github.com/yourusername/honeymanager.git
cd honeymanager

2. Configure Environment

cp .env.example .env
# Edit .env and add your Telegram Bot API key
nano .env

3. Install Python Dependencies

pip3 install -r backend/requirements.txt

4. Create Macvlan Network

Adjust subnet/gateway to match your router

docker network create -d macvlan \
  --subnet=192.168.1.0/24 \
  --gateway=192.168.1.1 \
  -o parent=eth0 \
  macvlan_honeynet

5. Build & Launch

docker-compose build

# Terminal 1: Start API
python3 backend/app.py

# Terminal 2: Start Log Watcher
python3 backend/watcher.py

6. Access Dashboard

Open browser: http://<your-device-ip>:5000

7. (Optional) Systemd Auto-start

sudo cp systemd/*.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable honeymanager-api honeymanager-watcher
sudo systemctl start honeymanager-api honeymanager-watcher

πŸ—οΈ Architecture Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                 HoneyManager Host                   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚   Flask     β”‚  β”‚   SQLite     β”‚  β”‚  Custom  β”‚  β”‚
β”‚  β”‚   Backend   β”‚  β”‚   Database   β”‚  β”‚  Watcher β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜  β”‚
β”‚         β”‚                                 β”‚         β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚           Docker + Macvlan Network           β”‚  β”‚
β”‚  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”‚  β”‚
β”‚  β”‚  β”‚ Cowrie  β”‚ β”‚ Dionaea β”‚ β”‚  IoT    β”‚        β”‚  β”‚
β”‚  β”‚  β”‚ (SSH)   β”‚ β”‚ (SMB)   β”‚ β”‚ (Multi) β”‚        β”‚  β”‚
β”‚  β”‚  β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”˜        β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β”‚          β”‚          β”‚
      Real IPs: 192.168.1.x/24 (Direct from Router)

Core Components:

  • app.py: Flask API and web dashboard
  • watcher.py: Real-time log analysis engine (replaces heavy SIEM)
  • models.py: SQLite ORM for alerts and events
  • docker_manager.py: Container orchestration via Docker SDK

πŸ“Š What Gets Detected?

Threat Type Example Severity
Brute Force 5+ failed SSH logins in 5 minutes πŸ”΄ Critical
Lateral Movement Guest phone scanning internal IPs πŸ”΄ Critical
Credential Harvesting POST to fake camera login page 🟠 High
Malware Drops Binary uploaded via SMB 🟠 High
Reconnaissance Port scans, service enumeration 🟑 Medium

πŸ”’ Security Notes

⚠️ Important: HoneyManager is a detection tool, not a prevention system. It intentionally does not block attacker IPs to continue gathering intelligence. Use in conjunction with your firewall.

  • All malware samples are captured in isolated Docker containers
  • SQLite database is lightweight but not encrypted by default (encrypt your host disk)
  • Place honeypots on internal VLANs for best protection

πŸ›£οΈ Roadmap & Current Status

🚧 Active Development Phase

HoneyManager is currently functional and deployed, but we're rapidly improving it. Here's what's coming:

βœ… Completed

  • Core Flask backend and REST API
  • Four honeypot container types
  • Telegram alerting system
  • Macvlan networking support
  • Real-time log watcher
  • Web dashboard UI

πŸ”„ In Progress

  • Advanced analytics dashboard (attack graphs, trends)
  • Automatic malware sandboxing integration
  • REST API for external SIEM integration

πŸ“‹ Planned Features

  • Machine learning for attack pattern recognition (MITRE ATTACK CATEGORY LABELLING)
  • Automatic threat intelligence feeds (IOC blocking)
  • On the fly labelling using Kafka & Python services
  • Kubernetes support for scaling
  • Web-based configuration wizard

πŸ‘€ Follow Us for Updates

πŸ”” Stay Tuned! We're constantly improving HoneyManager with new deception techniques, better analytics, and broader device support.


πŸ™ Acknowledgments

  • Cowrie for the excellent SSH honeypot
  • Dionaea for multi-protocol capture
  • Alpine Linux for making 5MB containers possible
  • The open-source security community

Made with ancestry for analysts who extract contextual threat intelligence from deception through NLP and automated classification.

About

Interactive Honeypot Network with Logging and Incident Response

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors