Skip to main content

Your chatbot passed a red-team exercise before launch six months ago. Why is that not enough, and what does a regular jailbreak testing process look like?

AI security · Pro 1

Short answer

The system and the attacks both change: new model versions, prompts, tools and documents, and new jailbreak techniques. So I keep a versioned set of attack prompts, run it automatically on every change and on a schedule, track the success rate, and block releases that get worse. Manual red teaming continues, and each new finding joins the set.

Deeper answer

A red-team report describes one version of the system on one day. Since then the model, the system prompt and the tools have changed, and new attack styles have been published. Any of these can reopen a closed hole. So the one-off exercise must become a regression suite and a routine.

The suite holds attack prompts grouped by goal: leaking the system prompt, harmful content, data exfiltration, misuse of tools. It includes variants such as role play, encoding, other languages and multi-turn build-up. It runs in CI when a prompt or model changes, and nightly against production settings, with a grader that decides whether each attack worked. Results go on a trend chart with thresholds that block a release. The set must stay fresh, so someone owns it. That person adds cases from incidents, bug reports, public research and periodic manual testing, since automated sets miss creative attacks. Interviewers listen for automation, upkeep, gating and ownership.

What a strong answer covers

Answer it out loud in the mock interview about 2 min

Follow-ups to expect

Common mistakes

Learn it

Security tests in CI for AI apps

Practice AI security questions

More on this topic

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.