CTL-157 · agent

Protecting the System Prompt and Chain of Command

Keep the operator's instructions out of reach of any runtime input, and rank every other source below them.

TechnicalEffort MediumEffectiveness Medium

Separate privileged instructions from content structurally. User messages, retrieved text, tool output, messages from other agents and MCP tool descriptions all sit below the system and operator rules and cannot override them. When a source tries to change the agent's role, skip its rules or dress up a banned request as a pretext, the agent should refuse and escalate where it makes sense. Treat instructions supplied by connectors or peer agents as untrusted data unless someone with authority approved them independently.

Put it in place

  1. 01Keep system prompts in a signed, read-only store separate from user content.
  2. 02Mark every non-operator source as lower trust in the prompt assembly layer.
  3. 03Log and escalate attempts to redefine the agent's role or rules.
  4. 04Test the hierarchy with injection cases in every release.

Counters 6 techniques