CTL-131 · agent

Guardrail Files the Agent Cannot Touch

Store agent settings, hooks and logs where the agent process has no write access.

TechnicalEffort MediumEffectiveness High

If an agent can write to its own guardrails, they are suggestions. Keeping managed settings and hooks in system paths owned by root or an admin, running agents in sandboxes with read-only mounts for config, and shipping logs off the host as they are written removes that option.

Sandboxing also limits what an injected agent can do to the rest of the machine. Test that the agent truly cannot write to these paths by asking it to try.

Put it in place

  1. 01Place managed settings and hook scripts in system directories the user and agent cannot modify.
  2. 02Run agents in a sandbox or container with config mounted read-only.
  3. 03Deny agent writes to settings, hooks and rules paths in the agent's own permission rules.
  4. 04Stream transcripts and tool-call logs to central storage in real time.

Counters 5 techniques