DecoyHive is a honeypot generator toolkit designed to analyze a target system and create a near-exact clone using containerized or VM-based deployment. It consists of two main components:
- Analyzer – Gathers information about the target system, including hardware, operating system, network settings, and running services, then generates a configuration file.
- Generator – Uses the generated configuration file to create a decoy environment that mimics the target system, helping detect and divert unauthorized access attempts.
- System Analysis: Extracts key system details, including OS information, network configuration, and active services.
- Config-based Cloning: Uses an automatically generated config file to create an accurate honeypot environment.
- Containerized & VM Support: Initial implementation focuses on Docker/Kubernetes-based deployment, with potential expansion to VM-based replication.
- Intrusion Response: Can integrate with IDS to automatically switch traffic to the honeypot upon detecting suspicious activity.
- Python 3.11+
- Docker (for containerized honeypot deployment)
- Root privileges (for system analysis and network scanning)
git clone https://github.com/ForeverKnight1455/DecoyHive.git
cd DecoyHiveThe analyzer extracts system details and generates a configuration file.
python analyzer/__main__.pyThis will create config_exports/config.json, which is used for generating the honeypot.
DecoyHive supports deploying honeypot environments using Vagrant for VM-based replication and testing, specifically targeting Linux systems.
- Vagrant
- VirtualBox or another supported provider
- Edit the
Vagrantfileand related configuration files in thegenerator/directory to specify your desired Linux distribution and settings. - Initialize and start the Vagrant environment:
vagrant up
- To access the Linux VM:
vagrant ssh
- To halt or destroy the VM:
vagrant halt vagrant destroy
The Vagrant setup will provision a Linux virtual machine based on the generated configuration, allowing you to test and monitor honeypot deployments in a controlled environment.
DecoyHive/
├── analyzer/ # System analysis component
│ ├── __main__.py # Entry point for system analysis
│ ├── utils/ # Utility scripts for gathering info
│ │ ├── hw_info.py # Hardware details
│ │ ├── net_info.py # Network configuration
│ │ ├── os_info.py # OS and system details
│ │ ├── software_info.py # Running services & installed software
├── config_exports/ # Stores generated configuration files
│ └── config.json # Sample output config
├── honeypot.log # Logging system events
├── settings.json # Configuration settings
├── README.md # Project documentation
- System analysis module
- IDS integration for real-time monitoring
- VM-based honeypot support
- Honeypot deployment using Docker
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.