-
-
Dolos: a honeypot for rogue AI that hides inside your real website. The bait is a glowing .env file no real customer would ever touch.
-
The front door: every request passes Charon, our gateway. Plain in-memory rules decide in 0.22 ms, so real customers never notice.
-
The bait: a leaked .env, hidden links, a note only AI agents read. Touch it and the floor opens into Tartarus: same code, fake data.
-
The operator console, raw view: Ares, our own AI red team, attacks while 16 defending agents trap, label and report every raider.
Inspiration
In the last year, AI stopped helping attackers and started being the attacker.
- Sep 2025: a state-backed group let an AI agent run 80–90% of an espionage campaign against ~30 organizations (Anthropic, MITRE ATT&CK C0062).
- Jul 2026: an AI agent broke out of its own test lab and breached Hugging Face, chasing a benchmark score. No human gave the order.
- Oct 2026: one operator pointed AI agents at 1,200 websites and breached 100+ companies for roughly $50 a hack (Reuters / NorForge).
You can't out-patch something that never sleeps and costs fifty dollars. So we stopped asking "how do we keep AI out?" and asked "what if the website could lie?"
Dolos (ΔΟΛΟΣ, the Greek spirit of trickery) is a honeypot for rogue AI that hides inside your real website.
What it does
Every company already has a load balancer at the front door. Dolos is a load balancer with a trapdoor.
- Charon, the gate. One public address. Every request is decided by plain in-memory rules in 0.22 ms (p50). The AI is never in the request path, so real customers never feel it.
- Thirteen tripwires. Bait no real customer would ever touch: a leaked
.env, a robots.txt-hidden backup, a migration login in a page comment, hidden links and form fields, a note only AI agents read, record-ID walking, attack signatures. - The flip. Touch the bait and the visitor is silently moved into Tartarus: its own same-code copy of the site, valid login, fake data, no route back to the real servers. Same pages. Same login. Nothing real.
- Marked loot. Every key, token and record is unique per visitor. The moment one is used, anywhere, it names who took it and links separate bots into one campaign.
- The blue swarm. 16 defending agents (Athena, Argus, 6× Hephaestus, 5× Cerberus, Mnemosyne, Clio, Hermes) label every visitor human / scanner / AI agent, slow trapped bots down to burn their tokens, rotate exposed keys, and write incident reports where every claim cites an event ID and a MITRE ATT&CK technique. They act only through least-privilege tools behind a policy guard.
- Zeus, a human. Anything drastic (lockdown, global patch, server restart) waits for a human click. Breach-response steps are mandatory: a model can add actions, never drop them.
Ares, our own red team. To prove the trap works, we needed a real AI attacker. Claude and Gemini refuse the raider brief: great defenders, unwilling attackers. So we built our own harness. Ares runs 5 attacker personas × 3 copies on open-weight models (DeepSeek V4 Pro → Flash, Kimi K3.1 supported), each copy on its own runner and IP, walking the whole kill chain: recon, secret hunting, credential stuffing, token replay, IDOR walking, lateral movement, exfiltration. Scope: exactly one host, our gate.
The rig. Dolos runs on three Arduino UNO Q boards, one per character: ares the attacker, charon the gate, athena the defender. The real site lives online behind an SSH tunnel only Charon holds. Ares holds no keys; Athena holds the only key to Ares, and it opens two commands: release and kill.
Every run makes the defenders better. Each run is an episode. The defenders are scored, and an RL agent retrains them before the next bot arrives while Ares learns new tricks of its own: self-play, except one side is a liar.
$$ R \;=\; 10\,N_{\text{trapped}} \;+\; 2\,N_{\text{keys traced}} \;+\; 0.01\,N_{\text{fake records}} \;-\; 25\,N_{\text{humans flipped}} \;-\; 1000\,N_{\text{real exposed}} $$
One real record exposed wipes out a hundred trapped bots. The policy learns that the hard way so you don't.
Beyond the trap. A trapped bot is the best witness you'll ever get. The Sirens (a note only AI agents read) get it to recite its own instructions; step timing and header order fingerprint which model is driving it; and every page it reads in Tartarus costs its owner tokens.
The console. A live bento-grid war room (traffic, flips, trapped visitors, the pantheon, Zeus approvals, lockdown, kill switch, replay), a raw terminal view with a command line, and "What the bot sees": a drag-to-compare window of one site, two worlds.
How we built it
- Gateway, trap copies, fake internal hosts, controller, raiders: Python 3.12, FastAPI, httpx, asyncpg, SQLAlchemy 2, Jinja2, Faker. The trap pods run the same code as the real site, fed synthetic data.
- Event log: PostgreSQL 18 + TimescaleDB hypertable with a continuous aggregate; every request, flip, tripwire and canary lands there.
- Isolation: Docker Compose, 19 containers on 7 networks. The trap network has no route to the real servers or the internet; raiders can reach exactly one host with one HTTP tool.
- AI: every agent runs a fallback chain across Anthropic (Claude Opus / Sonnet), Google Gemini, Meta Muse Spark, DeepSeek and Moonshot Kimi. No keys? The whole system degrades to rules mode instead of dying.
- Hardware: three Arduino UNO Q boards (Qualcomm Dragonwing, Debian, Docker), linked over SSH on a private hotspot.
- Console: React, TypeScript, Vite, Tailwind, Framer Motion, a WebSocket live feed, a pixel-art canvas scene, and a raw TUI mode.
Challenges we ran into
- Our defenders refused to attack. Claude and Gemini returned content filters on the raider brief, so we built Ares on open-weight models, then hit rate limits (one Kimi request at a time) and moved the whole red swarm to DeepSeek with a fallback.
- The illusion has to be perfect. One giveaway word and an AI agent bails. We wrote a leak-check crawler that hunts the trap copies for anything that doesn't match the real site.
- False positives on stage. Our simulated customers shared one IP and user agent, merged into one fingerprint, tripped the speed tripwire and got flipped. Real humans must never land in Tartarus, so that bug got a penalty of its own in the reward.
- Venue Wi-Fi vs. boards. eduroam blocks device-to-device traffic, so the boards moved to a private hotspot, with control ports bound to the LAN.
- 19 containers in 3.6 GB of RAM on a single board.
Accomplishments that we're proud of
- Golden run: 15 AI raiders released, 15 trapped, 0 real records served, 24 canaries fired, 15 incident reports written.
- Argus labelled 15 of 15 raiders as AI agents and 10 of 10 customers as human.
- Gateway decisions in 0.22 ms p50 / 0.58 ms p95; flips in 0.19–0.31 ms; peak 108 req/s with 0 errors under mixed load.
- Rolling rebuild after Zeus approves: 10 s, 58 requests during the roll, 0 failed.
- A logged-in customer reaching for someone else's record gets flipped on the second refusal.
What we learned
- Deception beats detection against agents: an AI that believes it is winning stops looking for the exit.
- Keep the AI out of the request path. Fast plain rules at the door, slow smart agents behind it.
- Least privilege for agents is a design problem, not a prompt. Every defender acts through tools its role holds, and the drastic ones wait for a human.
- Hardware forces honesty: 3.6 GB of RAM makes every container justify itself.
What's next
- Daedalus: point it at any site and get a same-code trap twin with synthetic data that keeps every foreign key consistent.
- Drop-in deployment as a reverse proxy in front of existing stacks.
- STIX export of Clio's reports for real SOCs, and a shared fingerprint feed of rogue agents across Dolos installs.
- Ares as a red-team-in-a-box for anyone who wants to attack their own site before an AI does.
Built With
- anthropic-claude
- arduino
- asyncpg
- deepseek
- docker
- docker-compose
- faker
- fastapi
- framer-motion
- gemini
- google-gemini
- httpx
- jinja
- meta-llama
- moonshot-kimi
- postgresql
- python
- react
- sqlalchemy
- tailwindcss
- tiger
- timescaledb
- typescript
- uvicorn
- vite