Imagine a support agent asked to prepare a reply about a delayed shipment. Its connector can also send messages, close tickets and export a customer directory. The user requested a draft, but the credential has much wider reach. This hypothetical mismatch is the starting point for a permissions review: list what the workflow needs, then examine what its execution identity can actually do.
Start with one useful workflow
Choose a task narrow enough to explain in a sentence: “Read the assigned ticket and save a suggested response for its support owner.” List the records it needs and the allowed change. Sending the reply, closing the ticket and exporting other records become separate capabilities with separate decisions.
OWASP published its Agent Control Standard resource on September 1, 2026, describing runtime hooks for enforcing agent policies. Examine execution controls alongside model behavior, starting with the business authorization behind each call. OWASP Agent Control Standard.
Keep your prompt injection tests as a complementary exercise. A permission defect can exist even when every prompt is polite and every document is trustworthy. A tool request outside the user’s role should fail regardless of its origin.
Trace the identities through the call
Follow one allowed draft operation from the signed-in support user through the agent service to the ticket API. Record the end user, agent workload, downstream credential and effective role. A shared service identity needs particular attention: its technical ability to read every ticket does not give every caller that same business permission.
AWS’s agent tool authorization guidance describes passing user identity downstream and evaluating tool permissions before execution. Use those as two distinct checks in your design: who is asking, and what is permitted for this target? AWS tool authorization guidance.
Agent identity products can manage workload identities and user-associated credentials, but the deployed flow still needs verification. For example, AgentCore Identity documents these as explicit identity and credential-management capabilities. Do not infer that your application uses them merely because a platform supports them. AgentCore Identity documentation.
Compare two test users with different ticket assignments. Confirm each execution record names the intended user. Remove an assignment and repeat; cached identity information must not preserve withdrawn permissions.
Write an action matrix the product owner can check
For the illustrative draft workflow, agree a matrix like this before testing. These are proposed business rules, not universal defaults. “Approval required” also assumes the user already holds permission for that operation.
| Requested operation | Example rule | Evidence of enforcement |
|---|---|---|
| Read the assigned test ticket | Allow its assigned support owner | Only the expected ticket fields return |
| Read an unassigned private ticket | Deny under this workflow’s policy | No content or private attachment is returned |
| Save a draft on the assigned ticket | Allow within the draft workflow | Draft exists; nothing was sent |
| Send the approved reply | Require send permission and exact approval | One message reaches the test sink |
| Export the customer directory | Deny; outside the workflow | No export job or download is created |
Reduce the underlying credential as well. AWS’s identity-policy guidance recommends limiting actions, resources and conditions to the task. A narrow wrapper around an unrestricted credential still deserves review for alternate execution paths. AWS least-privilege policy guidance.
Call the controlled execution interface with each matrix case, including denied operations the agent does not normally choose. If a hidden interface accepts the action, a friendly model response has not repaired that permission boundary.
Make approval specific enough to test
An approval screen should show the consequential details: the recipient, ticket and message that will be sent. OWASP transaction authorization guidance connects approval to the significant transaction data and server-side verification. Apply that principle to the message operation. OWASP transaction authorization.
In a sandbox with a test mail sink, approve one draft and then alter its recipient or content before execution. The changed operation should require fresh approval. Repeat with an expired approval, a different user’s approval and no approval. Verify the send history after each attempt; a denial response is insufficient if a message was queued anyway.
For approval replay, OWASP’s AI Agent Security guidance calls for verification outside the agent context and atomic consumption of the approval immediately before execution. Test two attempts using the same approval and confirm only the authorized operation can proceed. OWASP agent approval controls.
A proposed reply passes four separate checks.
The illustrative support workflow makes each authority visible before an external message is sent.
Name the caller
Carry the support user and workload identity into execution.
Check the action
Evaluate the operation and assigned ticket against policy.
Bind the approval
Match the recipient and final message to a valid approval.
Verify the effect
Inspect the test sink, queue and retry result.
The model proposes an operation; the execution layer establishes whether that operation is allowed.
Test what happens after the first decision
Introduce a controlled timeout after the test sink accepts a message but before the worker receives confirmation. Observe whether the worker repeats the send, stops for reconciliation or safely recognizes the existing result. Write down the intended recovery behavior; “retry on error” does not resolve an uncertain external outcome.
If another worker or subagent completes the operation, repeat the permission case at that handoff. The receiving component should use the original user and approved scope rather than inheriting broader access simply because an internal service made the request. Inspect background queues as well as interactive tool calls.
Finally, exercise the stop mechanism with disposable queued work. Identify what it cancels, which credentials remain usable and whether new calls can still enter through another route. Do not label the workflow stopped until the execution evidence matches that claim. Already completed external actions may need a separate recovery procedure.
Keep the review attached to releases
Retain the matrix, policy version, sanitized call, expected decision and observed state. Rerun cases when connector operations, service roles or approval handling change. Include an allowed baseline so tighter permissions do not break the draft workflow.
The action matrix is a useful starting point for a Sectiv assessment. We configure web, API and source testing around the business’s permission rules, with AI validation and expert support. Book a demo to discuss the agent’s execution paths and what a convincing result would look like.
Common questions
Does hiding a tool from the model remove its permission?
It can reduce the options the model sees. Also verify that the execution endpoint and underlying credentials deny the operation. Discovery settings and enforced authorization are separate controls.
Should every agent action need human approval?
Set that policy from the action’s consequences and your business rules. Reading an assigned test ticket may be routine; sending a customer message may require review. Approval supplements authorization and does not give a user a permission they otherwise lack.
Can a second model approve the first model’s tool call?
A second model may help flag unusual proposals. Treat its output as a signal for the execution policy, not as the authority to grant access. Enforce actor, target and approval requirements independently of either model’s recommendation.
YOUR NEXT STEP
Make your AI security checks specific to your business.
Bring the workflow, permission rules and test environment to scope a Sectiv assessment.
Book a demoReferences & further reading
- Agent Control Standard (ACS)
- AGENTSEC02-BP01 Implement tool authorization
- Provide identity and credential management for agent applications with Amazon Bedrock AgentCore Identity
- Identity-based policy examples for Amazon Bedrock AgentCore
- OWASP Transaction Authorization Cheat Sheet
- OWASP AI Agent Security Cheat Sheet
