Skip to main content
Next Defence - Next-Gen AI Cyber Security Firm
Australia & New Zealand[email protected](02) 9064 2614
RESEARCH PAPER

Securing AI Agents: Tool Permissions and Trust Boundaries

An assessment method for adversarial inputs, delegated authority and evidence across agentic AI tool calls.

Security topics
AI Security & GovernanceApplication Security & DevSecOps
Industries
Financial Services & InsuranceTechnology, SaaS & Digital Businesses

Executive summary

An AI assistant that retrieves documents is not the same security proposition as an agent that can send messages, change records or invoke infrastructure tools. The difference is authority. An attacker who can influence an agent’s inputs may seek to redirect a legitimate workflow into an unauthorised action, even when the underlying model has not been compromised. A useful assessment therefore maps the authority of each tool call, the trustworthiness of the instruction that requested it and the evidence left for a reviewer.

This paper presents a reproducible evaluation method for enterprise AI workflows. It is a research methodology, not a report of completed client testing or measured breach rates. Its purpose is to make model, application, identity and approval controls assessable together.

Research question and system boundaries

The central question is: can lower-trust content induce an AI-enabled workflow to cross an authority boundary? A boundary may separate a user from another person’s documents, a read-only application from a write action, or an untrusted webpage from an internal approval process. Model refusals are relevant, but they are not the only safeguard: application logic, tool permissions, resource policies and human confirmation must also work when the model proposes an inappropriate action.

Start with a diagram that names the requesting user, model, retrieval source, connectors, tools, target systems and audit locations. Mark each edge as trusted configuration, authenticated user instruction or lower-trust retrieved content. The exercise deliberately excludes uncontrolled testing of third-party services and any use of real confidential records without authorisation.

A testable threat model

Four patterns deserve separate test cases. First, instruction laundering embeds commands in a document, search result or tool response that the agent is meant to treat as data. Second, privilege confusion causes an action to execute under a broad integration identity rather than the permissions of the requesting user. Third, goal substitution changes the destination or meaning of a legitimate request—for example, replacing an intended summary with an unauthorised message. Fourth, sequence abuse turns individually permitted tool calls into a chain with an unacceptable final effect.

Tests should state the expected authorised outcome before the adversarial material is introduced. A successful defensive result is not simply that the agent declines a suspicious phrase. The system must also prevent the prohibited action, expose sufficient evidence for investigation and maintain a usable path for the original task.

Evaluation protocol

  1. Inventory tool authority. For every connector, record allowed operations, access tokens, credential scope, data classifications, outbound destinations and whether permissions are delegated from the user or held by a shared service identity.
  2. Capture a clean baseline. Run each authorised task with benign content; preserve the initiating request, tool call trace, approvals and resulting artefacts. Without a baseline, a failed task can be mistaken for a successful defence.
  3. Introduce controlled adversarial material. Place a harmless marker or safe surrogate instruction in an approved test document or tool response. Never use a real exfiltration destination or sensitive dataset in a research exercise.
  4. Probe boundaries independently. Test retrieved-document instructions, conflicting instructions within a long context, forged operational urgency, attempts to suppress logging and attempts to invoke a write-capable tool without the required approval.
  5. Record decisions at each layer. Capture the model’s requested action, any middleware policy decision, the effective identity at the destination service, any human confirmation and the final external effect.
  6. Repeat after control changes. Re-run both adversarial and benign cases so a new rule is not accepted merely because it blocks all work.

The test register should include a stable case ID, attack surface, assumed privileges, preconditions, input fixture, expected safe behaviour, observed tool requests, final system state and reviewer decision. Separate blocked by the model, blocked by application policy and blocked by destination permissions. These are different security properties and imply different remediation owners.

Evidence and acceptance criteria

An acceptable high-risk workflow enforces explicit tool allowlists, least-privilege identities, destination-specific authorisation and confirmation for consequential actions. Logs must connect the user request to the tool operation and returned effect without unnecessarily storing the full sensitive prompt. A failure is established by an unauthorised state change or information release, not by a dramatic model response alone.

The assessment produces a permission matrix, test-case register, observed-versus-expected decisions, remediation backlog and a retest plan. Useful measures include the proportion of tested tools with documented owners, the proportion of unauthorised actions blocked at the destination, and evidence coverage for consequential actions. These measures must be populated from actual tests; this paper does not supply invented scores.

Limitations and operational implications

Prompt-level tests do not prove that an entire agent ecosystem is safe. Behaviour may vary with model versions, retrieval rankings, tool descriptions, identity configuration and connector updates. A test suite should therefore be versioned and replayed after changes. Model-level defences should be treated as one layer of a broader control system, not a replacement for access control. Security teams should also agree who can suspend a connector if unexpected behaviour is observed during production use.

The practical research outcome is a way to decide where controls belong: in tool permissions, application policy, human approval, logging or model configuration. That decision is more durable than relying on a collection of clever prompts.

Comparative design choices

There is no single protective control that covers every form of agent misuse. A read-only connector reduces consequences but may still expose material that the user should not see. A human confirmation dialog can prevent an immediate write, but it offers less protection if the user is not shown the destination, exact action and relevant data. A policy-enforcing tool gateway can evaluate authorisation independently of model output, provided it has the right identity context and cannot be bypassed by another connector. Downstream service permissions remain a decisive last boundary when model or application controls fail.

These alternatives should be evaluated as a chain. Consider an agent asked to summarise an internal research document. The document contains a fake instruction to send a copy elsewhere. A well-constructed evaluation asks whether the agent proposed a send operation, whether an approval was requested, whether the external recipient was permitted, whether the destination service rejected an unauthorised action and whether the audit trail distinguishes the original user request from the document’s malicious instruction. Each layer deserves its own finding rather than a single pass/fail label.

Research reporting quality

A credible results table includes benign-task completion as well as adversarial resistance. If an application blocks all external actions, it may score well against a narrow attack script while failing its intended business function. Conversely, a human confirmation step may be useful but cannot be called effective if its content hides the actual consequence. Report both security and task-completion observations, the tested software versions, the role of any simulated inputs and changes to the test fixture. Where a claim is derived from documentation rather than direct observation, label it accordingly.

Public reference points

FREQUENTLY ASKED QUESTIONS

Common questions.
Clear answers.

Find answers to the questions organisations ask before taking the next step.

What question does the ai & agent security paper address?

An assessment method for adversarial inputs, delegated authority and evidence across agentic AI tool calls.

Does this paper disclose customer engagements or private test data?

No. The paper describes a technical assessment method using generalised examples; it does not publish customer identities, incident records or unverified experimental results.

How should the proposed method be used?

Agree a written scope, control owners and safe test conditions first. Apply the steps to authorised systems and record which assumptions are or are not supported by evidence.

What makes a research conclusion defensible?

A clear research question, a traceable evidence source, recorded test conditions, explicit uncertainty and a reviewer who can reproduce or challenge the decision.

Can this approach be applied to a production environment?

Only when the activity has been authorised and its safety, operational and privacy constraints have been assessed. Many checks can begin with read-only or isolated testing.

Where can we discuss a related technical assessment?

The methods connect to our ai & agent security security work. See the relevant service at /services/ai-security-and-governance/, and agree a suitable engagement scope before any testing.

LET'S TALK

Let’s talk about your security.

Tell us what you are protecting, where you need greater visibility or what you want to achieve. We will help identify the right next step.

Talk to a Security Specialist

Describe your security requirements. Please do not submit passwords, credentials or confidential incident evidence. This form is not an emergency incident-response channel.

Form powered by HubSpot. Review our Privacy Policy. If the form doesn’t load, email [email protected].