techniques / CAT-024
Injection-Triggered Counterstrike
After an agent exploits a decoy, text injected into the service's responses steers it into running a defender command on its own host.
| family | injection |
|---|---|
| goals | counterstrikedetect |
| delivery | network-servicehttp-responsehtml-comment |
| targets | pentest |
| implementations | Mantis (research) |
sightings 0
none
mechanism
Relies on prompt injection; an artifact execution trap reaches the same outcome without it. Mantis injects only after the agent exploits a decoy (anonymous FTP login, SQL injection on a decoy web app) and hides the text from human operators with ANSI escape sequences or HTML comments. Asking indirectly, as a startup command, worked better than asking for a reverse shell, which models refused. CHeaT frames the command as a step toward the agent's goal, without injection syntax.
responses
| Instruct the agent to skip known decoys or filter known triggers; run it heavily sandboxed. | src |
| Mark target content as untrusted and hard-code limits the model cannot override (ARTEX-ymh). | src |
references
- Hacking Back the AI-Hacker: Prompt Injection as a Defense Against LLM-driven Cyberattacks · George Mason University · 2024-10
- Three LLM pentest agents including PentestGPT (modified) and HackingBuddyGPT, on GPT-4o and Claude 3.5 Sonnet; three very easy HackTheBox machines, 10 runs per configuration: ~95.4% sabotage success across passive and active configurations; attacker success under 33%.
- Project Mantis · GitHub · 2024-10-24
- Cloak, Honey, Trap: Proactive Defenses Against LLM Agents · USENIX Security 2025 · 2025-08
- PentestGPT, AutoAttacker, PenHeal: all three executed untrusted code in their terminals.
- ArtexPot: the honeypots that hack Artex back · NebuSec · 2026-11-28
- ARTEX 0.3.15, eight direct prompt injections ordering command execution: 0/8. The agents downloaded seven scripts and ran none.
added 2026-12-01 · yaml