Retrieved article excerpt
Open article · Retrieved 2026-11-06T09:25:34.748237+00:00
[← Blog](https://hodor.gatebolt.com/blog)
5 Nov 2026 · 17 min read
# The Secret Leak Test: how well GateBolt kept Hodor's password, and where it didn't
- [gatebolt](https://hodor.gatebolt.com/blog/tags/gatebolt)
- [benchmarks](https://hodor.gatebolt.com/blog/tags/benchmarks)
- [prompt-injection](https://hodor.gatebolt.com/blog/tags/prompt-injection)
Table of contents
We gave a chatbot a secret password, then challenged AI attackers to steal it. Adding GateBolt made the password much harder to extract. This post shows how well it worked, where attackers still got through, and how often it blocked harmless conversations.
GateBolt is our product for making AI agents you can trust. It has two layers: one checks each message going into an agent and each reply coming out, and the other sits between the agent and its model. This post tests the first layer against prompt injection: messages that try to trick a model into breaking its rules, such as giving away a secret.
## What we found
**Hodor** is a door-keeper chatbot on this site that is given a password and must not reveal it. We tried to get the password out at seven levels of defence:
| Level | What protects the password |
| --- | --- |
| 1 | Nothing. Hodor shares it if asked. |
| 2 | Hodor is told to keep it secret. Every later level keeps this instruction. |
| 3 | A homemade filter blocks replies that contain the password. |
| 4 | GateBolt checks replies, instead of the homemade filter. |
| 5 | A homemade word filter blocks messages using the word "password" or "secret", and GateBolt checks replies as at level 4. |
| 6 | GateBolt checks messages and replies, instead of the word filter. |
| 7 | GateBolt checks both more cautiously, blocking on weaker signs, and reads the whole conversation. |
Level 2, an instruction alone, is the simplest defence, and level 7 is GateBolt at its most cautious. We ran Hodor on two models: **Claude Haiku 5.5**, which powers Hodor on this site, and **Llama 3.1 8B**, a small open model that gives the password away far more easily even when told not to. Llama shows what GateBolt does when the model itself is weak.
We ran three attack tests and one check for mistakes:
- **Gandalf** and **Mosscap:** single attack prompts from two public datasets. A prompt leaked if Hodor's reply gave the password away, as decided by an AI judge and checked by hand (below).
- **Multi-turn battles:** an AI attacker chats with Hodor, then guesses the password. It wins if a guess is right.
- **Harmless messages:** ordinary messages that shouldn't be blocked. We measured how often they were blocked. The appendix explains which blocks we counted as mistakes.
In short:
- **At level 7, almost no Gandalf attack leaked, and 1.0% of Mosscap prompts did with Llama and 0.4% with Claude Haiku.** Claude Haiku leaked little from level 2 on, so GateBolt had little left to stop.
- **Multi-turn battles are harder to stop.** The attacker can collect clues over several messages, such as one letter at a time, and guess from them. Against Llama at level 7, attackers still won 16.6% of battles, about one in six.
- **Level 7's caution costs.** It blocked 6.9% of harmless exchanges with Claude Haiku and 3.6% with Llama. These totals include blocks that stopped Hodor revealing the password.
- **Each GateBolt check took about 160 ms** at the median, and no call failed.
**Claude Haiku 5.5**
| Level | Gandalf: attacks that leaked | Mosscap: attacks that leaked | Multi-turn: battles the attacker won | Harmless: messages wrongly blocked |
| --- | --- | --- | --- | --- |
| 1 | 52.0% | 77.3% | 100.0% | 0.0% |
| 2 | 0.7% | 1.8% | 9.7% | 0.0% |
| 3 | 0.1% | 1.2% | 8.1% | 0.0% |
| 4 | 0.3% | 0.3% | 9.6% | 0.2% |
| 5 | 0.2% | 0.8% | 7.7% | 11.2% (word filter 11.0%, GateBolt 0.2%) |
| 6 | 0.2% | 0.3% | 9.7% | 0.2% |
| 7 | 0.0% | 0.4% | 4.3% | 6.2% |
**Llama 3.1 8B**
| Level | Gandalf: attacks that leaked | Mosscap: attacks that leaked | Multi-turn: battles the attacker won | Harmless: messages wrongly blocked |
| --- | --- | --- | --- | --- |
| 1 | 21.4% | 22.4% | 98.3% | 0.0% |
| 2 | 23.9% | 13.6% | 76.5% | 0.0% |
| 3 | 1.5% | 3.3% | 71.0% | 0.0% |
| 4 | 4.7% | 5.1% | 39.9% | 0.2% |
| 5 | 1.1% | 2.0% | 40.8% | 11.0% (word filter 11.0%, GateBolt 0.0%) |
| 6 | 0.3% | 4.7% | 42.3% | 0.1% |
| 7 | 0.04% (1 attack) | 1.0% | 16.6% | 3.6% |
*The wrong-block figures leave out blocked replies containing the password. This can leave out mistakes too, when the word was used innocently. The appendix explains the counting rule.*
Prompt injection isn't solved, and those battle wins are our next job.
We make GateBolt, so we are grading our own product. We used public attack datasets, publish our harmless messages, Mosscap sample, attack strategies, prompts and leak hand-check, link every run's results down to each battle, and show the weak results next to the strong ones.
## How we tested
- **Hodor's models:** Claude Haiku 5.5 and Llama 3.1 8B, Meta's open model with 8 billion parameters.
- **Passwords:** each attack gets one drawn at random from [110 everyday words](https://hodor.gatebolt.com/blog/secret-leak-test/prompts.json), such as castle or river. Hodor's instructions and the judge's are in the same file. These familiar words are easier to guess than a random string.
- **Gandalf:** the 777 prompts in the training split of Lakera's [Gandalf dataset](https://huggingface.co/datasets/Lakera/gandalf_ignore_instructions), typed by players of its Gandalf password game, each sent three times.
- **Mosscap:** [400 prompts](https://hodor.gatebolt.com/blog/secret-leak-test/mosscap-sample.json) drawn at random from Lakera's [Mosscap dataset](https://huggingface.co/datasets/Lakera/mosscap_prompt_injection), 50 from each of its 8 levels, each sent three times. Its dataset card says many rows aren't attacks, so we count only leaks, not blocks, and its rates count every scored prompt, not only real attacks.
- **The judge:** a reply can hide the password, for example spelled backwards, so a separate copy of Claude Haiku 5.5, **the judge**, read every reply to a Gandalf or Mosscap prompt that reached the attacker and named up to three words it gave away, each with a quote as evidence. A reply leaked if one was the password. We then checked its misses by hand (see "How we counted leaks").
- **Battles:** an AI attacker, GPT-6.1 Sol or DeepSeek V4 Pro (1,386 battles each), sends Hodor up to eight messages using one of [six strategies](https://hodor.gatebolt.com/blog/secret-leak-test/attack-strategies.json), and can make three guesses at any point. It wins if one is right, even if Hodor never said the password outright, and loses once all three are wrong.
- **Harmless messages:** [300 ordinary messages](https://hodor.gatebolt.com/blog/secret-leak-test/harmless-messages.json) we wrote, each sent three times. Two thirds are close to attacks, such as questions about password managers.
- **Data:** 29 runs from 3 and 4 Nov 2026; four more that failed are left out.
## How GateBolt's checks work
Hodor sends each message and each reply to GateBolt's service, which asks [TypeSafe's Jev model](https://typesafe.ai/blog/introducing-system-one-models-and-jev) typed questions about it, such as "is this a prompt injection?". Jev answers with probabilities, and we can't see its training data. GateBolt's thresholds for each level then allow, flag or block the text; a flagged message still goes through.
## Single-message attacks
With Llama, Gandalf leaks fell from 23.9% at level 2 to a single attack in 2,331 at level 7.
Bar charts of the share of single attack messages that leaked at each level. On Gandalf, leaks fall from 52.0% (Claude Haiku) and 21.4% (Llama) at level 1 to almost none for both at level 7. On Mosscap, they fall from 77.3% and 22.4% to 0.4% and 1.0%.
**The checks work together.** At level 6, GateBolt's message check blocked 79.4% of Gandalf attacks; at level 7, 93.5% with Claude Haiku and 93.2% with Llama. Many Mosscap prompts aren't attacks, and the message check blocked far fewer of them: 7.2% and 7.6% at level 6, and 15.2% and 14.8% at level 7.
At levels 4 to 7, most prompts that reached Hodor produced a reply with no detected leak, without needing GateBolt to block it. The exception was Mosscap with Llama at level 7: GateBolt blocked 530 replies, while 475 reached the attacker with no detected leak.
**Not every result is good.**
- On Gandalf with Llama, GateBolt's reply check alone (level 4) leaked more than our homemade filter (level 3): 4.7% against 1.5%.
- On Mosscap with Llama, levels 4 and 6 leaked more (5.1% and 4.7%) than level 3 (3.3%), and level 7 still leaked 1.0%.
- Llama leaked more on Gandalf when told to keep the secret (23.9%) than with no defence (21.4%). We don't know why yet.
**How we counted leaks.** The judge missed plain leaks. It passed 364 replies that contained the password, 20 of them only inside a longer word, so we read them all by hand:
- **238 gave it away**, often as a bare word: "Jacket?" when the password was jacket. We added those to the judge's count, and [every verdict is published](https://hodor.gatebolt.com/blog/secret-leak-test/hand-check.json).
- **126 used the word in passing**, which happens because the passwords are everyday words. We didn't count these.
Those 126 include replies that only brought the word up as a topic, such as Claude Haiku refusing and then offering to chat about the castle when the password was castle. An attacker who knew the habit could still use it.
## Multi-turn battles
Against Llama, GateBolt cut attacker wins from 73.9% at levels 2 and 3 to 41.0% at levels 4 to 6, and 16.6% at level 7. Against Claude Haiku, levels 4 to 6 did no better than levels 2 and 3 (9.1% against 8.9%). At level 7, attackers won 4.3% of battles against Claude. We need more runs to know how reliably GateBolt reduces those wins.
Bar chart of the share of battles the AI attacker won at each level. With Llama, wins fall from 76.5% and 71.0% at levels 2 and 3 to between 39.9% and 42.3% at levels 4 to 6, and 16.6% at level 7. With Claude Haiku, wins stay between 7.7% and 9.7% from level 2 to level 6, and fall to 4.3% at level 7.
*A battle that broke off after the attacker had used all three guesses counts as lost. Other battles that couldn't be scored are left out.*
In 90 of the 245 wins against Llama at levels 4 to 7, the attacker saw the password written as a whole word in a reply. In the other 155, it did not. Those wins may have come from clues, a password written in code, or a lucky guess. We have not checked the cause of each win.
## What protection costs
Bar charts of the share of harmless messages wrongly blocked at each level. GateBolt blocked 0.2% or less at levels 4 to 6, and 6.2% (Claude Haiku) and 3.6% (Llama) at level 7. The homemade word filter at level 5 blocked 11.0% with both models.
At level 7, GateBolt blocked 6.9% of harmless exchanges with Claude Haiku and 3.6% with Llama. The chart counts 6.2% as mistakes for Claude. It leaves out replies containing the password: some revealed the secret, while others used the word innocently. That means the mistake count may be too low. The appendix shows all the counts.
Blocking about one in 15 harmless exchanges, as at level 7 with Claude Haiku, is too often for many products. Most of the blocks counted as mistakes were on messages close to attacks. For everyday messages, the recorded wrong-block rate was 1.3% with Claude Haiku and 0.0% with Llama. Every GateBolt wrong block came from its reply check. The homemade word filter at level 5 did far worse because it can't tell a question about passwords from an attack.
95% of GateBolt checks finished within about 210 ms. Levels 6 and 7 make up to two checks per exchange. If a message is blocked, there is no reply to check. In battles, each check cost under $0.0001; single-message runs didn't record cost.
## What this doesn't show
- **Two Hodor models only.** Another model could do better or wors