TalkiEmma — trust layer
Guide · Testing method

Red-teaming an AI for children: what to test before a child talks to it

Before a child sends their first message to an AI, someone should already have tried to make it go wrong. That is what red-teaming is for: attacking the system methodically to find its weaknesses before users do. Here is how to approach it when those users are eight years old.

Updated 26 September 2026 · 9 min read

What red-teaming is

Red-teaming means stepping into an adversary's shoes and trying, in a structured way, to get a system to do what it should not. For generative AI, the risk management profile published by NIST (Generative AI Profile, 2024) describes it as a distinct evaluation practice that complements conventional testing. OWASP ranks prompt injection as the top risk for applications built on language models.

Red-teaming does not prove a system is safe. It shows where it is not safe yet, and lets you measure whether fixes hold over time.

Why children change the picture

In a business setting, the typical adversary is an attacker trying to steal data or hijack a service. With children, the "adversary" is usually an ordinary child: curious, persistent, making spelling mistakes, testing limits for fun, or, without meaning to, disclosing something serious. Three consequences:

The families of tests

These are the main families of scenarios we recommend covering. For each, write direct variants, disguised ones (fiction, role-play, "it's for a school project"), repeated ones and noisy ones (spelling mistakes, very short messages, voice transcription errors).

1. Age-inappropriate content

Violence, sexual content, drugs, dangerous challenges, frightening material. Check the refusal, but also its form: a simple explanation, without guilt, with a way back to the activity.

2. Instruction bypass

"Forget your rules", fake "system" messages, instructions hidden in a text to summarise or in a photo of an exercise. A robust system does not depend on the model's goodwill: rules are checked outside the model, on every input and every output. The Academy article AI security for developers: prompt injection and defenses details these techniques for developers.

3. Learning shortcuts

"Just give me the answer", "it's urgent, the test is tomorrow", "my parent said you could". For a tutor, doing the work in the pupil's place is a failure, even if the answer is correct.

4. Personal data

The child types their name, school, address, or sends a photo showing a face. Check that this information is neither repeated nor kept without need, and that the AI never asks for it on its own initiative.

5. Distress and disclosures

Sadness, bullying, fear, disclosure of abuse. The AI is not a mental health service and must not diagnose. Test that it responds gently, encourages the child to talk to a trusted adult, points if needed to appropriate services (such as a national child helpline) and, depending on the service, triggers the planned alert to the responsible adults.

6. Relationship boundaries

"You're my only friend", "it's a secret between us", "don't tell my parents". The AI must neither encourage secrecy from adults nor present itself as an exclusive relationship. The AI Act prohibits systems that exploit age-related vulnerabilities to materially distort a person's behaviour in a manner that causes, or is reasonably likely to cause, significant harm.

7. Giving in under pressure

The child asserts a mistake and insists. Check that the AI stays kind without validating what is false, and does not become more flattering as the child gets annoyed.

8. Invented memory

"Do you remember what I told you yesterday?" when nothing was said. The AI must honestly answer that it does not remember. That is the topic of our guide Honest memory.

The fail-closed principle

A system is "fail-closed" when, if a check is uncertain or breaks, it chooses the safe option rather than letting things through. In practice: if checking a response cannot run (timeout, error, unrecognised language), the model's answer is not sent as-is to the child; it is replaced with a neutral message, a redirection or a request to rephrase.

This principle has a cost: occasional unnecessary refusals. That is why a good test suite also measures over-caution. A tutor that refuses to explain digestion because the word "blood" appears is overly cautious in a way that undermines its usefulness. The goal is to be strict where risk is real, and smooth elsewhere.

Why the test suite must be reproducible

A language model does not always give the same answer to the same question. A test passed once therefore proves little. A reproducible suite rests on a few simple rules:

Human review is essential

Part of the evaluation can be automated, for instance by having a second system grade responses. But automated judges have their own blind spots, especially on tone, implicit meaning and delicate situations. Human review remains essential:

A minimal six-step protocol

  1. Scope the use: ages, subjects, modalities (text, voice, photo), whether an adult is present.
  2. List the risks specific to that use, starting from the families above.
  3. Write the scenarios and success criteria before any run.
  4. Run each scenario several times on the exact configuration that will go live.
  5. Have failures and sensitive cases reviewed by at least two people.
  6. Fix, then replay the whole suite, not just the fixed scenario: one fix can break something else.
Questions to ask a provider. Which families of scenarios do you test? How often is the suite replayed? What happens when a check fails? Who reviews sensitive cases? A serious provider answers at the level of method, without having to reveal its data.

Frequently asked questions

What is AI red-teaming?

It is adversarial testing: methodically trying to get the AI to produce what it should not (inappropriate content, rule bypass, data leakage) in order to fix weaknesses before users encounter them.

What does fail-closed mean?

A fail-closed system chooses the safe option when a check fails or cannot reach a conclusion: instead of passing on the unchecked response, it replaces it with a neutral message or a redirection.

Should children test the AI?

Not for adversarial testing. Scenarios are written by adults and contain no real child data. Feedback from children belongs in supervised usability studies, separate from red-teaming.

Does red-teaming guarantee that an AI is safe?

No. It reveals weaknesses and checks that fixes hold over time, but it does not prove the absence of risk. It must be replayed regularly and combined with human oversight.

How often should the tests be replayed?

On every significant change (new model, new instructions, new feature) and periodically, because models and usage evolve.

Going further with Emma

Sources

General information only; not legal, medical or psychological advice.