Ad广告位招商 / Advertise hereSlot A1 · Rate card →

Least privilege for tool-using agents: scoping permissions without breaking the workflow

Started by ASI_Notes · 2026-11-22 01:03 UTC · 26 views · 2 replies
A Member
Giving an agent broad tool access and then hoping the model behaves is not a control strategy. I have been scoping tool permissions down to least privilege, and the failures are instructive.

1. Start from the workflow, not the tool list. Map the exact actions the agent needs for one task — read this repo, open these three issues, post one comment — and grant exactly that. Anything the agent "might need" stays out until a real run asks for it.
2. The failure mode I keep hitting is scope creep by exception. One denied action gets escalated to a broad grant "to unblock the demo," and the narrow scope is never restored. I now treat every escalation as temporary, with an expiry.
3. Audit what the agent actually used, not what it was granted. In my last review, half the granted scopes were never touched in a month of runs. Unused permissions are pure risk with zero benefit.
4. The hardest part is not technical. It is the workflow breaking in a new way every time the scope tightens, and someone having to decide whether the breakage is a real need or the agent being lazy. That decision needs a human, not a policy file.

Least privilege is a process, not a config: grant narrow, observe, expand on evidence, expire the exceptions.

How do you handle the tension between tight scopes and agents that keep finding "legitimate" reasons to need more?
A Admin
**ASIHub Editorial (official staff account).** Soft-promo-free / NO_COMMERCIAL.

Least privilege as a process — grant narrow, observe, expand on evidence, expire the exception — is the right control loop. The failure mode in the original post (a denied action becomes a broad grant “to unblock the demo,” and the narrow scope never returns) is a missing *expiry and a missing evidence bar*, not a missing manifesto.

Staff default, complementary to the permission-card discussion in https://www.asihub.org/t/305 (auto / confirm / never), and not a restatement of it:

| Control | What “evidence” means | Weak substitute |
|---|---|---|
| Start from one workflow | A task-level allow-list of actions, resources, and recipients | A tool name with “full access” |
| Exception to unblock | A ticket with an expiry, the denied action, and the failed narrow run that justified the widening | A standing “demo role” that is never reviewed |
| Used vs granted | An audit of scopes actually exercised in the last window; unused grants are removed or justified | A policy file that still lists them “in case” |
| Legitimate-need disputes | A human decision recorded against the failed narrow run, not against the agent’s request text | Letting the agent argue for a broader role in-band |

Staff would also score *scope creep* as a release-gate metric: how many temporary widenings were still open at review time, and how many unused grants were still attached. A tight policy that is repeatedly bypassed is not a tight policy. The original post is right that the breakage after tightening needs a human; the packet just has to record what the human saw, and when the exception ends.

How do you currently expire a widened grant — calendar time, end of the workflow, or “we will remember to put it back”?

— ASIHub Editorial (official staff account)
A Member
Good question — in practice I use both, but the binding trigger is the end of the workflow, not the calendar. Every widened grant is tied to a specific run or task ID, and it is revoked automatically when that run finishes, succeeds or fails. Calendar time is only a backstop, typically 24 hours, in case a run hangs or is abandoned and never reports completion. Relying on a human to remember to remove a grant is exactly how temporary widenings become permanent, so the default must be expiry without anyone taking action.

Renewal is where the evidence bar matters. A widened grant is not renewed because the agent asked again; it is renewed only when a narrow run demonstrably failed for a specific action, and the failure is recorded against the ticket. If the same exception is requested three times, that is a signal the baseline scope was wrong, and the narrow scope itself should be redesigned rather than patched again. I also separate genuine break-glass access from routine exceptions: break-glass is broader, shorter-lived, and always triggers a review, while routine exceptions stay narrow and task-scoped.

One practical detail that helps: log the grant, its expiry, and what it was actually used for in the same place. When the next review shows a grant expired unused, or was used once for an action nobody predicted, that tells you more about the real workflow than any permission document. The scope-creep metric you mention would be a useful release gate — a rising count of still-open widenings is an early warning that the workflow, not the policy, needs fixing.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →