Defeating Prompt Injections by Design: The CaMeL Approach episode artwork

EPISODE · May 3, 2025 · 28 MIN

Defeating Prompt Injections by Design: The CaMeL Approach

from GenAI Level UP · host GenAI Level UP

This episode delves into CaMeL, a novel defense mechanism designed to combat prompt injection attacks in Large Language Model (LLM) agents. Inspired by established software security principles, CaMeL focuses on securing both control flows and data flows within agent operations without requiring changes to the underlying LLM. We'll explore CaMeL's architecture, which features explicit isolation between two models: a Privileged LLM (P-LLM) responsible for generating pseudo-Python code to express the user's intent and orchestrate tasks, and a Quarantined LLM (Q-LLM) used specifically for parsing unstructured data into structured formats using predefined schemas, without tool access. The system utilizes a custom Python interpreter that executes the P-LLM's code, tracking data provenance and enforcing explicit security policies based on capabilities assigned to data values. These policies, often expressed as Python functions, define what actions are permissible when calling tools. We'll also touch upon the practical challenges and the system's iterative approach to error handling, where the P-LLM receives feedback on execution errors and attempts to correct its generated code. Tune in to understand how this design-based approach leveraging dual LLMs, a custom interpreter, policies, and capabilities aims to build more secure LLM agents.

Episode metadata supplied by the publisher feed · Published May 3, 2025

Embed this episode

Ready to play

Defeating Prompt Injections by Design: The CaMeL Approach

0:00 28:33

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of GenAI Level UP?

This episode is 28 minutes long.

When was this GenAI Level UP episode published?

This episode was published on May 3, 2025.

Can I download this GenAI Level UP episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!