TESTMERA

LLM and agent red teaming

We test whether an application built on a large language model (LLM) discloses someone else's data or acts beyond a user's authority. Red teaming examines how the application responds to attempts to make it do either. It suits teams whose assistants read internal documents or whose agents can take action on a user's behalf.

What we test

A language model reads both its instructions and the material it processes. In direct prompt injection, the outside instruction comes from the user's own message. We check whether it leads the application to disregard its instructions or reveal information the user has no permission to read.

In indirect prompt injection, the instruction comes from material the application retrieves or processes. This includes material it ingests automatically, such as an incoming email, a web page, a document or a tool response. For each source in scope, we check whether the instruction changes the model's reply or the agent's next action. The user may never see the source material.

A tool lets an agent read, send or change something in another system. We compare the user's permissions with the access each tool gives the agent. We check whether the agent can read another user's records and whether private data or internal system instructions appear in its reply. We also examine data the agent passes to a tool. The user may never see that part of the exchange.

For tasks with several steps, we trace how one result affects the next decision. We check what happens to an approval if the recipient, content or proposed action changes. For harmful or irreversible actions, we agree where the test must stop. We record how far the action went. The conversation shows what the agent said, the tool log can show an attempt, and the receiving system can confirm whether anything changed.

Example. An assistant at example.ee may draft a reply to a customer. A member of staff can send it after reviewing the recipient and the text. A test can compare what the assistant drafted, what the person approved and what the mail tool accepted. Each decision leaves different evidence.

How the work runs

We start with a task that matters to your team. Together we describe who may start it, what information the agent needs and when a person must intervene. We agree the roles, connections, methods and test window. The system owner gives written authorisation before testing starts. We specify which actions may run to completion and which must stop before data leaves the test environment.

During the test, we compare the agent's behaviour with the agreed workflow. Where tool records are available, we match them to the conversation. We tell your contact immediately about any critical finding. After reporting, your team fixes the issues or we do so under a separate quote. We retest each fix against the same scenario and record the outcome.

What you receive

For each finding you receive a transcript your developers can use to repeat the test. It records the account's role, the application version, the starting data, the user's message, the expected result and the sequence of events. We give the run count and say how often each outcome occurred. Alongside the model's reply, we identify the action the tool recorded and the effect we could confirm.

For technical vulnerabilities we provide evidence, a recommended fix and the Common Vulnerability Scoring System (CVSS 3.1) vector and base score. For quality, process or coverage observations we explain the operational consequence and mark CVSS as inapplicable. We identify the records or business process affected and the access the test required. A fix might involve checking permissions in a tool or tying approval to a specific recipient and message. A named person signs the report.

At the debrief, your product owner can compare the observed behaviour with what the user's role allows. A developer can use the same transcript to define when a fix is ready to accept. We also agree which action an authorised user must still be able to complete after the change.

We structure the report so it can serve as technical evidence for NIS2, DORA and ISO 27001 audits and for customer security questionnaires.

What this does not cover

The results apply to the version, data sources and permissions in the report. Testing excludes the model provider's infrastructure and services whose owners have not authorised the work. If a test stopped before sending a message or saving a change, the finding records that limit. The evidence would not support a claim that the message went out or the record changed.

What we need from you

We need access to the agreed environment, test accounts with suitable permissions and data that lets us distinguish one user's records from another's. Provide a test window and a contact who can stop a test and check whether a connected system recorded a change. Tell us where tools or permissions in the test environment differ from those in everyday use.

Common questions

Can you test an assistant that only returns text?

Yes. We focus on the sources it can read and the information that reaches its answer. Changes made through tools fall outside that scope.

Do we need real customer records?

You can use purpose-made test records. Choose a record that one test user may read and another may not. This lets us establish where information in a reply came from.

What if the model gives a different answer on the next run?

We record the conditions and how many of the runs produced each outcome. The model's wording may vary between runs. We check tool actions and their effects separately, for example whether the user received a record they had no permission to read.

Can the report help when we add a tool?

The report identifies the permissions and connections present during testing. Use that record to see which earlier tests still apply and which changed workflows need a fresh check.