TensorX
返回文献探索

Paper · arXiv 2503.18813

Defeating Prompt Injections by Design

Edoardo Debenedetti, Ilia Shumailov, Tianqi Fan, Jamie Hayes, Nicholas Carlini, Daniel Fabian, Christoph Kern, Chongyang Shi, Andreas Terzis, Florian Tramèr

25 upvotesMarch 24, 2025arXiv 预印本
AI 摘要

CaMeL defends LLM agents from prompt injection attacks by segregating control and data flows and preventing unauthorized data exfiltration, achieving 67% secure task completion in AgentDojo.

LLMsprompt injection attacksCaMeLprotective system layercontrol flowsdata flowsexfiltration of private datacapabilityAgentDojo

Abstract

Large Language Models (LLMs) are increasingly deployed in agentic systems that interact with an external environment. However, LLM agents are vulnerable to prompt injection attacks when handling untrusted data. In this paper we propose CaMeL, a robust defense that creates a protective system layer around the LLM, securing it even when underlying models may be susceptible to attacks. To operate, CaMeL explicitly extracts the control and data flows from the (trusted) query; therefore, the untrusted data retrieved by the LLM can never impact the program flow. To further improve security, CaMeL relies on a notion of a capability to prevent the exfiltration of private data over unauthorized data flows. We demonstrate effectiveness of CaMeL by solving 67% of tasks with provable security in AgentDojo [NeurIPS 2024], a recent agentic security benchmark.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Defeating Prompt Injections by Design | TensorX