AI Security

We Gave the AI Agents Keys. Now What?

BPBhavin Patel·November 10, 2026·3 min read
Bound the agent authority: Agent workflow, Scoped permission, Consequential action.

Give the agent only the authority its task needs

An AI agent with credentials can read information or change a system through the same access paths used by other workloads. Its task needs a permission model, an accountable owner, and a way to stop it.

Inventory connected tools, effective rights, credentials, retrieval sources, and approval requirements. Test untrusted input and an attempted action outside the task. Log consequential activity without unnecessarily exposing sensitive content.

Put it into practice

List each tool, credential, writable resource, and external destination. Test an agent asked to exceed scope through malicious retrieved text. Require independent approval for consequential actions and log the actual tool result.

An agent permission matrix with denied-action tests, approval evidence, audit records, and a kill switch rehearsal: scope, rehearse, prove, and decide.
Operational playbook. An agent permission matrix with denied-action tests, approval evidence, audit records, and a kill switch rehearsal. Open full-size graphic

Implementation steps

  1. Bound the use caseSpecify the task, authorized data, model and retrieval dependencies, tools, external destinations, and consequences of an incorrect answer. Identify the human or service accountable for each consequential action.
  2. Build a useful evaluationInclude representative successful tasks, missing evidence, ambiguous requests, adversarial content, and prohibited actions. Compare with the existing workflow and record failure categories as well as aggregate accuracy.
  3. Enforce outside the modelLimit credentials and tool permissions at the service boundary. Require independent authorization for consequential operations, validate output before downstream use, and log the actual tool outcome instead of trusting an assistant’s narration.
  4. Operate the release gateDefine what would stop the pilot, how to disable access, and how to return to the previous workflow. Re-evaluate after material model, prompt, retrieval, tool, or data changes and keep reviewable evidence.

Track task acceptance rate and boundary-test pass rate

Measures that support an operational decision
Measure Calculation or definition How to use it
Task acceptance rate Tasks meeting defined acceptance criteria / representative tasks tested Show error categories and sample composition.
Boundary-test pass rate Prohibited actions blocked / prohibited action tests A small passing suite does not prove universal resistance.
Human review load Cases requiring substantive review / cases processed Include reviewer time and downstream correction effort.

AI evaluation: useful output and authorization are separate

Worked example. Figures are illustrative.

AI evaluation: useful output and authorization are separate. Task tests: 40; Accepted tasks: 32; Boundary tests: 10. Illustrative data.
AI evaluation: useful output and authorization are separate. 32 / 40 = 80% of task tests passed. The 10 boundary tests form a separate suite; report their outcomes independently. Illustrative calculation. Open full-size graphic
Worked example — inputs
Observation Test cases
Task tests 40
Accepted tasks 32
Boundary tests 10

The third bar is a test count, not a passed result. Quality acceptance cannot substitute for verified authorization enforcement.

The record to keep

The deliverable: An agent permission matrix with denied-action tests, approval evidence, audit records, and a kill switch rehearsal.

Start with a restricted task and verify its denial boundary. Broaden authority only after the owner can explain the new action, its review route, and the recovery if it is wrong.

References

← All posts