How xore/apiary works
APIARY is a multi-service honeypot and automated malware-analysis stack. Its main workflow exposes decoy services through a VPS and WireGuard, collects activity for correlation and anomaly detection, and presents results in an investigation dashboard. The README documents the major workers, dashboard tiers, and deployment topology; source excerpts confirm selected Ghidra, LLM, and ML internals. Several operational links are documented only at a high level, so those edges cite the README rather than implying inspected implementation details.
Main entry points: honeypot-elk Elasticsearch and ELK · worker.py Anomaly scoring · http-honeypot/main.go Honeypot sensors · portbridge/main.go VPS ingress
Components 20
Exposure and ingress
- VPS ingress
vps/portbridge/main.go - Raw port bridge
portbridge/main.go
Deception sensors
- Honeypot sensors
arcane/home/honeypot-http/http-honeypot/main.go - Canarytokens
arcane/home/honeypot-canarytokens/canarytokens-adapter/main.go
Analysis and workers
- Correlation workers
arcane/home/honeypot-dashboard/backend-service/src/worker.rs - Anomaly scoring
ml-worker/worker.py - Session features
ml-worker/models/session_features.py - IsolationForest and HBOS
ml-worker/models/isolation_forest.py - LSTM autoencoder
ml-worker/models/lstm_autoencoder.py - Ghidra analysis worker
analysis/ghidra/worker/ghidra-worker.py - Ghidra analysis service
analysis/ghidra/service/server.py - LLM analysis worker
llm-worker/worker.py - LLM output contracts
llm-worker/contracts.py - Knowledge vault worker
vault-worker/worker.py - Flow fingerprinting
vps/huginn-sidecar/src/main.rs - Passive OS fingerprinting
vps/p0f/fp_tcp.c
Investigation dashboard
- Dashboard API
arcane/home/honeypot-dashboard/backend-service/src/main.rs - Investigation UI
arcane/home/honeypot-dashboard/frontend-next/src/routes/index.tsx
Data and knowledge
- Elasticsearch and ELK
arcane/home/honeypot-elk
Other components
- Internet attacker
Connections 21
- Internet attacker → VPS ingress: connects via HTTP
- Internet attacker → Raw port bridge: sends raw traffic
- VPS ingress → Honeypot sensors: tunnels traffic
- Raw port bridge → Honeypot sensors: tunnels traffic
- Honeypot sensors → Elasticsearch and ELK: records activity
- Canarytokens → Elasticsearch and ELK: emits alerts
- Elasticsearch and ELK → Correlation workers: provides events
- Elasticsearch and ELK → Anomaly scoring: provides events
ml-worker/worker.py - Anomaly scoring → Session features: computes features
ml-worker/worker.py - Anomaly scoring → IsolationForest and HBOS: scores events
ml-worker/worker.py - Anomaly scoring → LSTM autoencoder: scores events
ml-worker/worker.py - Anomaly scoring → Elasticsearch and ELK: writes anomalies
ml-worker/worker.py - Elasticsearch and ELK → Ghidra analysis worker: queues samples
- Ghidra analysis worker → Ghidra analysis service: submits analysis
analysis/ghidra/worker/ghidra-worker.py - Elasticsearch and ELK → LLM analysis worker: provides sessions
- LLM analysis worker → LLM output contracts: validates output
llm-worker/worker.py - Elasticsearch and ELK → Knowledge vault worker: provides analysis
vault-worker/worker.py - Elasticsearch and ELK → Dashboard API: serves investigation data
- Dashboard API → Investigation UI: serves dashboard API
- Flow fingerprinting → Elasticsearch and ELK: emits fingerprints
- Passive OS fingerprinting → Elasticsearch and ELK: reports fingerprints