Agentic AI / 4 min

Test AI agents before giving them access

Plan a controlled AI pilot, test its access boundaries and record the evidence before expanding its role.

An AI agent can propose or perform actions through connected tools. A useful answer does not show that its access controls work. This guide offers a starting review for a pilot; testing needs to match the system and its risks.

Define the pilot

Write down the task, owner, allowed information and expected result. For example: “Summarise these approved sample tickets into a local draft.” Identify actions that must be refused, including sending the draft or reading unrelated records.

Use a separated test environment with sample data and tightly limited network access. Match the level of isolation to the risk. Do not rely on the prompt alone to keep a test contained. See ASD’s testing guidance, published 12 November 2026, for AI cyber capability assessments.

Give the agent a clear identity

Avoid sharing a person’s administrator login. Give the agent a distinct identity with permissions limited to the task, an accountable owner and a way to revoke access. Where supported, use short-lived credentials or delegated access. NIST discusses these foundations in its agent identity article, published 27 August 2026.

Check tools, documents and memory

The harness is the software connecting the model to data and tools. Enforce permissions there and in the connected services. Ask for human review before approved workflows reach significant consequences. ASD’s harness guidance, published 11 September 2026, explains why controls around the model matter.

Test access to retrieved documents and saved memory as well as tool calls. Treat their contents as untrusted. Review tool changes before allowing them into the pilot. OWASP’s Securing Agentic Applications V2, listed 10 November 2026, covers memory, tool integration and assurance.

Try a controlled failure case

Fictional example: a sample support ticket tells an assistant to send the draft to an unapproved address. The test should show that the application refuses the send request, records the event and leaves the draft available for review. Also test that an allowed task still works. This is an illustrative test case, not evidence from a deployed HD product or a guarantee against every injection attempt.

Capture evidence and practise stopping

Record the agent identity, tool request, permission decision, human review where required, and result. Protect logs and avoid recording secrets or unnecessary personal information. Verify that stopping the agent also prevents further tool use. Document what failed, who will fix it and which tests must run again after a change.

Pilot review checklist

Continue the review

Educational guidance. Adapt this to your policies and incident process. Checklist selections are temporary and are not sent anywhere.