Loading...
Recursive Task Generation Attack
RTGACausing an agent to generate infinite or exponentially growing recursive tasks, depleting computational resources, memory, and API quotas through uncontrolled task proliferation.
Example Scenario
Prompting an agent to "research this topic and for each subtopic found, research it thoroughly as well," causing exponential task generation where each research task spawns dozens more, quickly overwhelming the system with thousands of pending tasks.
Testing Objectives
- Test recursion depth limits
- Assess task generation controls
- Evaluate resource consumption monitoring
- Validate loop detection mechanisms
Defensive Strategies
- Recursion depth limits
- Task generation rate limiting
- Circular dependency detection
- Resource consumption monitoring
- Task queue size limits
Key Features
- Infinite task loops
- Exponential task growth
- Task queue overflow
- Recursive operation exploitation
Use Cases
- Recursion limit testing
- Task generation validation
- Resource limit enforcement assessment
- Loop detection evaluation
Tools & Frameworks
Security Risks
Ethical Guidelines
- •Only test recursion in isolated environments
- •Never cause production DoS
- •Report recursion vulnerabilities responsibly
- •Focus on improving loop detection
- •Consider cost and availability impact
Remember: This information is for educational and defensive security purposes only. Always ensure you have proper authorization before testing any techniques.
From the engineer behind this catalog
Get your agent system red-teamed
The attacks documented here work on production agent systems every day. Have yours tested before someone else does: prompt injection, jailbreaks, tool misuse and data exfiltration, with every finding written up next to its fix.
€750 instead of €1,500, one week, written report and walkthrough call, until 30 September