What does it mean to connect an AI agent to business systems?
An AI agent becomes useful at work when it can do more than write text: look up a customer record, create a ticket, update an order, draft an invoice. Each of those actions goes through a connection, usually called a tool, to a system your business already runs, such as a CRM, accounting package, help desk, database, or file store.
That connection is also where most of the risk sits. OWASP, the open security community that publishes the best-known lists of web and AI risks, calls the problem Excessive Agency: damaging actions carried out because a model produced unexpected, ambiguous, or manipulated output. It is entry LLM03 in OWASP’s 2026 Top 10 for LLM applications (it was LLM06 in the 2025 edition). The cause of the bad output does not matter. A model can be confused, wrong, or fooled by prompt injection; what decides the damage is what its connections let it do.
What makes an AI agent’s access dangerous?
OWASP names three root causes, and they make a useful checklist for any integration:
- Too much functionality. The agent can reach tools it does not need for its job. OWASP’s example is a document extension meant only for reading that can also modify and delete files, or a tool left connected after a trial ended.
- Too many permissions. A tool connects with an identity that has more rights than the task requires, such as a “read-only” connector that logs in with an account allowed to update and delete records, or a shared high-privilege account used for every user.
- Too much autonomy. The agent can take high-impact actions, like deleting documents, without anyone confirming them.
Every design decision below reduces one of these three.
Should an AI agent use APIs or screen automation?
There are two broad ways to let an agent act in another system. It can call the system’s API, a defined interface where each operation, its inputs, and its permissions are spelled out. Or it can use screen automation, operating a browser or desktop application the way a person would, clicking and typing.
Where a well-documented API exists, it is usually the safer starting point. You can expose a small set of named operations (“look up order status,” “create draft refund”) instead of everything a logged-in user can click. OWASP specifically advises against open-ended tools, such as ones that run any shell command or fetch any URL, and says tools should define a strict schema for their inputs and validate them before use. A narrow API call fits that advice much better than a general-purpose browser session.
Screen automation still has a place, for example with older software that has no API. When you use it, apply the same thinking: a dedicated account with the fewest rights that work, limits on which sites or screens it can reach, and a person approving anything that cannot be undone. If your systems need a proper interface first, that is ordinary API and integration work, and it often pays off for people as well as agents.
Should an AI agent have its own account?
Yes. OWASP’s Top 10 for Agentic Applications (risk ASI03, Identity and Privilege Abuse) warns that when an agent has no governed identity of its own, there is an attribution gap: you cannot tell which actions it took, and you cannot apply least privilege to it. Its recommendations include treating agents as managed non-human identities, with per-agent credentials, audit trails, and lifecycle controls.
In practice that means:
- Create a separate service account or app registration for each agent, not a shared admin login or a copy of an employee’s password.
- When an agent acts on behalf of a particular person, OWASP recommends running the tool in that user’s context, so the downstream system applies that person’s own permissions. In chains of agents, it says to carry the original user’s context through each call instead of relying only on the permissions of the calling agent.
- Give every agent an owner who reviews its access and switches it off when it is no longer needed.
How do scoped OAuth tokens limit what an agent can do?
Many business systems use OAuth 2.0 to grant access. Its scope parameter, defined in RFC 6749, is how a client asks for a particular level of access, and the authorization server tells it what was actually granted. OWASP’s own example of a safer email assistant uses exactly this: a mail tool that only reads, connected with a read-only OAuth scope.
The IETF’s current OAuth security guidance, RFC 9700 (BCP 240, published January 2025), goes further. It says access token privileges should be restricted to the minimum the use case requires, tokens should be limited to a specific resource server (or a small set), and they should be restricted to particular resources and actions. It also recommends sender-constrained tokens, so a stolen token is harder to use elsewhere.
For agents, OWASP adds that permissions should be task-scoped and time-bound: short-lived, narrowly scoped credentials issued for a task and revoked when it ends, rather than long-lived keys stored in a configuration file.
Why separate reading from writing?
Most of an agent’s value comes from reading: finding the right record, summarizing a thread, comparing figures. Most of the harm comes from writing: sending, changing, paying, deleting. Splitting the two lets you be generous with one and strict with the other.
- Give read tools and write tools separate credentials, so a read-only tool cannot quietly gain write access.
- Have the agent prepare changes as drafts that a person approves. OWASP’s guidance on tool misuse (ASI02) suggests showing a dry run or a diff before approval.
- Use graduated rules. OWASP’s 2026 guidance describes letting low-consequence, reversible actions proceed automatically while sending irreversible ones to human review; its example is a refund issued as store credit versus an external payout.
- Enforce permissions in the downstream system, not in the prompt. OWASP calls this complete mediation: the system being called checks authorization for every request instead of trusting the agent’s decision.
Moving data between systems on a schedule, such as nightly exports into a reporting database, can also reduce how often an agent needs live access to production systems at all. That is a data engineering decision worth making early.
What should you log when an AI agent uses a tool?
OWASP is clear that logging does not prevent excessive agency, but it limits the damage by letting you spot and stop problems. Its Top 10 for Agentic Applications recommends immutable logs of every tool invocation and monitoring for unusual rates or suspicious chains of actions, such as a database read followed by an external transfer.
OWASP’s Logging Cheat Sheet adds detail that applies directly. It recommends recording events such as authorization failures, use of higher-risk functions (privilege changes, data imports and exports, access to sensitive data), and attempts to exceed limits on particular actions. It also lists data that should usually be removed, masked, or hashed rather than written to logs, including access tokens, passwords, encryption keys, database connection strings, and sensitive personal data. An agent’s logs should show who it acted for, what it called, and with which inputs, without becoming a second copy of your secrets.
Why do AI agents need rate limits and budgets?
An agent that loops, retries, or gets manipulated can call a tool far more often than any person would. OWASP lists rate limiting among the mitigations for excessive agency, and its 2026 guidance describes thresholds and circuit breakers that halt, slow, or escalate for human review, including limits based on a running total (for example, the combined value of refunds in a day).
OWASP’s API Security Top 10 (API4:2023, Unrestricted Resource Consumption) gives the general version: limit how often a client can call an API within a time window, cap the number of records returned, and set spending limits with every paid service or integration, or billing alerts where limits are not available. The agentic guidance calls the same idea tool budgeting: cost, rate, or token ceilings that throttle or revoke access when exceeded. Most cloud platforms offer budget alerts and quotas that can back this up.
What is a simple checklist for connecting an agent safely?
- List the exact actions the agent needs, and connect only tools for those actions.
- Prefer narrow API operations with strict input schemas over open-ended browsing or shell access.
- Give the agent its own identity, with an owner, and act in the user’s context where possible.
- Request the smallest OAuth scopes, and use short-lived, task-scoped credentials.
- Separate read and write access; route irreversible actions to a person.
- Enforce authorization in the downstream systems, not in the prompt.
- Log every tool call without logging secrets, and watch for unusual patterns.
- Set rate limits, spending limits, and circuit breakers.
If you are still choosing which workflow to automate first, start with our guide on how to set up AI agents in the workplace.
Frequently asked questions
What is the safest way to connect an AI agent to business software?
Connect it through narrow API operations with strict input checks, using its own account with the fewest permissions that work. Require a person to approve irreversible actions, enforce permissions in the system being called, and log every tool call.
Should an AI agent use an employee's login?
No. Give each agent its own identity, such as a service account or app registration, so its actions can be traced and its access limited. When it acts for a specific person, run the tool in that person's context so their own permissions apply.
What is excessive agency in AI?
Excessive agency is OWASP's name for damaging actions an AI system takes because of unexpected, ambiguous, or manipulated model output. Its root causes are too much functionality, too many permissions, and too much autonomy. It is LLM03 in OWASP's 2026 Top 10 for LLM applications.
How do OAuth scopes help secure AI agents?
OAuth scopes let an application request a specific, limited level of access, such as reading mail but not sending it. Current IETF guidance in RFC 9700 says access tokens should be restricted to the minimum privileges, resources, and actions the use case needs.
Is screen automation safe for AI agents?
It can be used when a system has no API, but it is harder to limit because the agent can reach anything its account can click. Use a dedicated low-privilege account, restrict which sites or screens it can reach, and require approval for anything that cannot be undone.
Sources
- OWASP Gen AI Security Project, LLM03:2026 Excessive Agency
- OWASP Gen AI Security Project, LLM06:2025 Excessive Agency
- OWASP Gen AI Security Project, ASI02: Tool Misuse and Exploitation (Top 10 for Agentic Applications 2026)
- OWASP Gen AI Security Project, ASI03: Identity and Privilege Abuse (Top 10 for Agentic Applications 2026)
- IETF RFC 9700 (BCP 240), Best Current Practice for OAuth 2.0 Security, January 2025
- IETF RFC 6749, The OAuth 2.0 Authorization Framework, Section 3.3 Access Token Scope
- OWASP API Security Top 10, API4:2023 Unrestricted Resource Consumption
- OWASP Cheat Sheet Series, Logging Cheat Sheet
This article is general information, not legal or security advice for your organization.
