Prompt injection has long been the attacker's secret weapon — a carefully crafted command slipped into an email or calendar invite that tricks a large language model into stealing data or carrying out malicious actions. But a new technique flips the script, turning that same vulnerability into a defensive tool.
Researchers at Tracebit discovered that planting prompt injections alongside fake credentials, passwords, and cryptographic keys in Amazon Web Services environments can stop AI-powered hacking agents cold. When an attacking LLM stumbles on one of these planted strings, the prompt orders it to do something its guardrails forbid — like describing how to develop inhalable Anthrax spores or referencing the Tank Man from Tiananmen Square. The model immediately refuses to continue its attack. Tracebit calls this approach "context bombing."
"We're triggering a refusal mechanism in the context," said Andy Smith, Tracebit co-founder and CEO. "Once the agent gets that into its context, it keeps refusing." In tests across five leading models — including Opus 4.8, Gemini 3.1 Pro, and DeepSeek 4 Pro — the technique slashed the rate of full account admin takeover from 57% to 5%. Complete compromise fell from 36% to 1%. The most capable agent, Opus 4.8, went from achieving admin access in 93% of runs to failing every single time when confronted with a context bomb.
Source: Ars Technica
