How shruthipoosa04/rl-honeypot works
This repository implements a Flask-based adaptive web honeypot. Incoming requests are captured as interaction events, logged, converted into an RL state, scored by a DQN agent, and optionally answered with deceptive content before the route’s normal response. A separate dataset-driven simulator exercises the state, reward, and agent modules. The README is empty; relationships below are based on the provided source excerpts and file tree, so unsampled data and UI details are represented only where their paths are evident.
Main entry points: honeypot_web.py Flask routes and orchestration · simulator.py Dataset training simulator · logger_utils.py Interaction and decision logger · deception.py Deception strategies
Components 13
Honeypot web app
- Flask routes and orchestration
honeypot_web.py - Honeypot pages
templates
Adaptive learning
- Request state builder
rl/state_builder.py - DQN policy and replay
rl/dqn_agent.py - Threat reward scoring
rl/reward.py - Deception strategies
rl/deception.py
Interaction telemetry
- Interaction and decision logger
logger_utils.py - Interaction JSONL
data/interactions.jsonl - Interaction SQLite store
data/interactions.db - RL decision JSONL
data/rl_decisions.jsonl
Offline training
- Dataset training simulator
rl/simulator.py - Training CSV
data/csv_dataset.csv
Other components
- Web requester
Connections 15
- Web requester → Flask routes and orchestration: sends requests
honeypot_web.py - Flask routes and orchestration → Interaction and decision logger: captures events
honeypot_web.py - Flask routes and orchestration → Request state builder: builds state
honeypot_web.py - Flask routes and orchestration → DQN policy and replay: chooses and trains
honeypot_web.py - Flask routes and orchestration → Threat reward scoring: calculates reward
honeypot_web.py - Flask routes and orchestration → Deception strategies: applies action
honeypot_web.py - Flask routes and orchestration → Honeypot pages: renders pages
honeypot_web.py - Interaction and decision logger → Interaction JSONL: writes events
logger_utils.py - Interaction and decision logger → Interaction SQLite store: inserts summaries
logger_utils.py - Interaction and decision logger → RL decision JSONL: writes decisions
logger_utils.py - Deception strategies → Honeypot pages: renders decoys
rl/deception.py - Dataset training simulator → Training CSV: reads rows
rl/simulator.py - Dataset training simulator → Request state builder: builds state
rl/simulator.py - Dataset training simulator → Threat reward scoring: scores samples
rl/simulator.py - Dataset training simulator → DQN policy and replay: selects and trains
rl/simulator.py