Security teams should evaluate LLM systems against the specific way they operate, not just against generic chat performance. For RAG and tool-use systems, testing should cover data retrieval quality, permission boundaries, prompt injection resistance, and whether the model can execute unintended actions. A useful benchmark programme combines capability and risk checks so teams can see both usefulness and exposure before deployment.
Why This Matters for Security Teams
LLM systems that can retrieve data or invoke tools behave more like software operators than passive chat interfaces. That changes the approval question from “Is the model useful?” to “Can it access the right data, stay inside its intended permissions, and resist being manipulated into unsafe actions?” Evaluation should therefore cover retrieval quality, tool boundaries, prompt injection exposure, and the auditability of outputs and actions. Current guidance suggests treating these systems as a combined AI and application-security problem, not as a pure model-quality exercise, as reflected in the NIST AI Risk Management Framework and the OWASP Top 10 for Agentic Applications 2026.
Teams often get misled by strong benchmark scores that only measure answer quality in isolation. A model can appear accurate in a demo and still leak sensitive retrieval content, follow injected instructions from untrusted sources, or trigger tools outside the intended workflow. The real approval risk is not whether the LLM can answer a question, but whether it can do so safely when the question is combined with external context, permissions, and automation. In practice, many security teams encounter these failures only after a retrieval path or tool call has already exposed data or executed an unintended action, rather than through intentional pre-production testing.
How It Works in Practice
A production evaluation should separate the LLM itself from the system around it. The model may be acceptable for summarisation, while the retrieval layer, tool router, or privilege model remains unsafe. Security teams should test the complete workflow under realistic inputs, including benign prompts, adversarial prompts, poisoned documents, and malformed tool requests. The goal is to understand what the system retrieves, what it refuses, what it executes, and what it logs.
A practical review usually includes:
- Retrieval testing to confirm the system returns relevant, authorised content and does not surface restricted material through over-broad search or indexing.
- Prompt injection testing using untrusted documents, web pages, or tickets to see whether hidden instructions can override system policy.
- Tool-use testing to confirm the model cannot chain actions beyond approved scope, such as sending data, changing records, or running administrative commands.
- Privilege testing to verify the LLM only inherits the minimum permissions needed for the task and cannot amplify user or service-account access.
- Logging and trace review to ensure each retrieval, reasoning step, and tool invocation can be reconstructed for incident response and audit.
The most defensible evaluation approach aligns model-risk checks with application controls. The NIST AI 600-1 Generative AI Profile is useful here because it pushes teams to examine data provenance, misuse resistance, and output validation rather than relying on performance alone. The MITRE ATLAS adversarial AI threat matrix also helps teams structure tests around attack paths such as prompt injection, data poisoning, and model manipulation. These controls tend to break down when the system is given broad tool authority and weak identity boundaries because the model can then act on bad instructions as if they were trusted workflow inputs.
Common Variations and Edge Cases
Tighter evaluation often increases testing overhead and slows release cycles, so organisations need to balance deployment speed against the blast radius of a failure. That tradeoff becomes sharper when the LLM is connected to live business systems, because every additional integration increases both usefulness and exposure.
Best practice is evolving for some edge cases. For example, there is no universal standard yet for how much red-teaming is enough for agentic systems that call external APIs, especially when the toolset changes frequently. Current guidance suggests treating material changes to retrieval sources, connectors, or tool permissions as a re-evaluation trigger, not as a minor configuration update. Security teams should also distinguish between read-only retrieval and action-enabled agents, because the approval threshold should be higher once the system can write data, send messages, or execute workflows.
Identity and access controls matter here as much as model quality. If the LLM uses a shared service account, stale OAuth grants, or over-broad role bindings, the evaluation is incomplete even when the prompts are well tested. The practical question is whether the system can be contained if a prompt injection succeeds. That is why agentic governance and least-privilege design should be reviewed together, using sources such as the OWASP Agentic AI Top 10 when assessing tool abuse and control failure modes.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and MITRE ATLAS address the attack and risk surface, while NIST AI RMF, NIST AI 600-1 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | Sets risk-governance expectations for evaluating AI systems before production. | |
| NIST AI 600-1 | Focuses generative AI evaluation on provenance, misuse, and output reliability. | |
| OWASP Agentic AI Top 10 | Directly addresses tool abuse, prompt injection, and agentic failure modes. | |
| MITRE ATLAS | Provides adversarial AI techniques for testing retrieval and tool-use attack paths. | |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege access is critical when LLMs can invoke external tools. |
Test the agent end to end for injection resistance, tool scope, and unsafe action paths.
Related resources from NHI Mgmt Group
- How should security teams evaluate long-context AI systems before production use?
- What should security teams evaluate before using compound AI systems in production?
- How should security teams evaluate AI agent trust before production use?
- How should security teams implement PII redaction in LLM pipelines that use retrieval and tools?