Least privilege is the security principle of giving each user, program or process only the access it needs to do its job, and nothing more. A reporting tool that only reads data should not be able to delete it, and a service that talks to one database should not hold credentials for others.
The principle limits the damage when something goes wrong. If an account, application or AI agent is compromised, the attacker can only do what that account was allowed to do, so narrower permissions mean a smaller impact. It is one of the most effective controls against many kinds of attack.
Putting it into practice takes continuing effort. Permissions tend to grow over time as people change roles and projects add access for convenience, which is sometimes called privilege creep. Granting too little can break legitimate work, and defining what is needed takes time. Least privilege does not stop an attack from starting, only from spreading.
To apply it, start accounts with minimal access, grant additional rights for a stated purpose, use short-lived or scoped credentials where possible, review permissions regularly and remove what is unused. For AI agents, limit the tools, data and actions each agent can reach.