Reproduce “The Dark Side of LLMs: Agent-based Attack Vectors for System-level Compromise” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Matteo Lupinacci, Francesco Aurelio Pironti, Francesco Blefari, Francesco Romeo, Luigi Arena, Angelo Furfaro

An empirical security study of 18 LLMs shows that agents with tool access can be induced to execute malware through direct prompts, poisoned retrieval content, and messages from other agents. Vulnerability was observed in 94.4% of models for direct injection, 83.3% for the tested RAG backdoor, and 100% for inter-agent attacks, often while the agent still completed the user’s legitimate task.

Key insights

  • Recognizing that an instruction is malicious does not consistently prevent execution: several models identified the threat yet still invoked the available tool.
  • Inter-agent messages were especially effective as a trust-boundary exploit; every evaluated model executed the malicious request in the tested peer-agent configuration, including models that resisted direct or RAG-based attacks.
  • Correct task completion can coexist with compromise, making attacks difficult to detect from the user-visible response and showing that model refusals alone are insufficient security controls.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.