CourionAI
EN
Newsletter
← All news
security 3 min read

Defenders are now using prompt injection as a trap for AI attackers

Tracebit hid short strings inside fake cloud resources that trip an attacking AI model's own safety rules. In tests, a single string stopped Claude Opus 4.8 from reaching admin access every single time.

Risograph illustration of a small birdcage placed inside a maze of server cabinets, with a mechanical spider frozen mid step in front of it

Prompt injection is usually the villain of AI security stories. It is the trick where hidden text in a document, a web page, or an email quietly becomes an instruction the AI follows. Researchers at the security firm Tracebit have now pointed the same trick in the other direction, and the results are surprisingly strong.

The setup uses something defenders already deploy: canaries. A canary is a decoy, a fake cloud resource such as an unused storage bucket or a fake set of login credentials that nobody legitimate has any reason to touch. If something reads it, you know an intruder is inside. Tracebit added a twist by hiding a short piece of text inside the decoy, which they call a context bomb. When an attacking AI agent snoops around and reads that fake secret, the text lands in its context, the working memory it uses to decide what to do next. The text is written to trip the model’s own safety rules, so the model stops instead of continuing.

The test numbers are striking. Tracebit built an imitation corporate cloud environment with ten separate ways in, then ran 152 attempts using agents powered by Claude Opus 4.8, Gemini 3.1 Pro, GLM 5.2, DeepSeek 4 Pro, and Kimi K2.6. In the clean environment, the agents reached at least one of their goals in 91 percent of runs. With one context bomb planted, that fell to 15 percent. Opus 4.8 reached full administrator access in 93 percent of clean runs and failed every single time once the bomb was in place. Gemini managed full access plus a durable foothold in 60 percent of clean runs and also failed with the bomb present. And because every triggered bomb is still a canary being read, the defender gets an alert at the same moment.

The interesting part is what the strings actually contained. The researchers avoided anything genuinely vile and anything cyber-related. They found that Western models reliably stopped when the text touched sensitive biological topics, while Chinese models accessed through Chinese providers stopped when the text referenced politically sensitive subjects in China, written in Chinese. In other words, the defense works by aiming a model’s safety training at itself, which means it is only as durable as that training. Tracebit says openly that it has not tested so-called abliterated models, versions that have had their safety guardrails stripped out, so it is an open question whether this works against them at all.

The broader context matters too. The UK’s National Cyber Security Centre warned in late 2025 that prompt injection may never be fixable the way older web vulnerabilities were, because language models draw no hard line between data and instructions. Tracebit’s answer is essentially to stop fighting that fact and use it.

What this means for you: Nothing to install today, and this is a technique for people who run infrastructure rather than for individuals. But it is a useful reframe: as attackers increasingly point automated agents at systems, the fact that those agents can be talked out of things becomes a defensive asset. Worth keeping expectations grounded, though. This slows attackers down and raises an alarm. It is a tripwire, not a wall.

Sources

Source: https://agentic.tracebit.com/context-bombs/

Next story

One bad link was enough to build an AI agent that spied for an attacker

Security firm Zenity Labs showed how a single tampered ChatGPT link could create an autonomous agent inside a company, using an employee's own permissions and checking the attacker's inbox for orders every five minutes. OpenAI has fixed it.

Risograph illustration of an opened envelope with a fishing hook, unfolding into a paper chain of small robot silhouettes linked to opened padlocks