Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Security · Think Like an Attacker · about 16 min to read

Play it as a journeyTutor comes with a plan

LLM & Agent Security

LLM and Agent Security
LLM and Agent Security · Open board

The same buried-order trick that broke a website’s login box, now aimed at something that can act for you instead of just answering you. By the end of this lesson you will have broken a toy version of it yourself, and know exactly where the fix has to live.

Before you start. Web Vulnerabilities (the OWASP classics) showed a website taking a stranger’s typed text and running it as if it were a command, a login box or a comment field where a hidden instruction can turn into a database order, from Web Vulnerabilities (the OWASP classics). This lesson does the same thing to something newer: a language model wired up with jobs it is allowed to do on your behalf, the setup from Agents & Tool Use. A quick primer on that setup, so you need nothing else: an agent with tools is a language model that can ask for ordinary functions to be run, such as sending an email or opening a file. The model never runs a tool itself, it only writes a request, and the program around it (the harness) runs the function and feeds the result back. The model reads that result and then either asks for another tool or gives its final answer.

Lesson 27 of 39 in Security

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • September 2022: Riley Goodside makes a translator disobey
  • February 2023: a Stanford student makes a shipped product confess
  • The new hire who reads every letter on the desk
  • The stranger who never has to meet you
  • Three things have to be true at once
  • The checkpoint that never reads the letter
  • Run it yourself
  • Stacking gates that do not rely on the model
  • Why “the model refuses almost every time” is not a control

Terms it explains: context window, prompt injection, agent, lethal trifecta, gate, Direct injection, Indirect injection.

Review Security