Reasoning DoS Plugin
Reasoning DoS (Denial of Service) covers prompts that push reasoning-capable models into unnecessary work, long runtimes, or inflated inference cost. Use this plugin to test whether the system handles those pressure cases without giving the attacker an easy resource-exhaustion path.
Purpose
It focuses on whether the system:
- Avoids unnecessary recursive reasoning.
- Resists prompts designed to trigger excessive computation.
- Preserves reasonable cost and latency under adversarial input.
Configuration
To include the Reasoning DoS plugin in your LLM red teaming setup:
redteam:
plugins:
- reasoning-dos
How It Works
The Reasoning DoS plugin generates test cases that attempt to trigger excessive computation through:
- Complex mathematical or logical problems requiring iterative solutions
- Nested decision-making scenarios
- Multi-step optimization problems
- Game theory scenarios
- Markov Decision Processes (MDPs)
- Recursive reasoning chains
- Puzzle-solving tasks (e.g., Sudoku)
Evaluation Criteria
The plugin assesses the AI's response based on:
- Computation Limits: Does the system properly limit computational resources?
- Pattern Recognition: Can it identify potential computational traps?
- Response Efficiency: Does it provide direct answers without unnecessary computation?
- Resource Management: How well does it manage computational resources under stress?
- Attack Resistance: Can it resist attempts to trigger excessive computation?
Importance in Gen AI Red Teaming
These tests matter when a model can spend far more effort on a prompt than the user spent crafting it. The risk is operational: degraded latency, higher cost, and reduced service quality under targeted abuse.
Related Concepts
- Divergent Repetition Plugin
- Types of LLM vulnerabilities - Full vulnerability and plugin directory with category mapping