CTL-138 · agent

Keeping Outside Text Away From Commands

Make sure anything an agent reads is handled as data, enforced by architecture and not by prompt wording.

TechnicalEffort HighEffectiveness High

Emails, web pages, tickets, documents, form posts, webhooks and tool descriptions can all hide instructions. Tag every input with where it came from and keep it out of the channel that carries commands. Process outside content in a low-privilege, isolated worker, and require an explicit step before a trusted agent acts on the result. A two-model design helps: a privileged planner never sees raw content, and a quarantined reader cannot call tools. Keep the provenance tags attached so an investigator can trace any claim or action back to its source.

Put it in place

  1. 01Label each input with its source and trust level at ingestion.
  2. 02Run external content through a no-tools reader and pass only structured output to the planner.
  3. 03Require an approval or policy check before quarantined output can trigger tool calls.
  4. 04Log provenance on every output and action for later tracing.

Counters 10 techniques