DemonAgent: Dynamically Encrypted Multi-Backdoor Implantation Attack on LLM-based Agent

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Zhu, Pengyu, Zhou, Zhenhong, Zhang, Yuanhe, Yan, Shilinlu, Wang, Kun, Su, Sen
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866917005886488576
author Zhu, Pengyu
Zhou, Zhenhong
Zhang, Yuanhe
Yan, Shilinlu
Wang, Kun
Su, Sen
author_facet Zhu, Pengyu
Zhou, Zhenhong
Zhang, Yuanhe
Yan, Shilinlu
Wang, Kun
Su, Sen
contents As LLM-based agents become increasingly prevalent, backdoors can be implanted into agents through user queries or environment feedback, raising critical concerns regarding safety vulnerabilities. However, backdoor attacks are typically detectable by safety audits that analyze the reasoning process of agents. To this end, we propose a novel backdoor implantation strategy called \textbf{Dynamically Encrypted Multi-Backdoor Implantation Attack}. Specifically, we introduce dynamic encryption, which maps the backdoor into benign content, effectively circumventing safety audits. To enhance stealthiness, we further decompose the backdoor into multiple sub-backdoor fragments. Based on these advancements, backdoors are allowed to bypass safety audits significantly. Additionally, we present AgentBackdoorEval, a dataset designed for the comprehensive evaluation of agent backdoor attacks. Experimental results across multiple datasets demonstrate that our method achieves an attack success rate nearing 100\% while maintaining a detection rate of 0\%, illustrating its effectiveness in evading safety audits. Our findings highlight the limitations of existing safety mechanisms in detecting advanced attacks, underscoring the urgent need for more robust defenses against backdoor threats. Code and data are available at https://github.com/whfeLingYu/DemonAgent.
format Preprint
id arxiv_https___arxiv_org_abs_2502_12575
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DemonAgent: Dynamically Encrypted Multi-Backdoor Implantation Attack on LLM-based Agent
Zhu, Pengyu
Zhou, Zhenhong
Zhang, Yuanhe
Yan, Shilinlu
Wang, Kun
Su, Sen
Cryptography and Security
Artificial Intelligence
As LLM-based agents become increasingly prevalent, backdoors can be implanted into agents through user queries or environment feedback, raising critical concerns regarding safety vulnerabilities. However, backdoor attacks are typically detectable by safety audits that analyze the reasoning process of agents. To this end, we propose a novel backdoor implantation strategy called \textbf{Dynamically Encrypted Multi-Backdoor Implantation Attack}. Specifically, we introduce dynamic encryption, which maps the backdoor into benign content, effectively circumventing safety audits. To enhance stealthiness, we further decompose the backdoor into multiple sub-backdoor fragments. Based on these advancements, backdoors are allowed to bypass safety audits significantly. Additionally, we present AgentBackdoorEval, a dataset designed for the comprehensive evaluation of agent backdoor attacks. Experimental results across multiple datasets demonstrate that our method achieves an attack success rate nearing 100\% while maintaining a detection rate of 0\%, illustrating its effectiveness in evading safety audits. Our findings highlight the limitations of existing safety mechanisms in detecting advanced attacks, underscoring the urgent need for more robust defenses against backdoor threats. Code and data are available at https://github.com/whfeLingYu/DemonAgent.
title DemonAgent: Dynamically Encrypted Multi-Backdoor Implantation Attack on LLM-based Agent
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2502.12575