Glossary · AI security & threats
Principle of least privilege
also: minimal rights, least privilege
In short
The principle of giving every user, service and AI agent exactly the rights the task requires and no more. Limits the damage from misbehaviour or compromise. Central for AI agents, since over-broad access rights enable real actions.
Reference: ISO/IEC 27001:2022 Annex A 8.2/8.3; ISO/IEC 27090:2026, 6.11.3.3
What it means
The principle of least privilege is an old rule of information security: whoever may do something may do exactly as much as the task requires. ISO/IEC 27001:2022 anchors it in, among others, the controls on access rights (Annex A 5.18), privileged access rights (A 8.2) and information access restriction (A 8.3). Limited rights limit the damage when an account is misused or an error happens.
With AI agents the principle gains new weight, because an agent acts on its own and can be misled by injected instructions. ISO/IEC 27090:2026 recommends in 6.11.3.3 tying the privileges of AI systems to the specific task, limiting them in time, delegating them cleanly and linking them to a separate, verifiable identity of the agent. The means differ by design: mediated access with a check before every execution for agents working through interfaces, and restricted environments with explicitly allowed actions for agents that operate a computer.
In practice and in the audit
The most common mistake is an agent that works with its user’s rights. If the managing director’s assistant may read everything, so may the assistant’s AI tool, and every injected instruction reaches the same data. So give the agent its own service account with its own narrow rights: read where it needs to read, create drafts where it is meant to write, and require confirmation by a person for final actions.
Review the rights regularly and after every extension of an agent. New tools often come with broad rights because that makes setup quicker. In an audit against ISO/IEC 27001, auditors like to point to service accounts with administrator rights that nobody can assign to anyone any more. With AI agents, the review also has to ask which data the agent gets to see through the documents it retrieves.
References in standards and law
I cite standards by clause number and in my own words, never verbatim. Legal texts link to EUR-Lex.
- ISO/IEC 27001:2022, Annex A 5.18, 8.2 and 8.3Access rights, privileged access rights and information access restriction.
- ISO/IEC 27090:2026, 6.11.3.3Task-specific and time-limited privileges for AI systems and agents.
- ISO/IEC 27090:2026, 5.3Zero trust principles with access only as needed and only for as long as needed.
Frequently asked questions
How narrow should an AI agent’s rights be?
Narrow enough that an error or an attack only affects that one task. In practice: its own account, only the data and tools it needs, rights with an expiry time and confirmation by a person for anything that cannot be undone.
Related terms
Further reading in the insights
Matching service
An access concept under ISO/IEC 27001
I build an access concept under ISO/IEC 27001 with you that covers people, services and AI agents alike.
To ISO 27001Author: Lars Zimmermann
Term and explanation in my own words. Researched to the best of my knowledge and reviewed for accuracy.