paragon
Authorization and policyParagon Research / Perspective

Least privilege for software that acts.

Instructions to a model are a request. Scoped, expiring permits are a control.

4 min readParagon Research

An old principle

Saltzer and Schroeder stated it in 1975: every program and every user should operate using the least set of privileges necessary to complete the job. Our position is that this principle, applied strictly, is the single most important safety property for software that acts, and that most agent integrations today violate it by default.

The principle predates the internet. It underpins operating system design, cloud identity and every serious security architecture since. It was written for programs whose behaviour was fixed when they were compiled. The new problem is applying it to an actor whose next step is generated at run time.

A new kind of actor

A conventional integration does what its code says. If it holds broad credentials, the risk is bounded by the code paths that use them, and those can be reviewed. An agent is different. Its plan is produced on the fly from the conversation, retrieved documents and tool results, any of which can be wrong, ambiguous or hostile.

Give such an actor a service account with write access to the whole CRM “because it might need it”, and the question “what can this system do?” no longer has a reviewable answer. The honest answer becomes “anything the credentials allow, if something persuades it to try”.

This is why we think prompt-level instructions (“only change the appointment”) are not a control. They are a request to a component that can be confused. Controls live in the boundary, where they cannot be talked out of.

Figure Least privilege. The grant matches one task, then expires.

Scope to the operation

In our design, authority is granted per operation, not per integration. Decide issues a permit naming the action, the record and the constraints: move this appointment, for this customer, to a slot within the next fourteen days. Execute can do that and nothing else. The permit expires when the operation ends.

This is capability-based thinking, which goes back to Dennis and Van Horn in 1966: authority travels as an unforgeable token tied to a specific object and right, rather than as a broad identity that can be used anywhere. Modern authorization systems, from attribute-based models described by NIST to relationship-based systems like Google’s Zanzibar, give practical ways to express these scopes at scale.

Illustrative: a customer asks to update their mailing address. The permit covers the address field on one customer record, after identity verification, and nothing in billing, products or contact preferences. If the plan tries to touch anything else, the call fails at the boundary, and that failure is itself a signal worth investigating.

The confused deputy

Norm Hardy’s 1988 paper names the failure precisely. A deputy is a program acting on behalf of a client, using its own authority. It is confused when a client tricks it into using that authority for something the client could not do directly.

An agent is a deputy by construction. The customer cannot change billing records directly, the agent can, and the customer is talking to the agent. Indirect prompt injection is the same attack arriving through a different door: instructions hidden in an email, a document or a record the agent reads, steering it to use its authority on someone else’s behalf.

Hardy’s answer was capabilities: make the deputy act with the client’s authority, not its own. For agents, that means the permit should reflect what this customer, verified to this degree, is entitled to request. Never the union of everything the agent could ever do.

Instructions to a model are a request. Controls live in the boundary, where they cannot be talked out of.

Making it testable

A principle that cannot be tested will erode. We think least privilege for agents should be checked in three ways.

Statically: for every tool, list the permits that can reach it and the scopes they carry, and review that list like any other access policy. Dynamically: run the evaluation set with a monitor that records every attempted action outside the permit, and treat any such attempt as a defect, even if the boundary blocked it. Adversarially: include injection and social-engineering cases whose only success condition is an out-of-scope call.

The metric we care about is not “no breaches”, which is easy to claim and hard to prove. It is the size of the gap between what the system holds and what it uses. Shrinking that gap is the work.

What it costs

Fine-grained permits are more work. Every new capability needs a scope designed, reviewed and tested. Some legacy systems only offer all-or-nothing service accounts, and wrapping them in narrower interfaces is real engineering.

We think this is the right place to spend effort. The cost of designing a scope is paid once. The cost of an agent with broad authority being steered into misuse is paid every time it happens, and in regulated industries it is paid in public.

Open questions

How should permits be expressed when the right scope depends on information only discovered mid-task? Can scopes be derived automatically from policy documents without becoming either too broad or too brittle? And what is the right way to grant temporary elevation, for example a supervisor approving a one-off exception, without creating a path an attacker can imitate?

Further reading

  • The Protection of Information in Computer SystemsJerome H. Saltzer and Michael D. Schroeder, 1975. Proceedings of the IEEE.
  • The Confused Deputy (or why capabilities might have been invented)Norm Hardy, 1988. ACM SIGOPS Operating Systems Review.
  • Programming Semantics for Multiprogrammed ComputationsJack B. Dennis and Earl C. Van Horn, 1966. Communications of the ACM.
  • Guide to Attribute Based Access Control (ABAC) Definition and ConsiderationsVincent C. Hu and colleagues, 2014. NIST Special Publication 800-162.
  • Zanzibar: Google’s Consistent, Global Authorization SystemRuoming Pang and colleagues, 2019. USENIX Annual Technical Conference.

A perspective from Paragon Research. It describes intended architecture and open questions, not deployed capability or reported results.

Discuss this perspective

Work with Paragon Research.