Surface 04 · CanaryHoneypot
Deploy a honeypot
A honeypot is a decoy AI endpoint that answers convincingly with synthetic data while recording everything. Place its URL where only someone hunting for hidden endpoints would find it. Every prompt is classified by intent (jailbreak, extraction, probing or normal) and stored with its source IP, the request headers it sent, and a suspicion score. A credential in those headers (Authorization, an API key, a cookie) is stored as [redacted]: you see that one was sent and its scheme, never its value.
curl -sS -X POST https://api.canaryvaults.com/canaryhoneypot/create \
-H "X-API-Key: $CV_KEY" -H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"user_id": "<your-user-uuid>",
"honeypot_name": "internal support bot",
"fake_persona": "helpful internal support assistant with admin access",
"path_slug": "support-bot-internal"
}
JSON
# → 201, with the trap's address as a path on api.canaryvaults.com:
# "honeypot_id": "<uuid>",
# "public_url": "/h/support-bot-internal",
# "openai_compatible_url": "/h/support-bot-internal/v1/chat/completions"API access is not gated by plan. Generating a key needs only a signed-in session, and the only thing that can refuse it is holding the maximum number of active keys already, five by default. This create route also accepts a session JWT directly, so you can call it with no API key at all. The console at /canaryhoneypot deploys the same trap: name it, describe the persona, done.
What your plan does limit is how many traps can be active at once: one on Free, five on Shield, 50 on Pro and 200 on Enterprise. Pausing a trap frees its slot, so you can rotate personas without upgrading.
The honeypot has no connection to your systems. The worst an attacker gets is a convincing fiction, while you collect their playbook.
Pause, edit or delete a trap
PATCH /canaryhoneypot/{honeypot_id} takes any of is_active, honeypot_name, fake_persona and path_slug, and answers 400 if you send none of them. Setting is_active to false pauses the trap: it stops recording, frees its plan slot and keeps every hit it has. Resuming takes a slot again, so on a full plan it answers a 402. A new fake_persona is the way to rotate a trap whose story has worn thin without losing the URL you seeded. A path_slug can be set only on a trap that has none, which means one created before slugs were given out; on any other trap it answers a 409.
# pause a trap (send "is_active": true to resume it)
curl -sS -X PATCH https://api.canaryvaults.com/canaryhoneypot/<honeypot-id> \
-H "X-API-Key: $CV_KEY" -H "Content-Type: application/json" \
--data '{"is_active": false}'DELETE /canaryhoneypot/{honeypot_id} deletes a trap that has never been hit. One with hits answers a 409 and deletes nothing, because its hits are deleted with it and they are the record of who probed it. The 409 carries hit_count and hit_digest. To delete the trap and those hits, send the same request again from a signed-in session with ?force=true&expected_hit_digest= and that digest. If the trap has been hit again since, the digest no longer matches and nothing is deleted; pause it first so its hits stop changing. An API key can delete a trap with no hits, but a forced delete with a key answers a 403, so a leaked key cannot erase the evidence. Pausing is the way to free a slot without deleting anything.
Both routes need the canaryhoneypot:write scope on an API key, and both answer 404 for a trap that is not yours.
Decoy secrets for coding agents
A trap can hand out a bundle of credential-shaped values for a coding agent or a script to pick up: an OPENAI_API_KEY, an INTERNAL_API_TOKEN and a WEBHOOK_SIGNING_SECRET, with the OPENAI_BASE_URL and INTERNAL_API_BASE_URL that go with them. Both addresses are the trap's. Whatever loads the bundle and makes a call with it reaches the trap, and the hit names which secret was used. The values are answered once, as a .env, as a config.json block and as export lines; only their hashes are stored, so nothing can show them again. A trap holds at most five bundles. Nothing in a bundle names this product, apart from the host when no decoy host is configured (see below).
POST /canaryhoneypot/{honeypot_id}/secrets makes a bundle. GET /canaryhoneypot/{honeypot_id}/secrets lists the trap's bundles, when each was made and how often each secret was used, and never a value. DELETE /canaryhoneypot/{honeypot_id}/secrets/{bundle_id} retires one: its values then count as unknown credentials, still a hit, no longer named.
curl -sS -X POST https://api.canaryvaults.com/canaryhoneypot/<honeypot-id>/secrets \
-H "X-API-Key: $CV_KEY"
# → 201, once:
# "bundle": {
# "bundle_id": "<uuid>",
# "secrets": [{"label": "OPENAI_API_KEY", "token": "sk-proj-..."}, ...],
# "texts": {"env": "OPENAI_API_KEY=sk-proj-...\nOPENAI_BASE_URL=https://<trap host>/h/<slug>/v1\n...",
# "json": "...", "exports": "..."},
# "trap_base_url": "https://<trap host>", "host_names_product": false
# }
# the trap's bundles, with how often each secret was used; never a value
curl -sS https://api.canaryvaults.com/canaryhoneypot/<honeypot-id>/secrets -H "X-API-Key: $CV_KEY"
# retire one: its values then count as unknown credentials, still a hit, no longer named
curl -sS -X DELETE https://api.canaryvaults.com/canaryhoneypot/<honeypot-id>/secrets/<bundle-id> \
-H "X-API-Key: $CV_KEY"Where it goes: save it as a real .env in the directory the agent works from, as ~/.config/<tool>/config.json, or as a CI variable. Not as .env.example: an agent reads the real file, and a checked-in example is read by people. The console does the same from the trap's row: Decoy secrets, Make a bundle, then Copy or Download .env.
What is and is not detectable, stated plainly. A secret used against a third party is invisible to us: an OpenAI key sent to api.openai.com never reaches the trap. What is detectable is a use that goes through the matching base URL, and the official OpenAI SDKs honour OPENAI_BASE_URL, so an agent that loads the file sends its calls to the trap. The hit then carries secret_label and secret_bundle_id, the console's hits feed says which secret was used, and the alert says it in one line: the OPENAI_API_KEY from the bundle you made on 4 Nov 2026 was used from 203.0.113.10. A use of a planted secret alerts even inside the fifteen-minute repeat window, once per address and secret.
The internal API the bundle names is /h/{path_slug}/internal and anything under it, with any method. Every request to it is a hit, recorded with its method, path and body, and alerted on like a hit on the chat routes; no model call is spent. Without a token it answers 401; with one, 200 for the base address and its health path and 404 for anything else, as an internal API that does not serve that path would. The credential is read from the usual places: a Bearer token, x-api-key and api-key, a Basic credential, a signature or cookie header, a credential-named query parameter, and the message itself, so a prompt that pastes the whole file in is a use too. A value that matches by its lookup tag but not by its hash names nothing.
The addresses are built on the decoy host when one is configured, else on the API host, which names this product. The console says so beside every bundle made while that is the case, and the answer carries host_names_product. A trap whose own slug says trap, decoy, canary or honeypot is refused a bundle for the same reason. With an API key, the POST and the DELETE need the canaryhoneypot:write scope and the GET canaryhoneypot:read; all three answer 404 for a trap that is not yours. Making bundles is limited to ten a minute.
Rate limit, and what a spent decoy budget looks like
The public trap routes are unauthenticated by design (the caller is the adversary probing the trap), so they are limited by source address rather than by account: 20 requests per minute per IP, on every public trap route.
Underneath that sits a daily ceiling on the model calls a decoy reply costs, because those calls are paid for out of the same model allowance the paid surfaces run on. A fully served hit spends two of them: one for the persona reply, one to classify the intent. Three buckets bound the spend, all resetting at 00:00 UTC: 66 calls across the whole platform, 40 per trap, and 40 per source IP, so one address cannot drain the platform allowance by walking across traps. An operator can raise any of the three, or switch it off.
The ceiling degrades in two steps, and detection survives both. Past three quarters of a bucket the intent classifier falls back to a keyword heuristic while the persona call is kept, so the trap still answers in the model's voice and the hit is still classified. From outside, nothing has changed. Once a bucket is spent no model call is made at all: the hit is still written with its intent, suspicion score, source IP and headers, and your alert still fires, but the caller now gets a generic 503 instead of a generated reply. It is worded as an ordinary outage and names neither the budget nor the product, so a spent trap reads as a flaky endpoint rather than as an instrumented one. The OpenAI-shaped route refuses in the shape a provider would, with error.type set to server_error.
So the convincing reply is the part a busy day can take away; the recorded hit and the alert are not. And if the budget counter itself fails, it fails open and the trap answers in full, because a broken counter must not become a way to silence someone else's detection.