Cybersecurity · 2025

AI-Agent Honeypot

A decoy website that writes itself while the attacker is still looking.

Status::
Research · HSG bachelor thesis
Year::
2025
Type::
Cybersecurity

My bachelor thesis at the University of St.Gallen: an HTTP honeypot where an AI agent generates a complete, consistent fake website on demand for every path an attacker probes, with every request logged for analysis. Benchmarked against Galah, an established open-source LLM honeypot, it produced much richer and more realistic content, at the cost of slower first responses.

What it does

  • The agent writes real files for each attacker session, not just generated text
  • Each visitor gets their own coherent file tree that reuses the site's CSS and JS
  • Full forensic logging of every request and response, grouped into sessions
  • Containment: firewall-isolated agent container, write access to one folder only, resource limits

Stack::

  • Python / FastAPI
  • Claude Agent SDK
  • PostgreSQL
  • Next.js dashboard
  • Docker Compose
  • skipfish
Honeypot architecture: an attacker request reaches FastAPI, which logs every request to PostgreSQL and either returns a cached session file or asks a firewall-isolated Claude agent to write one
Architecture v3.1 · from the thesis

Links

Something like this on your desk?

Start with a message