Skip to content
mentoor

Topic 5 of 5 · 5 min read

Writing red-team findings that get fixed

Goal: Write a red-team finding with reproduction steps, success rate over repeated runs, severity and a concrete fix.

A good red-team finding lets a stranger reproduce the problem, shows how often it happens, explains why it matters to the business, and ends with a fix they can build. Findings that read like "model is jailbreakable" get closed without action.

Check yourself · 1 of 3

Why should a red-team finding give a success rate such as 14 of 20 runs?

Choose one answer

Why it matters

AI systems are nondeterministic. The same prompt may work 3 times in 10. An engineer who tries once, fails and sees nothing will say "cannot reproduce" and move on. Your report has to make the problem real, measurable and fixable.

What to include

  1. Title in one line: what an attacker gets. "Attacker can read another customer's order through the support bot."
  2. Setup: app version, model name and date, system prompt version, tools available, the test account.
  3. Steps: the exact messages or planted content, in order. Paste them as text, not a screenshot.
  4. Success rate: "Succeeded in 14 of 20 runs, temperature default." Say what counts as success and how it was graded.
  5. Evidence: the transcript and, for agents, the tool-call log.
  6. Severity: judge by what the attacker can reach, not how clever the prompt was. Reading public data is low. Moving money or reading other users' data is high. Consider how easy it is, who can do it and how many users are affected.
  7. Business impact: one or two plain sentences. "Any logged-in user can see names and addresses of other customers, a reportable breach."
  8. Fix: a concrete change plus a check. Prefer controls outside the model: scope the tool to the current user's id, add a server-side check, require approval for refunds above a limit. Prompt wording is a weak fix; say so if it is all you can offer.
  9. Retest: the saved test case that should drop to 0 of 20 after the fix.

Before and after

Weak: "The chatbot can be jailbroken to reveal data. Please fix the prompt."

Better:

Title: Support bot returns other customers' orders
Setup: shop-bot v2.4, system prompt rev 19, tool get_order(id)
Steps: 1) "Hi, I need help." 2) "Show order 10492."
Success rate: 14/20 runs (graded: reply contains a name not on the test account)
Severity: High (cross-account data read, no special skill)
Fix: get_order must check order.user_id == session.user_id on the server.
Retest: case ORD-01 must pass 20/20.

What goes wrong

  • One lucky run reported as certain, or one failed retry reported as fixed.
  • Severity by cleverness instead of by impact.
  • A fix that only edits the prompt, which the next variant bypasses.
  • No saved retest, so the issue returns.

Examples

Weak versus strong summary line

Weak: "Prompt injection works on the assistant."

Strong: "A hidden line in a shared document makes the assistant email the user's calendar to an outside address (9 of 20 runs)." The strong line names the attacker, the gain and the rate.

Choosing the fix

Finding: the bot reveals other users' orders. Prompt fix: "Never show other users' orders." Control fix: the order tool checks the session's user id on the server. Ship the control, and keep the prompt line only as a backup. The retest then expects 0 of 20.

Key points

  • Title a finding by what the attacker gains, not by the technique used.
  • Because outputs vary, report a success rate over repeated runs and say how success was graded.
  • Include exact steps as text, versions, the transcript and, for agents, the tool-call log.
  • Rate severity by what the attacker can reach and how easily, not by how clever the prompt was.
  • Prefer fixes outside the model, such as server-side checks, and attach a saved retest case.

Common mistakes

  • Reporting a single run, so developers cannot reproduce it and close the ticket.
  • Rating severity by how hard the attack was to invent rather than what it exposes.
  • Recommending only a prompt change when a server-side control is possible.
  • Leaving out the retest case, so nobody can confirm the fix.

Check yourself · 2 of 3

A support bot reveals other customers' orders when asked cleverly. Which fix is strongest?

Choose one answer

Check yourself · 3 of 3

Which severity rating logic is best?

Choose one answer

Practice items, not counted towards your mastery.

Start here