Work

Hacking Back the AI Hacker: Prompt Injection as a Defense Against LLM-driven Cyberattacks

Year: 2026
Type: conference-paper
Abstract: Large language models (LLMs) are making multi-step cyberattacks cheaper to run and easier to automate. We present Mantis, a mechanism that leverages prompt injection for defensive purposes, turning it against the attacking LLM-agent itself. Once Mantis detects an attacking agent, it injects defender-crafted content into system responses and steers the agent toward one of two outcomes: a tarpit that wastes time and resources, or a controlled hack-back action that helps collect attribution information. Mantis combines decoy services with dynamic prompt injections and uses the attacker’s own interaction loop to deliver the defense. In our evaluation, Mantis achieves the sabotage objective in 95.4% of runs and keeps attacker success below 3%. We release Mantis as open source.
Language: English
Open Access status: hybrid
OpenAlex ID: W4404314596
FWCI: 10.12
Cites: 33
Cited by: 31
Related to: 10