What is AI attack success rate?

Attack success rate (ASR) is the percentage of test cases in which an attack elicits the targeted harmful behaviour from a model. It is the main metric of red teaming and jailbreak evaluations, showing how effective attacks are and how robust defences are.

Unlike over-refusal, which measures how often a model refuses harmless requests, ASR measures how often it does what it should not. The two are tracked together because one can fall as the other rises.

Topic
AI security
Also known as
ASR, jailbreak success rate
Origin
2023 universal suffix attack study; 2024 HarmBench definition

How AI attack success rate works

  1. A test set of harmful behaviours is chosen and the attack generates inputs for each.
  2. The target model answers each input with settings such as output length fixed.
  3. A classifier, string matching or human review judges each response.
  4. The share of successful cases gives the rate; for agents, the share of security cases where the attacker's goal is met.

In more detail

Targeted and untargeted success

Agent security evaluations separate two measures. Targeted attack success rate is the share of security cases where the attacker's goal is met, that is the agent executes the malicious actions. Utility under attack is the share of cases where the agent completes the user's task correctly without adversarial side effects; its complement is reported as untargeted attack success rate. Counting a case as successful if any attack in a collection succeeds models an adaptive attacker that picks the best attack for each case.

Commonly confused terms

TermHow it differs
AI red teamingAI red teaming is the process of designing and running attack scenarios to find a model's weaknesses. Attack success rate is the metric that turns the results of that process into a number.

Why AI attack success rate matters for on-premises AI

Measurement choices change ASR considerably. A 2024 study showed that the number of generated tokens can change ASR by up to 30%, so cross-paper comparisons can mislead. Another found existing evaluation methods significantly overstate jailbreak effectiveness compared to human judgement. No attack or defence has proved uniformly effective, so organisations measure ASR on their own use cases.

ON-PREMISES EXAMPLE

Before launch, a bank tests its customer assistant with prompt injection and jailbreak attempts. The security team re-measures ASR after every model or system prompt change and blocks a release whose rate exceeds the agreed threshold.

Common questions

Is a model safe if its attack success rate is zero?

No. The rate holds only for the attacks and test set tried. Since no defence has proved effective against every attack, measurement is repeated with new attacks.

How is attack success rate measured for AI agents?

Indirect prompt injections are placed in data returned by tools. The share of security cases where the agent carries out the attacker's harmful actions is reported as the targeted attack success rate.

Can rates from different studies be compared?

Often not directly. When the test set, the number of generated tokens or the evaluator that decides success differ, the same attack can score very differently.

Sources

In the glossary: Glossary, A to D

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.