AI Security
Defenders Turn Prompt Injections Into Weapon Against AI-Powered Hackers
Researchers discovered that embedding forbidden commands alongside stored secrets can block autonomous AI agents from compromising systems, cutting attack success rates dramatically.
WIRED — AI
Security researchers have discovered a defensive technique that weaponizes prompt injections—the same malicious commands attackers use to manipulate AI systems—to stop autonomous AI hacking agents cold. By embedding hidden instructions that violate an LLM's safety guidelines directly into cloud storage alongside sensitive data, defenders can trigger the model's refusal mechanisms and derail intrusions before they succeed.
How the Technique Works#
Tracebit researchers call the strategy "context bombing." The approach exploits a fundamental limitation: language models halt when they encounter content that contradicts their guardrails. By planting prompts that instruct the LLM to perform obviously prohibited tasks—generating instructions for creating biological weapons or (in models trained by Chinese developers) referencing sensitive historical events—defenders can force attacking agents to shut down mid-operation.
"What we're trying to capture is the fact that this does have a strong, sharp effect and one that can be difficult for the agents to come back from," explained Andy Smith, Tracebit's cofounder and CEO. "Once they get that into their context they are going to keep refusing."
Testing Against Leading Models#
Tracebit tested the technique across five major AI models—Claude Opus 4.8, Google Gemini 3.1 Pro, Alibaba's GLM 5.2, DeepSeek 4 Pro, and Kimi 2.6—in a simulated AWS environment. Researchers instructed each model to perform routine developer tasks, which naturally led the agents to explore and discover the planted sabotaged secrets. Across 152 attack runs:
- Admin privilege escalation plummeted from 57% to 5%
- Full compromise with persistent backdoor installation fell from 36% to 1%
- Any successful attack path dropped from 91% to 15%
- The most capable model tested, Opus 4.8, went from achieving admin access in 93% of attempts to failing every single time
A Response to Real Threats#
The defensive innovation arrived at a critical moment. Earlier research from Socket and Check Point revealed that attackers have already begun using prompt injections to disable AI-powered security tools. By injecting commands into malware that force AI assistants to refuse analysis, attackers can evade detection.
Tracebit's earlier work introduced "canary" AWS resources—fake but realistic-looking assets that alert defenders when probed by autonomous agents. However, these canaries only warned of attacks; they didn't stop them. With models requiring an average of 14 minutes to escalate to full administrative control and canaries providing roughly an 8-minute head start, the margin for human response proved uncomfortably narrow.

