Skip to main content

Adaptive cloud honeypot platform — deploy decoys, monitor attacks, score threats with ML

Project description

🍯 HoneyCloud

Adaptive cloud honeypot platform — deploy decoys, monitor attacks in real-time, and score threats with ML.

CI PyPI version Python 3.9+ License: MIT

HoneyCloud is a CLI tool that deploys a real SSH honeypot (via Cowrie + Docker), monitors incoming attack events with MITRE ATT&CK tagging, and scores attacker IPs using a lightweight Isolation Forest anomaly detector.

Note: The project is currently under active development. In order to access the working mock model, you can clone the repository, checkout commit 9389734dea24b06aa3f13a45337b46f164f7d735, and follow the instructions in the README at that specific commit.


Install

pip install honeycloud

Commands

honeycloud deploy

Deploys a Cowrie SSH honeypot. Two modes:

honeycloud deploy --mock          # Simulated deploy — no Docker required
honeycloud deploy                 # Real Cowrie honeypot via Docker (port 2222)
honeycloud deploy --port 8022     # Real Cowrie honeypot on a custom port

Mock mode — simulates the deployment pipeline with animated steps, no Docker needed:

mock-deploy-start

mock-deploy-active

Real Docker deploy — pulls cowrie/cowrie:latest, runs it with --network none (zero egress so attackers can't pivot out). Re-running the command safely detects if the container already exists:

docker-deploy-1

docker-deploy-2

docker-deploy-3


honeycloud monitor

Streams incoming attack events with severity, source IP, country, target port, and MITRE ATT&CK technique.

honeycloud monitor               # Replay a captured attack session
honeycloud monitor --live        # Continuous live stream (Ctrl+C to stop)

monitor-sample

monitor-live


honeycloud score <ip>

Scores an IP address for threat level using a lightweight Isolation Forest anomaly detector. Extracts behavioural features (connection frequency, port entropy, protocol diversity, inter-arrival time) and cross-references known malicious infrastructure (Shodan, Censys, Tor exit nodes).

honeycloud score 45.33.32.156    # Known SSH bruteforcer → CRITICAL
honeycloud score 192.168.1.1     # Private/internal IP  → LOW

score-critical

score-low


Tests

10 tests covering CLI end-to-end behaviour and scoring unit logic. Runs on Python 3.9, 3.10, and 3.11 via GitHub Actions CI.

pip install -e .
pip install pytest
pytest tests/ -v

pytest-local

github-actions-ci


Architecture

architecture

Attacker hits a fake server → event is captured → ML analyzes it → system responds and shares intel.

Layer 01 — Deception

Four fake services running as traps — SSH, SMB/FTP, HTTP, and Database. Each is a real-looking decoy powered by tools like Cowrie and Dionaea. When an attacker connects, every action they take is silently logged as a structured JSON event. They think they're attacking a real server. They're not.

Layer 02 — Intelligence

The JSON events flow into Kafka (a high-speed event queue) which feeds Flink (a stream processor that cleans, enriches, and geo-tags the data). Flink passes the enriched data into the 3-Layer ML Pipeline which detects, classifies, and predicts the attack. Output is a Threat Intel Object — a structured package of everything known about this attacker.

Layer 03 — Response

Four things happen simultaneously with that Threat Intel Object:

  • Response Engine — blocks the IP, morphs the honeypot, fires a SIEM alert
  • Data Storage — saves everything to PostgreSQL, Redis, and S3
  • Threat Sharing — exports IOCs to MISP, VirusTotal, AlienVault
  • Dashboard — updates the live Grafana attack map and kill chain view

The ML Pipeline

ml-pipeline

A zoom-in on the intelligence brain:

  • Layer 0 — takes 6 behavioral features per connection as input
  • Layer 1 — Detect — Isolation Forest + Anomaly Transformer scores how anomalous the event is. Score below 0.5 gets discarded. Above 0.5 moves forward.
  • Layer 2 — Classify — XGBoost + Random Forest ensemble labels the attack type and tags it to a MITRE ATT&CK technique
  • Layer 3 — Predict — Bi-LSTM predicts the next attack move. GAT connects related IPs into campaign clusters
  • Layer X — Output — a clean JSON object with attack type, confidence, MITRE ID, next vector prediction, and campaign ID ready for export

A raw TCP connection enters Layer 01 and exits Layer X as attributed, classified, predicted threat intelligence. The current release implements Layer 01 (Cowrie deploy) and a lightweight Isolation Forest for Layer 1 — Detect. The full pipeline is the planned production architecture.


Datasets

Will be trained and validated on four real-world honeypot capture datasets:

  1. CIC-Honeynet — T-Pot, 20+ honeypot types
  2. Hornet-40 — 8 global cities, 40 days, NetFlow (Valeros, 2021)
  3. Dionaea/AWS — 451k+ protocol-level attack events
  4. AWS Geo Honeypot — geo-tagged attack corpus

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

honeycloud-0.1.4.tar.gz (474.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

honeycloud-0.1.4-py3-none-any.whl (493.2 kB view details)

Uploaded Python 3

File details

Details for the file honeycloud-0.1.4.tar.gz.

File metadata

  • Download URL: honeycloud-0.1.4.tar.gz
  • Upload date:
  • Size: 474.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for honeycloud-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bc799e25448da08b29fc597529b7f961115e1e4607f1fcbc3b36c2e9ed9cbf54
MD5 2b4f1a9a79fdda9990f23271224e9496
BLAKE2b-256 f13d9b78295e0fedc68c529e4a40b71e86f393900bc1153f2f7b5af074034f66

See more details on using hashes here.

File details

Details for the file honeycloud-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: honeycloud-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 493.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for honeycloud-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ef5d1b54cef82289f8c294de17ae94e25994a02bdb19d7c13652c309b858baa1
MD5 5b2a0559f140a231b9ec60bcc84ceced
BLAKE2b-256 a71a4f7ab14afed013471ef60b7a3664da27764a68132dfa70ebd2dd8aa5380b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page