Tencent Xuanwu Lab disclosed at Black Hat 2025 a universal trigger injection method that hijacks agents to achieve RCE
玄武在BlackHat揭示劫持智能体达成RCE的新方法
Tencent Xuanwu Lab released research at Black Hat US 2025, proposing a new prompt injection paradigm that decouples triggers from payloads, using the same set of optimized token sequences to control the model to precisely output attacker-specified content. The authors used the greedy coordinate gradient (GCG) method to train trigger prefixes and suffixes on an adversarial dataset containing tens of thousands of samples, achieving an average attack success rate of about 70% after approximately 200-500 iterations on open-source models such as Qwen-2, Llama-3.1, and Devstral-Small. In the demonstration cases, attackers used malicious emails with embedded triggers to make Open Interpreter execute commands, or updated third-party MCP tool descriptions to make Cline skip automatic approval and directly execute shell commands.
It demonstrates a universal prompt injection method that decouples triggers from payloads, and provides actual attack chains on Cline and Open Interpreter, which can be used by teams deploying agents to evaluate tool approval and sandbox policies.