Loading…
Loading…
Written by Max Zeshut
Founder at Agentmelt · Last updated Aug 19, 2026
The security principle that an identity — human or agent — should hold only the access it needs for its task, and no more. For AI agents it's the single highest-leverage control, because agents chain tools: the blast radius of a compromised agent is the *union* of every scope it can reach, so every unnecessary permission compounds. Least privilege is exactly what shadow agents skip — they typically borrow a human's full OAuth grant (an agent that needs to draft replies in one label inherits the entire mailbox, drive, and calendar). Enforcing it means giving each agent its own scoped Non-Human Identity (NHI) with narrow, short-lived, revocable permissions rather than a broad standing token. Pairs with approval gates for irreversible actions and sandboxing for code execution.
A finance reconciliation agent needs to read the bank feed and write to a staging ledger — nothing else. Least privilege gives it read-only access to the bank API and write access to one ledger table, with no ability to move money or touch the general ledger. If prompt-injected, it can dirty a staging table (recoverable) but can't initiate a payment.