Glossary · AI security & threats
Sponge attack
also: sponge examples, overload through costly inputs
In short
Inputs that cost an AI model particularly much computing time and energy, in order to slow it down or knock it out. Values of up to thirty times those of normal inputs have been described. Detectable only by measuring time and energy per request, which has to be planned in from the start.
Reference: ISO/IEC 27090:2026, B.2
What it means
A sponge attack is an AI-specific form of overload. The attacker sends inputs that cost the model particularly much compute time and energy, in order to slow it down, drive up costs or knock it out. ISO/IEC 27090:2026 classifies it in Annex B.2 among denial-of-service attacks and refers to research in which such inputs took up to thirty times as long as typical ones and consumed thirty times the energy.
The tricky part is that the requests can look inconspicuous. Their number need not be high, and protection against overload that only watches requests per second does not catch them. The standard notes that such attacks can only be detected by measuring time or energy per request in detail, and that this measurement has to be designed in from the start. It is hard to add later.
In practice and in the audit
Set a budget for every request: maximum compute time, maximum number of generated tokens, maximum cost. Requests that exceed the budget are aborted. Log compute time and consumption per request and user so that outliers become visible. For language models billed by usage, a cost limit per user and day protects against attack and against operating errors at the same time.
Where an outage would be costly, for example with AI in production control or customer service, the standard recommends sizing capacity for worst-case consumption. Also check whether your application limits very long inputs, nested tasks or very long outputs. In an audit against ISO/IEC 27001 this belongs to capacity management under Annex A 8.6.
References in standards and law
I cite standards by clause number and in my own words, never verbatim. Legal texts link to EUR-Lex.
- ISO/IEC 27090:2026, B.2Overload attacks on AI systems, including sponge attacks, detection and mitigation.
- ISO/IEC 27090:2026, 7.8Throttling model use per user.
- ISO/IEC 27001:2022, Annex A 8.6Capacity management.
Frequently asked questions
Does normal rate limiting protect against sponge attacks?
Only in part. It limits the number of requests, yet a single expensive request can still get through. Protection only becomes effective with budgets for compute time or tokens per request.
Related terms
Further reading in the insights
Matching service
Checking the resilience of your AI application
I check whether your AI application sets budgets per request, logs consumption and would recognise an overload.
To AI securityAuthor: Lars Zimmermann
Term and explanation in my own words. Researched to the best of my knowledge and reviewed for accuracy.