Blast Radius of a Leaked Token
In this article
- List what a leaked user access token can reach, on which records and for how long, counting the refresh token behind it.
- Compare that reach with a short per-action token that only a tool proxy holds, for the same task.
- Choose between a mediated action and a brokered per-action token for a tool call.
- Give the order in which to revoke credentials after a suspected leak, and say why that order.
- Terms defined here: credential revocation.
Overview
The quickest way to let an agent act for a person is to hand it that person's sign-in token and let it call whatever it needs. It works on the first day. Then one day the token turns up somewhere it should not be: in a tool's output, in a log line, in a reply a customer can read.
Three questions follow at once: what can whoever copied it do, for how long, and what do you switch off first?
By the end you can list the reach of a leaked token, including the token that quietly renews it, set it beside the reach of a narrow token built for one action, pick between two designs in which the agent holds no secret at all, and give the revoke order with a reason for each step.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- A token in the tool config
- What the copy can do
- The refresh token behind it
- Same task, brokered token
- Mediate or broker
- Revoke in this order
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions