AI engineering glossary · Evals guardrails AI security

What is ASR (attack success rate)?

Attack success rate (also called ASR): The percentage of adversarial attempts, such as jailbreak or injection prompts, that get a system to do what it should not. It is the main number for comparing defences and models in security testing, and lower is better.

Level: intermediateTopic: Evals guardrails AI security

Attack success rate: an example

Of 200 jailbreak prompts tried, 14 produce a prohibited answer, so the attack success rate is 7 percent.

Related terms

More Evals guardrails AI security terms

Where you learn it

Attack success rate is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.