What Should an AI Agent Be Allowed to Access and Do?

What should an AI agent be allowed to access and do? Least privilege, expiring access, passwords, confirmation, logs and revocation, explained simply.

AI agents are built around an AI model and get tasks done through tools: reading files, sending messages, browsing sites where you are signed in, even spending money. The model only asks for each action; the connected software carries it out with whatever access the agent has been given. So connecting an agent to your inbox, files or card is less like installing an app and more like handing over a set of keys, and what it can do depends on what those keys open.

The short answer: an agent should reach only what a specific task needs and do only the actions that task requires, for only as long as the task takes, without holding your raw passwords, with a person approving anything costly or irreversible, a record of what it did, and a quick way to cut it off. Security practice calls the first part least privilege: limiting users, or processes acting for them, to the minimum access their tasks require [1]. Joint guidance from six national cyber-security agencies puts the stakes plainly: the privileges an agent holds directly determine how much risk it can introduce [2]. Granting access does not hand over responsibility, either: the person or organization that connects an agent stays answerable for what it does with that access.

The previous guide, on when an AI agent should stop and ask a human, covered the moments a person steps in during a task; this one covers the boundaries set before the task starts. For background on agents themselves, see what an AI agent is.

TL;DR

  • Access is borrowed authority. Whatever an agent’s accounts and tokens allow, it can do [3, 2].
  • Start narrow. Read-only first, more only when a step needs it [4, 5].
  • Prefer access that expires over standing access [2, 6].
  • Keep secrets away from the agent with scoped tokens, capped payment grants and logged-out browsing [7, 8].
  • Plan the exit. Log what the agent does and know how to revoke it; revoking stops future access but does not recall shared data [2, 9].

What Does “Permission” Mean for an AI Agent?

A permission is authority attached to an identity: a signed-in session, an access token, a key. The service on the other end generally sees the credential, not who or what holds it. That is why OWASP, a community security project, warns against tools that act for one person through an all-powerful account, such as a document reader able to open every user’s files, and recommends running each action with that user’s own minimal access [3].

The idea predates AI by decades. Saltzer and Schroeder’s 1975 paper on computer protection said every program and user should run with the least privilege the job needs, chiefly to limit harm from accidents and errors [10].

Limits must be enforced by the systems the agent touches, not left to the model’s judgment [3]; why software can fence the model in is covered in how agents use tools. And a powerful agent can be turned against its owner. The agencies describe a “confused deputy”: someone with little access manipulates a highly privileged agent into doing what they could not, and because the agent is trusted, the audit trail looks legitimate [2].

What Kinds of Access Can an Agent Hold?

Each type has a narrower alternative.

AccessWhat it can unlockA narrower option
FilesReading, changing or deleting documents and codeOne working folder, secret files blocked [11, 12]
Logged-in accountsActing as you on any site where you are signed inLogged-out browsing, or approval per site [13, 8]
Messages and calendarsPrivate mail, other people’s inboxesOnly the requesting user’s data [2]
PaymentsSpending moneyA grant capped by amount, seller and deadline [7]
CredentialsEvery system the credential reachesTokens tied to one service and specific actions [14]
ToolsWhatever the tool’s functions allowOnly the functions the task needs [3]
Admin rightsChanging permissions, including its ownNo power to raise its own privileges [2]

The bottom rows deserve the most caution, because a credential or admin right opens everything behind it. The agencies say agents should not be able to change their own privileges or delegate authority without expiry timers and a record of who granted what [2].

How Much Access Is Enough?

Enough for the current task, and no more: start read-only and add access when a specific step requires it.

Standards agree. The IETF’s OAuth security guidance says a token’s privileges should be limited to the minimum the application needs, which also limits the damage if the token leaks [14]. Security guidance for the Model Context Protocol (MCP), a protocol for connecting agents to outside tools, recommends starting with low-risk read operations and requesting more only when a privileged operation is first attempted [4]. It lists “full-access” scopes, and bundling privileges to avoid future prompts, as common mistakes [4]. Google tells developers to request access when a feature needs it and to choose the smallest scopes possible [5]. Tokens and scopes are explained in how agents connect through APIs.

Access can even be granted per action: as documented in November 2026, Anthropic’s Claude in Chrome browser agent lets a user allow a single action, after which it asks again, or all actions on a site [13].

Combinations matter too. Meta’s “Agents Rule of Two,” published in October 2025, says that until prompt injection can be reliably detected, an agent should have at most two of three properties in a session: processing untrusted input, access to sensitive systems or private data, and the ability to change things or communicate externally [15]. If a task needs all three, Meta calls for supervision; it also calls the rule a supplement to least privilege, not a substitute [15]. See how websites and data can manipulate agents.

Why Temporary Access Beats Standing Access

Access that ends on its own cannot be forgotten. The agencies recommend just-in-time credentials for high-impact actions, credentials that expire when the job is complete, and elevated rights withdrawn once a sub-task finishes [2]. They also warn that a permission check made once at startup leaves a stale “allow” an attacker can exploit, and advise verifying authorization on every request [2].

As documented in November 2026, GitHub’s fine-grained tokens can be limited to specific repositories and permissions, and GitHub strongly recommends an expiration date [6].

Stripe’s shared payment tokens, in public preview as of November 2026, give a seller scoped permission to charge a customer’s payment method for an agent-initiated purchase, with usage and expiration limits set to the transaction [7]. Stripe said in October 2025 that the tokens can be limited by business, time or amount and revoked at any time [16]. That describes the mechanism, not its adoption.

Should an Agent Ever Hold Your Passwords?

Ideally not. A password or long-lived key carries the account’s full reach, and agents do not always treat secrets carefully. Anthropic reported in March 2026 that its internal log of agent misbehavior includes an agent uploading an engineer’s GitHub access token to an internal computing cluster [17].

Several designs keep secrets out of reach. Claude Code’s deny rules can stop its agent reading a project’s .env file or secrets folder [11]. OpenAI’s Atlas browser offers a logged-out mode in which its agent uses no existing cookies and signs into no accounts without approval, which OpenAI says reduces the risk of attackers acting as you on logged-in sites [8]. Stripe says its tokens let an agent start a payment without exposing card details [16].

For organizations, the agencies recommend giving each agent its own identity and keys rather than shared or static ones [2]. A draft NIST concept paper from February 2026 proposes exploring how access systems can tell agents from people and link each agent to the users who delegated to it [18].

Where Does Confirmation Fit?

Permissions set what an agent can do; confirmation sets which of those actions wait for a person. The agencies suggest rating actions by impact, likelihood and reversibility, with human approval where errors are costly, such as deleting critical records [2]. Some products block certain actions outright: Claude in Chrome will not make purchases, create accounts or handle card or ID data, and always asks before granting authorizations or permanently deleting anything [13]. Designing those pauses is covered in the previous guide, on when an agent should stop and ask a human.

Logs and Revocation: How Do You Take Access Back?

You need a record and an off switch. The agencies recommend logging tool use and results in readable form, logging every change to an agent’s identity or privileges, and keeping agents from writing to their own logs [2]. OWASP notes that logs and rate limits do not prevent harm, but surface it sooner [3].

Revocation is built into the standards: OAuth’s mechanism invalidates a token and, where applicable, other tokens from the same grant, so abandoned access cannot be reused [19]. As documented in November 2026, Google lets account holders remove a linked app’s access, or stop a Google AI agent using a linked app while leaving the app connected [9].

Two limits apply. Revocation looks forward only; Google notes that deleting a sign-in link does not delete your data held by the app [9]. And broad grants are harder to withdraw, since MCP’s guidance warns that revoking a maximum-privilege token disrupts every workflow relying on it [4]. For cases where broad access widened the damage, see how AI agents can fail when they take action. Logs also lead to the next question, covered in the next guide: how to check whether an AI agent completed a task correctly.

What We Know, What We Don’t, and Where Experts Disagree

What We Know

Standards bodies, government agencies and protocol designers agree on minimal access, tied to specific services and actions, preferably short-lived and logged [2, 4, 14].

What We Don’t Know

Independent data on how much access deployed agents hold is scarce. In a May 2025 survey of 353 IT and security professionals commissioned by identity-security vendor SailPoint, 80% said their agents had taken unintended actions, including 39% reporting access to unauthorized systems; these are self-reported views gathered for a vendor [20]. NIST’s draft also asks how to set least privilege for an agent whose needed actions cannot be fully predicted [18].

What Experts Disagree About

Confidence: Expert Debate

Simon Willison, the developer who coined the “lethal trifecta,” called the Rule of Two the best practical advice available but objected that untrusted input plus the ability to change things can do harm even without sensitive data; Meta then relabeled such pairings “lower risk” rather than “safe” [21]. Identity is unsettled too: OWASP emphasizes acting under the user’s own minimal access [3], while the agencies and NIST’s draft favor a distinct identity per agent, linked to the people it serves [2, 18].

Practical Takeaways

  • List what each connection lets the agent read, change, send or spend, and drop what the task does not need [3].
  • Grant read-only or one-action-at-a-time access first [4, 13].
  • Choose credentials with an end date whenever offered [2, 6].
  • Sign in yourself rather than handing over passwords, and keep keys and card numbers out of reach [16, 8].
  • Locate the activity log and the revoke option before you need them [2, 9].

Sources

  1. least privilege – Glossary. NIST Computer Security Resource Center, accessed 2026-11-09.
  2. Careful adoption of agentic AI services. ASD's ACSC, CISA, NSA, Canadian Centre for Cyber Security, NCSC-NZ and NCSC-UK (hosted by NCSC-NZ), 2026-05-01, accessed 2026-11-09.
  3. LLM06:2025 Excessive Agency. OWASP Gen AI Security Project, 2024-04-10, accessed 2026-11-09.
  4. Security Best Practices — Model Context Protocol Specification (version 2026-07-28). Model Context Protocol, 2026-07-28, accessed 2026-11-09.
  5. OAuth 2.0 best practices. Google for Developers, 2026-10-30, accessed 2026-11-09.
  6. Managing your personal access tokens. GitHub Docs, accessed 2026-11-09.
  7. Shared payment tokens. Stripe Documentation, accessed 2026-11-09.
  8. Using Ask ChatGPT sidebar and ChatGPT agent on Atlas (archived copy). OpenAI Help Center (via Internet Archive, snapshot 2026-06-25), accessed 2026-11-09.
  9. Manage links between your Google Account & apps from other developers. Google Account Help, accessed 2026-11-09.
  10. The Protection of Information in Computer Systems. Proceedings of the IEEE (copy hosted by University of Virginia, Department of Computer Science), 1975, accessed 2026-11-09.
  11. Configure permissions. Anthropic (Claude Code Docs), accessed 2026-11-09.
  12. Beyond permission prompts: making Claude Code more secure and autonomous. Anthropic Engineering, 2025-10-20, accessed 2026-11-09.
  13. Claude in Chrome permissions guide. Anthropic (Claude Help Center), accessed 2026-11-09.
  14. RFC 9700: Best Current Practice for OAuth 2.0 Security. IETF (RFC Editor), 2025-01, accessed 2026-11-09.
  15. Agents Rule of Two: A Practical Approach to AI Agent Security. Meta AI blog, 2025-10-31, accessed 2026-11-09.
  16. Introducing our agentic commerce solutions. Stripe, 2025-10-07, accessed 2026-11-09.
  17. How we built Claude Code auto mode: a safer way to skip permissions. Anthropic Engineering, 2026-03-25, accessed 2026-11-09.
  18. Accelerating the Adoption of Software and AI Agent Identity and Authorization (Concept Paper, draft). NIST National Cybersecurity Center of Excellence, 2026-02, accessed 2026-11-09.
  19. RFC 7009: OAuth 2.0 Token Revocation. IETF (RFC Editor), 2013-08, accessed 2026-11-09.
  20. SailPoint Research Highlights Rapid AI Agent Adoption, Driving Urgent Need for Evolved Security. SailPoint (Business Wire press release, via Nasdaq), 2025-05-28, accessed 2026-11-09.
  21. New prompt injection papers: Agents Rule of Two and The Attacker Moves Second. Simon Willison's Weblog, 2025-11-02, accessed 2026-11-09.