keepcalculator

06 Numbers and Powers

AI Agent Permissions to Disable by Default

Card No. 06·69319 · Updated · Standard formula, shown below

You should disable by default any permission that lets an AI agent modify, delete, or exfiltrate data, execute code, or spend money without explicit human confirmation. This includes file deletion, external data transmission, code execution, financial transactions, and privilege escalation. Start with a “deny by default, allow on request” policy and only enable permissions that are strictly necessary for the task at hand.

Why Default Permissions Matter

AI agents are software programs that can perform tasks autonomously—like browsing the web, reading files, sending emails, or running code. They are often integrated into productivity tools, coding assistants, or customer service bots. The permissions you grant them determine what they can do on your behalf. If you grant broad permissions by default, an agent might take actions you didn’t intend, especially if it misinterprets a prompt or is compromised by a malicious prompt injection.

The principle of least privilege applies here: give the agent only the permissions it needs for the specific task, and revoke them when the task is done. This reduces the blast radius of any mistake or attack.

Permissions to Disable First

  • File deletion and modification: An agent that can delete or edit files could destroy important documents or introduce errors. Disable this unless you explicitly ask it to edit a specific file.
  • External data transmission: Sending data to external servers (e.g., via webhooks or APIs) could leak sensitive information. Disable any network egress unless you are using a tool that requires it and you trust the destination.
  • Code execution: Allowing an agent to run arbitrary code is extremely risky. A bug or malicious prompt could lead to system compromise. Keep this off unless you are working in a sandboxed environment.
  • Financial transactions: Agents that can make purchases or transfer money should be disabled by default. If you need this, require manual approval for every transaction.
  • Privilege escalation: Any permission that lets the agent change its own permissions, install software, or access admin accounts should be off. This is a common attack vector.
  • Email and messaging: Sending emails or messages on your behalf can be abused. Disable unless you explicitly ask it to draft (not send) a message.

How to Choose What to Keep

Start by listing the tasks you actually want the agent to perform. For each task, identify the minimal set of permissions required. For example, if you want an agent to summarize a document, it needs read access to that document, but not write access to your entire file system. If you want it to schedule a meeting, it might need calendar write access, but only for the specific calendar you specify.

Use the agent’s permission settings to restrict by scope (e.g., specific folders, specific contacts, specific domains) rather than granting blanket access. Many platforms allow you to set time limits or require approval for each action—enable those.

Common Problems and Mitigations

One common issue is that agents may ask for permissions at runtime that you didn’t anticipate. Always review permission requests carefully before granting them. Another problem is that some agents have “tool use” where they decide which tools to call; you may not know which tools are available. Check the agent’s configuration to see what tools it can invoke and disable any that are not needed.

Prompt injection is a real threat: an attacker can craft input that tricks the agent into performing an action it shouldn’t. Even with limited permissions, an agent could be manipulated to use its allowed tools in harmful ways. Therefore, keeping permissions minimal is your best defense.

Comparison with Human Assistants

Think of an AI agent like a human assistant. You wouldn’t give a new assistant your credit card, your house keys, and full access to your email on day one. You’d start with limited tasks and gradually expand as you build trust. The same logic applies to AI agents. However, AI agents can act faster and at scale, so the damage from a mistake can be much larger. That’s why default-deny is even more important.

Cost and Performance Trade-offs

More permissions often mean more capabilities, but also more risk. Some agents charge per action or per token, so granting broad permissions could lead to unexpected costs if the agent goes off-script. Also, an agent with many permissions may be slower because it has to evaluate more options. Keeping permissions tight can reduce both cost and latency.

Frequently Asked Questions

What if I need the agent to access my calendar and email?

Grant read-only access to calendar and email, and require approval for any write actions like creating events or sending emails. Many tools let you specify which calendars and mailboxes it can access. Limit to the ones you actually need.

Can I revoke permissions after granting them?

Yes, most platforms allow you to revoke permissions at any time. It’s a good practice to review your agent’s permissions periodically and remove any that are no longer needed. Check your platform’s settings for a permissions or integrations page.

Are there any permissions that are safe to leave on?

Read-only permissions to non-sensitive data (like public web pages) are generally safe, but even those can be abused if the agent is tricked into making many requests. If you’re using a trusted agent from a reputable vendor, basic read access to your own files may be acceptable, but always weigh the risk.

How do I know what permissions an agent has?

Most agents have a settings or configuration page that lists the permissions they have been granted. Review this before using the agent. If the agent is part of a larger platform, check the platform’s security settings.

What should I do if an agent asks for a permission I’m not sure about?

Deny it. You can always grant it later if you decide it’s necessary. If the agent cannot function without that permission, consider whether you actually need the agent to do that task, or look for an alternative.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →