Insights

Red-teaming and evaluation of LLM applications

How to build evaluation sets, adversarial tests and release gates for LLM applications, aligned to the Guidance for AI Adoption, ASD advice, OWASP, MITRE ATLAS and NIST.

You cannot govern an LLM application on opinion. You need repeatable evidence that it works and that it resists misuse. Evaluation measures quality and safety on representative tasks. Red-teaming deliberately attacks the system to find weaknesses before someone else does. Together they form the testing evidence that Australia’s Guidance for AI Adoption, the NIST AI Risk Management Framework and ISO/IEC 42001 expect, and they apply whether you build the application or buy it.

What Australian guidance asks for

Essential practice 5 of the National AI Centre’s Guidance for AI Adoption is “Test and monitor”. The implementation practices ask you to:

  • set acceptance criteria and test methods that reflect the intended use, context and identified risks, then test before deployment;
  • document tests and outcomes so they can support audit and oversight;
  • request test methods and results from upstream providers and check them against your own acceptance criteria;
  • obtain documented deployment authorisation from the accountable person, based on the test results;
  • monitor performance against risk-related metrics after launch, with documented response processes; and
  • add further testing in proportion to risk, such as testing for jailbreaking or prompt manipulation, data privacy testing, red-teaming and independent review.

ASD’s AI considerations within the Essentials adds the security view: vulnerability management should cover AI-specific risks such as prompt injection, adversarial inputs, model extraction and compromised model weights or training data, and systems should be designed so that a manipulated model cannot exceed the access it has been granted, because prompt injection cannot be completely prevented. That last point shapes how you test: you are proving the limits hold, not only that the model behaves.

Build a golden set

A golden set is a curated collection of realistic inputs with expected behaviours. Draw from real, privacy-reviewed usage, subject matter experts and known edge cases. Include cases where the right answer is to refuse, escalate or ask for clarification. Version it, assign an owner and refresh it as use evolves. A smaller set of well-chosen cases that reflect your real tasks and risks is more useful than a large generic benchmark.

Measure what matters

  • Task quality: correctness, completeness and format.
  • Groundedness: are claims supported by retrieved sources, and are citations accurate?
  • Retrieval quality: does the right content come back, and only content the user is allowed to see?
  • Safety: refusal behaviour, harmful content and privacy leakage.
  • Fairness: consistent quality across relevant user groups and languages.
  • Agent behaviour: correct tool choice, correct parameters and respect for approval steps.
  • Operational: latency and cost per task.

Automated judges can scale scoring, but calibrate them against human-labelled samples and re-check agreement periodically. A judge model should never be your only control.

Plan red-team coverage

Use recognised catalogues so coverage is deliberate rather than ad hoc:

  • OWASP Top 10 for LLM Applications (2025): prompt injection (LLM01), sensitive information disclosure (LLM02), supply chain (LLM03), data and model poisoning (LLM04), improper output handling (LLM05), excessive agency (LLM06), system prompt leakage (LLM07), vector and embedding weaknesses (LLM08), misinformation (LLM09) and unbounded consumption (LLM10).
  • OWASP GenAI Red Teaming Guide: splits an engagement into model evaluation, implementation testing (guardrails, retrieval and controls), system and infrastructure assessment (integrations and supply chain) and runtime behaviour (human interaction, agent behaviour and business impact).
  • MITRE ATLAS: adversary tactics and techniques against AI systems, useful for mapping attacks to your threat model.
  • NIST AI 600-1, the Generative AI Profile: generative AI risks and suggested actions to check your list against.

In practice, test for direct and indirect prompt injection (including instructions hidden in emails, documents and web pages the system reads), jailbreaks, system prompt extraction, data exfiltration through retrieval or rendered links, cross-user data leakage, tool abuse and unsafe actions by agents, unsafe handling of model output by downstream code, and excessive consumption. Combine automated attack suites with creative human testers, including people who understand your domain. Our threat modelling guide helps decide where to focus.

Test the controls, not just the model

Because no model can be made immune to manipulation, the most important tests check what happens when it is manipulated. Confirm that agents only hold the permissions they need, that sensitive actions still require human approval, that retrieval enforces the user’s own access rights, and that output is treated as untrusted before it reaches browsers, databases or other systems. ASD’s Careful adoption of agentic AI services recommends phased deployment with progressively increasing access and autonomy, so re-test each time an agent is given more. Our guardrails guide covers the controls these tests should prove.

Release gates and CI

Run fast smoke tests on every change and the full suite on release candidates. Define pass thresholds by risk tier and block promotion when they are not met. Record results with the exact model, prompt, retrieval index and guardrail versions so the evidence is reproducible. The AI evaluation and red-team pipeline architecture shows how this fits into delivery. For a worked example with retrieval, tools and approvals, see Databricks RAG and LangGraph agents on Bedrock AgentCore with MCP tools.

Keep testing after launch

Models, providers, content and users change. Schedule canary evaluations, sample production traffic for quality scoring (within your privacy settings) and add every incident and near miss to the regression set. Re-run red-teaming after significant changes, such as a new model version, new data sources or new tools, and at a regular cadence. When something does go wrong, the AI incident response playbook sets out the next steps.

Report honestly

A good test report states what was tested, what was not, the results by category, residual risks and the decision taken, with the accountable person’s sign-off. This is the document an approval board, auditor or buyer will read, and it is the evidence the Guidance for AI Adoption asks you to keep.

Sources

Last reviewed 17 November 2026.

How EITSAA helps

We help you design and evidence AI governance that matches your risk, from the register and policy through to evaluation, red-teaming and audit-ready evidence. Explore AI Governance & Assurance, talk to our team or call 0402 401 584.

Requirements change, so check the current position with the relevant authority as you plan.

More insights

Let’s talk about your next project

Talk to an Adelaide-based team. We reply within one business day.