Least privilege
Least privilege is the security principle that every user, program or process should have only the minimum access and permissions it needs to do its job, and no more.
The principle is simple: if something does not need a permission, it should not have it. A backup program needs to read files but not to install software. A clerk who processes invoices needs the payments system but not the payroll database. NIST's definition, taken from US national security guidance, describes it as limiting users, and processes acting for them, to the minimum access needed for their assigned tasks.
The idea is one of the oldest in computer security. Saltzer stated it in 1974 in work on the Multics operating system, and he and Schroeder included it among the design principles in their 1975 paper The Protection of Information in Computer Systems. Early Unix login code put it into practice by starting with administrator rights and dropping them as soon as they were no longer needed. The point is to limit damage: when an account is compromised or a program misbehaves, it can only do what it was allowed to do.
AI agents have given the principle new urgency. An agent that reads email, edits documents or calls other services acts with whatever permissions it holds, and a hallucination or a prompt injection attack can turn those permissions against its user. OWASP's guidance on excessive agency is largely least privilege applied to AI: give agents only the tools they need, connect those tools with narrowly scoped rights, run actions with the user's own limited permissions rather than a powerful shared account, and enforce access checks in the systems the agent calls.
The same thinking applies to people around AI. RAND's 2024 report on securing frontier model weights recommends reducing the number of people who can access the weights. In practice least privilege is easy to state and hard to keep up, because permissions tend to accumulate as people change roles and systems are connected. Regular reviews that remove unused access are a large part of making it work.
It is the rule that every user, program and process should have only the access it needs to perform its function. Limiting permissions limits the damage if an account is compromised, a program has a bug or someone makes a mistake. Saltzer described it in 1974 in work on the Multics system, and Saltzer and Schroeder listed it among their security design principles in a 1975 paper, The Protection of Information in Computer Systems. It has been a standard principle of secure system design ever since. An AI agent should be able to reach only the tools, data and actions its task requires, using narrowly scoped credentials. If it is manipulated or makes a mistake, the harm is then limited. OWASP recommends this as a main defence against excessive agency in LLM applications.Common questions
What is the principle of least privilege?
Who came up with least privilege?
How does least privilege apply to AI agents?
Search for "principle of least privilege", "least privilege AI agents" or "OWASP excessive agency" to see the principle and how it applies to AI systems. Reliable sources include NIST's glossary and security control catalogues, the classic Saltzer and Schroeder paper, cloud providers' identity and access management documentation, and OWASP's guidance for LLM applications.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.