Security and access

Why a new agent should start read⁠-⁠only

Give a new agent permission to read, then add the rest one step at a time. Each write permission should be earned on your own work.

By the duyan team · Updated · 3 min read

Security and access

In short

  • Start a new agent with read access only.
  • Have it write what it would do into a list or a drafts folder, and check that list.
  • Add one write permission at a time, as narrow as the step.
  • Keep sends, payments and deletes behind a person’s approval.
  • Narrow the reading too, since read access can still leak.

Start with read access, then add the rest

A new agent should get permission to read and nothing else. Add each write permission only after the agent gets that step right on your own work.

An agent that can’t write can’t send the wrong email or delete a record. Its mistakes stay on paper, where a person can catch them.

What read⁠-⁠only protects you from

OWASP lists “excessive agency” among the top 10 risks for apps built on language models. Its causes are an agent holding more tools, permissions or freedom than its job needs.

One of OWASP’s examples is an agent that only needs to read documents. It is given a tool that can also edit and delete them.

Read⁠-⁠only also limits the damage from planted instructions. An agent that can’t write has less it can be told to do.

Why we add permissions instead of removing them

You learn what an agent needs by watching it work on your data. A permission list written before the first run is a guess.

Taking a permission away later is harder. By then someone relies on it, and removing it breaks their week.

Adding permissions one at a time also keeps a clear record. Each one has a date and a reason, so anyone can see why the agent holds it.

The MCP security guidance points the same way. Servers should start with a few low⁠-⁠risk scopes and ask for more when an action needs them.

Google tells app makers to choose the narrowest scope that works. Users, it notes, grant limited and clearly described access more readily.

How an agent earns each permission

Run the agent read⁠-⁠only, and have it write what it would do into a list or a drafts folder. A person compares that list with what they would have done.

Keep the measure simple. Count how often the list matched the person, and look closely at each miss.

Once a step comes out right for a few weeks, give write access for that step only. Note the date and the reason.

Keep each new permission as narrow as the step. Some services can’t split permissions finely, and Gmail is one.

In Gmail, the permission to move mail between labels also allows sending. Where that happens, keep a person’s approval on sending, or use a narrower tool built for the one job.

Keep anything sent, paid or deleted behind a person’s approval, even after the step has proved itself.

If a step keeps coming out wrong, leave it with a person. Some steps never need an agent.

When we’d say otherwise

Some agents exist to write, and their writes are easy to undo.

A coding agent can work on its own copy of the code. A person reviews each change before it goes live.

A drafting agent can write into a drafts folder from day one. A draft affects nobody until someone sends it.

Reading carries risk too

Read access can be a risk on its own. An agent that reads every email and file holds everything a leak would need.

So narrow the reading too, such as one folder or one label. Google’s drive.file permission covers only files the app creates, or that a person opens or shares with it.

Reading plus any way to send data out can still leak. OWASP describes a planted instruction that makes a model put private text into a web link it then loads.

What to do this week

  • List the steps the agent takes, and mark each one read or write.
  • Create a read⁠-⁠only key or connection for the reading steps. OpenAI offers read⁠-⁠only keys, Gmail a read⁠-⁠only scope and Microsoft 365 a Mail.Read permission.
  • Have the agent put its proposed writes into a list or a drafts folder.
  • Check that list against a person’s work for a set period.
  • Add one write permission at a time, and record the date and the reason.
  • Keep sends, payments and deletes behind a person’s approval.

Want someone to check yours?

We review software, automations and agents that you or someone else built, and list what we’d fix first. About a week, $1,200 fixed, and you keep the written findings either way.

Sources

  1. OWASP Gen AI Security Project, “LLM06:2025 Excessive Agency”, genai.owasp.org (accessed 5 November 2026)
  2. OWASP Gen AI Security Project, “LLM01:2025 Prompt Injection”, genai.owasp.org (accessed 5 November 2026)
  3. Model Context Protocol, “Security Best Practices” (Scope Minimization), modelcontextprotocol.io (accessed 5 November 2026)
  4. Google for Developers, “Choose Gmail API scopes”, developers.google.com (accessed 5 November 2026)
  5. Google for Developers, Gmail API reference, “Method: users.messages.modify”, developers.google.com (accessed 5 November 2026)
  6. Google for Developers, “Choose Google Drive API scopes”, developers.google.com (accessed 5 November 2026)
  7. OpenAI Help Center, “Managing projects in the API platform” (Choose key permissions), help.openai.com (accessed 5 November 2026)
  8. Microsoft Learn, “Microsoft Graph permissions reference”, learn.microsoft.com (accessed 5 November 2026)

Bring your hardest question

Ask us about keys, access, where your data goes or who can switch it off.

Read⁠-⁠only by default. Your keys stay yours.