Evil Geniuses: Delving into the Safety of LLM-based AgentsEvil Geniuses: Delving into the Safety of LLM-based Agents
The researchers propose an attack method against LLM-based agents, Evil Geniuses (EG), which achieves high attack success rates on three agent frameworks, CAMEL, MetaGPT, and ChatDev, based on GPT-3.5 and GPT-4. The paper examines agent safety from three perspectives: number of agents, role definition, and attack level. It first uses templated attack strategies to test the effect of the number of agents, while EG autonomously generates prompts related to the original roles through red-blue teaming, significantly improving the aggressiveness of the generated prompts and their similarity to the original roles. Evaluation and discussion show that these agents are less robust and more prone to harmful behavior than LLMs, and can generate more covert content. Code is open-sourced at https://github.com/T1aNS1R/Evil-Geniuses。