How to Evaluate AI Agent Server Permissions
AI agent permissions determine what an assistant can actually read or change when it calls a server tool. A friendly interface, a careful system prompt or a label such as read-only is not an authorization boundary. The useful question is which identity can invoke which operation against which resource, and what happens when the request is outside that scope.
Start with an inventory of tools, credentials and targets. Then run authorized tests against a disposable environment, including requests that should fail. Record the results and an owner who can revoke access. This method applies whether a tool uses MCP, another API or a workflow engine; the protocol does not replace the server's own permission checks.

Inventory each tool and its actual effects
List every callable operation and follow it to the underlying service. For each one, capture its inputs, output, target resources, effective identity and side effects. An operation named inspect might retrieve configuration containing credentials. An apparently narrow deployment tool might also run build scripts, apply database migrations or contact an external repository. Ask the implementer what happens behind the tool interface rather than inferring safety from its title.
Include indirect effects and returned information. A diagnostic tool may read logs containing personal information; a backup action may copy data to a bucket; a URL-fetching tool may reach services that were not intended to be exposed to the agent. Trace how parameters are validated, where authorization is enforced, and which identities downstream systems see. A low-privilege frontend does not help if its backend forwards every request using an unrestricted administrator credential.
| Boundary | Question to answer | Evidence to collect |
|---|---|---|
| Tool | What data and side effects can this call produce? | Schema, implementation or vendor documentation, test result |
| Agent identity | Who is calling and on whose behalf? | Credential owner, issuance and expiration records |
| Resource scope | Which organizations, sites and servers are reachable? | Policy and permitted and denied test cases |
| Execution identity | What can the downstream worker or service do? | Effective privileges, network and storage permissions |
| Governance | What needs review and who can revoke access? | Approval evidence, audit trail and revocation procedure |
Keep the inventory alongside the configuration actually deployed. Changes to a plugin, a tool schema or the credential behind a service can change the authority of an existing agent without changing its conversational instructions. Revisit the inventory after updates and whenever a new site or client is added.
Map identity to actions and resources
Separate authentication from authorization. Authentication establishes an identity; authorization decides whether that identity may perform a specific action on a specific resource. MITRE's CWE-862 definition, viewed 29 November 2026, describes the case where an authorization check is missing for an attempted action or resource access. An authenticated agent can still be overprivileged if the server does not check its permission at the relevant boundary.
Construct a matrix with identities as rows and operations and resources as columns. Include separate organizations, staging and production, sites owned by different clients, backup destinations and secrets. Start with no access and add only the tasks the agent needs. Bind an allowed action to the specific target, not merely a broad role label. A legitimate permission to inspect one site should not imply permission to inspect every other site with the same software.
Map delegated authority as well. If a human can request an operation through an agent, establish whether the agent can ever exceed that human's permissions. Where a service has its own standing authority, document both the initiating human and the service identity. Check scheduled jobs and callbacks too: a request may be authorized initially but execute later after access has changed.
The chart shows the position of missing authorization in the MITRE CWE Top 25 for each listed edition. These rankings describe software weaknesses across the published dataset, not AI-agent incidents or the security of any particular tool. They can help identify a topic for review, but they cannot tell an operator whether a specific installation is vulnerable or whether a particular defect has been exploited.
MITRE CWE Top 25: missing authorization
CWE-862; published annual list position
- 2021#18
- 2022#16
- 2023#11
- 2024#9
- 2025#4
View chart data
| Item | rank | Note |
|---|---|---|
| 2021 | #18 | |
| 2022 | #16 | |
| 2023 | #11 | |
| 2024 | #9 | |
| 2025 | #4 |
MITRE's editions use disclosed vulnerability data and scoring methods described in the linked annual lists. The rankings depend on the data available, its classification, and the methodology used for each edition; changes in rank do not by themselves measure changes in the underlying incidence of a weakness. A list also cannot include defects that were never disclosed or never mapped to the relevant weakness. Use it as a prompt to inspect the actual implementation, follow the relevant execution paths and test the controls in your own environment. Review a product's security advisories and configuration separately instead of inferring its safety from a general industry ranking.
Test what must be denied
Use a disposable environment and explicit permission from the system owner. Establish a baseline with an allowed read against a test site, then repeat the call against a separate test site the identity must not access. Change the resource identifier in the request directly rather than relying on what the interface displays. Repeat for list, detail, export, update and delete paths where they exist; a filtered list does not prove that a direct lookup is protected.
Test wrong roles, expired credentials, missing credentials, revoked users and access through alternate entry points such as a job runner or API. For a write, verify both the denial response and the actual resource state. Check for partial side effects, such as a file created before a later permission check fails. An error message by itself is not proof that nothing changed.
Cross-site testing needs representative identities, not just an administrator account. Check horizontal boundaries between clients at the same privilege level and vertical boundaries between a viewer and an operator. Include identifiers that are valid but belong to another tenant, as well as invalid identifiers. Avoid putting real client data in test output and preserve enough evidence to repeat the test after an upgrade.
Also inspect what the agent receives when access is denied. Error responses and logs should avoid revealing secrets or unnecessary information about another tenant. A denial should be observable to authorized operators without becoming a side channel for the requesting agent. If behavior is unclear, pause access until the system owner understands the effective boundary.
Limit credentials and assign revocation
Prefer a dedicated identity for each integration and grant it only the operations and resources needed for its assigned workflow. Avoid sharing a personal administrator token with a model client. Record the credential issuer, owner, storage location, allowed scopes, expiration and rotation procedure. If an agent or integration is removed, someone must be responsible for revoking the credential and checking that revocation reaches all relevant systems.
Keep secrets out of prompts, tool output and routine logs where possible. Limit who can view credentials and ensure that a secret copied into an external service is treated as disclosed to that service. Consider network restrictions and isolated execution identities as additional layers, not replacements for application authorization. A tightly scoped network path can still carry an overprivileged request.
Rehearse revocation before an urgent incident. Disable the integration, revoke its token, invalidate outstanding sessions where supported, and test that a formerly allowed call now fails. Determine what happens to queued actions, cached credentials and ongoing work. The right outcome may be cancellation or a manual review, but it should be deliberate and documented.
Capture evidence for approval and review
For changes with substantial impact, provide a plan that identifies the actor, target, exact operation, inputs, expected effects and recovery path. An independent reviewer should be able to reject the proposal before execution. Approval should apply to the specific plan, not create a standing permission to perform arbitrary later changes. Recheck authorization when the plan runs, particularly if the request waited in a queue.
Join the request, approval, execution outcome and post-change verification in an audit record. Include denials and failures, but redact tokens and other unnecessary sensitive values. Periodically review whether the agent still needs each permission, whether its owner is current and whether denial tests remain valid. A permission inventory that is never compared with the live configuration is only a snapshot of intent.
Sora Panel is one pre-release example: its public site describes declared AI tools without arbitrary shell access, scoped roles, approval for risky actions by a different person and a tamper-evident audit log. Those claims are not a substitute for independently testing the deployed configuration, and the product is not yet released.
For the mechanics of connecting clients and tools, read our MCP administration guide; for review design, see human approval for server changes. Sora Panel is not released yet. Read how it works on the homepage.
Frequently asked questions
Does authenticating an agent establish its permissions?
No. Authentication identifies the caller; the service must also authorize each action against the requested resource.
Is a read-only tool always low risk?
No. It may expose credentials, private logs or another client's data. Assess the fields and resources it can read as well as whether it can write.
How should I test tenant isolation?
With explicit authorization, use disposable tenants and test both allowed and denied calls, including direct resource identifiers and alternative API paths. Verify actual state as well as responses.
What should happen when an agent is retired?
Revoke its dedicated credentials, check sessions and queued work, and verify that previously allowed calls now fail. Record who performed and verified the revocation.
Sources
- MITRE 2021 CWE Top 25 (viewed 2026-11-29)
- MITRE 2022 CWE Top 25 (viewed 2026-11-29)
- MITRE 2023 CWE Top 25 (viewed 2026-11-29)
- MITRE 2024 CWE Top 25 (viewed 2026-11-29)
- MITRE 2025 CWE Top 25 (viewed 2026-11-29)
- MITRE CWE-862: missing authorization (viewed 2026-11-29)
- Sora Panel homepage (viewed 2026-11-29)
Sora Panel is not released yet. Read how it works on the homepage.