Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

AI Agents Are Flooding Public Services - Build Your Spring Boot Defenses Before They Reach Your API

Описание и применение

Сервисы общественного пользования сталкиваются с 'агентным наводнением', когда легитимные пользователи отправляют высокообъемные запросы, сгенерированные ИИ, что перегружает команды обработки. Статья предлагает использовать Bucket4j для ограничения количества запросов на одного пользователя, но отмечает, что это не решает проблему качественного наводнения (например, отправки одного огромного документа).

Задача

Public services and APIs are experiencing 'agentic flooding' where legitimate, authenticated users submit high-volume, high-complexity requests generated by AI agents, overwhelming processing teams without triggering traditional bot detection.

Результат

The implementation of per-identity rate limiting with burst allowances effectively caps the number of submissions from a single authenticated user, preventing quantitative flooding. However, it does not address qualitative flooding (e.g., massive single requests), requiring additional defenses.

Рабочий процесс

  • Identify submission endpoints that accept free-form text through open channels.
  • Implement per-identity rate limiting using Bucket4j to handle quantitative flooding.
  • Configure a bucket with a burst allowance (e.g., 5 submissions) and a refill rate (e.g., 5 per hour).
  • Apply the rate limiter at the submission endpoint, not globally.
  • Return a 429 status with a Retry-After header for legitimate users who hit the limit.
  • Implement additional defenses for qualitative flooding (e.g., content analysis, size limits).

Доказательства

In 87 percent of cases, the flooding came from LLMs generating large amounts of sophisticated text, submitted by humans who navigated the rest of the process manually.

Источник

A user submitting one four-thousand-page document per hour is perfectly rate-limit-compliant.

Источник

  • Дата записи: 2026-09-05T15:14:30.946Z