Mantis framework uses prompt injection to fight back against AI-driven cyberattacks
以提示词注入反击AI驱动的网络攻击
A George Mason University research team proposes the Mantis framework, turning prompt injection from an LLM vulnerability into an active defense measure used to mislead LLM penetration agents. The framework uses an anonymous FTP service and a login page with a SQL injection vulnerability as decoys, and hides the injected content in ANSI escape sequences and HTML comments so that attacking agents read it when parsing target responses. In the experiments reported in the paper, against three attack frameworks, PentestGPTAuto, AutoPenAgent and HackingBuddyGPT, and two underlying models, ChatGPT-4o and Claude 3.5 Sonnet, the target-destruction achievement rate was about 95.4%, and the attacker success rate was suppressed to below 3%. The active defense induces the agent to open a reverse shell on the attacker's host, while the passive defense traps it in an infinitely generated fake directory tree; when the number of branches increased from 5 to 150, the cost of a single GPT-4o attack rose from $0.81 to above $4.55.