On stage, everyone thinks they're the star. But the only thing they are, is the show.
Every port is a mask. The audience is watching.
- SSH - Full interactive shell with realistic filesystem
- FTP - File transfer protocol emulation
- HTTP - Web server honeypot
- Telnet - Legacy protocol support
- MySQL - Database service emulation
- RDP - Remote Desktop Protocol (planned)
- Credential Harvesting - Capture usernames and passwords
- Session Logging - JSON-formatted logs for analysis
- Human Behavior Simulation - Realistic response delays
- Customizable Authentication - Accept any credentials or enforce specific ones
- Port Flexibility - Configure any port for any service
- Multi-OS Simulation - Convincing banners for different operating systems
- Interactive Shell - Command execution and file exploration
- Filesystem Virtualization - Realistic directory structures
- Command Logging - Track every attacker action
- IP Tracking - Monitor connection sources
A honeypot exists to be attacked. Treat the machine running MIMIC as hostile ground:
- Isolate it. Run MIMIC in a dedicated VM or container, never on a machine with personal data, credentials or access to your internal network.
- Don't run as root/Administrator unless you need ports below 1024 — on Linux prefer
setcap(see PLATFORMS.md). - Treat captured files as malware. Everything in
ftp_storage/was uploaded by attackers. Don't open or execute it on the host. - Logs contain attacker data (credentials, commands, IPs). They are git-ignored on purpose; don't publish them unredacted.
Windows:
# Python 3.11 or higher
python --version
# Install dependencies
pip install -r requirements.txtLinux/Ubuntu:
# Python 3.11 or higher
python3 --version
# Or manual installation
sudo apt-get update
sudo apt-get install python3 python3-pip python3-pygame
sudo pip3 install pyyaml asyncssh pygame
# For ports below 1024, you'll need root privileges
sudo python3 mimic.pyWindows:
Download of the last Mimic release
OR
# Clone the repository
git clone https://github.com/Samucahub/mimic.git
After:
cd mimic
# Install dependencies
pip install -r requirements.txtUbuntu/Linux:
Download of the last Mimic release
OR
# Clone the repository
git clone https://github.com/Samucahub/mimic.git
After:
cd mimic
sudo pip3 install -r requirements.txtpython main.py --dashboardMIMIC prints a private link (http://127.0.0.1:8787/?token=…). Open it in your browser:
- Playbill: set the fake identity, house rules and services, then Let the show begin.
- The Stage: live activity. The script tells each visit as a scene; the house seats every visitor by how deep they got (front row = got in and acted, back = refused or only knocked). Pick a seat to read their ticket, export their events or show them out (block the IP on every service).
- Lost & Found: files left behind (SHA-256, who, how often) and the most-tried passwords.
The dashboard only listens on this machine. From another computer, use an SSH tunnel:
ssh -L 8787:127.0.0.1:8787 you@honeypot-host. The link changes every time MIMIC starts.
Why it is built this way: docs/ARCHITECTURE.md.
Windows:
python mimic.pyLinux:
# Normal ports (>1024)
python3 mimic.py
# For privileged ports (21, 22, 23, 80)
sudo python3 mimic.py
# Or use the startup script
chmod +x start_mimic.sh
./start_mimic.sh- Configure identity (username, password, hostname)
- Select OS template (Ubuntu, Debian, CentOS, Windows, Kali)
- Enable desired services (SSH, FTP, HTTP, etc.)
- Set honeypot mode (accept any credentials or enforce specific ones)
- Click "Let the show begin!"
- Monitor live activity
- Click "Close the curtains" to stop
# First run creates config/honeypot.yaml from config/honeypot.example.yaml
python main.py
# Or point to another config file
python main.py --config path/to/honeypot.yamlIf the config has a mistake (bad port, unknown service type…), MIMIC lists every problem and exits before opening any port.
cp config/honeypot.example.yaml config/honeypot.yaml # then edit it
docker compose up -d --build
docker compose logs -f # live activityThe container runs as a non-root user with a read-only filesystem and no extra capabilities. Logs and captured files live in Docker volumes (docker compose cp mimic:/app/logs ./mimic-logs to export them). Keep the ports: list in docker-compose.yml in sync with the services you enable.
Note: FTP passive-mode transfers need the passive port range reachable from outside; under Docker's default bridge network, logins and commands are captured but file transfers may fail.
config/honeypot.yaml is your local config: it is written by the visual configurator and git-ignored (it may contain passwords). config/honeypot.example.yaml is the template.
system:
username: admin
password: admin123
hostname: web-server
os_template: Ubuntu
options:
any_auth: true
brute_force_attempts: 3
enable_logging: true
human_patterns: false
log_retention_days: 7
security:
enabled: true
ip_blocking:
auto_block_failed_logins: 10
rate_limits:
block_duration_minutes: 60
max_connections_per_minute: 60
max_failed_logins: 10
window_seconds: 60
services:
'21':
allow_download: false
allow_upload: false
anonymous_login: true
banner: 220 ProFTPD 1.3.5 Server (Debian)
enabled: true
max_file_size: 104857600 #100 MB
type: ftp
'22':
banner: SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
enabled: true
type: ssh
'23':
enabled: true
type: telnet| Template | Description | Banner |
|---|---|---|
| Ubuntu | Ubuntu 18.04.6 LTS | GNU/Linux 4.15.0-20-generic x86_64 |
| Debian | Debian 11 (bullseye) | Debian GNU/Linux 11 |
| CentOS | CentOS 7.9.2009 | CentOS Linux release 7.9.2009 (Core) |
| Windows | Windows Server 2019 | Microsoft Windows Server 2019 Standard |
| Kali | Kali Linux Rolling | Kali GNU/Linux Rolling |
options:
any_auth: trueAttackers can login with any username/password combination. Perfect for capturing credential attempts.
options:
any_auth: false
system:
username: admin
password: secret123Only accepts the configured username and password. Rejects all others.
# SSH Connection
ssh [email protected] -p 22
# FTP Connection
ftp 192.168.1.100 or Filezila
# Scan with Nmap
nmap -sV 192.168.1.100logs/
├── ssh_honeypot.jsonl # One JSON Lines file per service,
├── ftp_honeypot.jsonl # all in the same format
├── telnet_honeypot.jsonl
├── http_honeypot.jsonl
├── mysql_honeypot.jsonl
└── honeypot_output.log # Main system log (what the GUI shows)
All files sent via FTP end up in this folder storage.
ftp_storage/
└── home/ # Users in system
├── ftpuser # User default in FTP service
| └── files/
|
└── $username/ # This file is named based on the configured username
├── Desktop/
├── Documents/
| └── notes.txt
├── ...
└── welcome.txt
Every service uses the same fields, so you can analyse all of them together. Full reference: docs/LOG_FORMAT.md.
{
"timestamp": "2026-11-27T10:10:50.928Z",
"event": "login_attempt",
"service": "ssh",
"port": 22,
"client_ip": "192.168.1.50",
"username": "admin",
"password": "password123",
"success": true
}Events: connection, login_attempt, command, file_upload (with SHA-256), blocked_connection.
# Every login attempt, from every service
cat logs/*_honeypot.jsonl | jq -c 'select(.event == "login_attempt")'mimic/
├── main.py # Entry point (headless, or --dashboard)
├── mimic.py # Legacy pygame configurator
├── dashboard/
│ ├── server.py # aiohttp app: API, live events, guards
│ ├── store.py # SQLite index over the JSONL logs
│ └── static/ # HTML, CSS, JS modules, vendored fonts
├── Dockerfile, docker-compose.yml
├── config/
│ ├── honeypot.example.yaml # Template (versioned)
│ ├── honeypot.yaml # Your config (git-ignored)
│ └── templates/ # OS templates (future)
├── core/
│ ├── controller.py # Service registry + orchestration
│ ├── config_schema.py # Config validation
│ ├── security_layer.py # Rate limiting / IP blocking
│ └── service_emulator/
│ ├── base_service.py
│ ├── ssh_emulator.py
│ ├── ftp_emulator.py
│ └── ...
├── log_system/
│ └── events.py # Unified JSON Lines event log
├── docs/LOG_FORMAT.md, docs/ARCHITECTURE.md
├── assets/brand/ # Logo kit + BRAND.md (rules and reasons)
├── tools/brand/ # Scripts that regenerate the logo kit
├── tests/
├── ftp_storage/ # Captured files (git-ignored)
└── logs/ # Generated logs (git-ignored)
- Create the emulator in
core/service_emulator/, inheriting fromBaseService - Implement
handle_connection(); log withlog_connection,log_login,log_command - Register it in
SERVICE_REGISTRYincore/controller.py
pip install -r requirements-dev.txt
python -m pytest testsContributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/new-feature) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature/new-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Found a security vulnerability? Please see SECURITY.md for reporting guidelines.
- To my mom who gave birth to me.
- asyncssh - Robust SSH protocol implementation
- Pygame - Visual interface framework
- Inspired by classic honeypot projects like Cowrie and Kippo
Author: The Architect
GitHub: @thearchitect
Project: MIMIC Honeypot
🎭 The stage is set. The audience watches. 🎭
Let the show begin!


