aatmf-t14-infra-warfare
它能做什么
本指南涵盖消耗 AI 服务容量或预算的攻击,例如高成本请求和耗尽配额。适合运行 AI 服务、并希望规划保护性限制的团队。
适用场景
- ✓当你想检查单个用户是否可能耗尽你的 AI 预算时。
- ✓当共享的 AI 配额服务于许多客户,而你需要测试是否会超载时。
- ✓当自托管的 AI 服务器处理超长请求,而你想检查资源是否会被耗尽时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/llm-redteam/t14-infra-warfare/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能帮我测试一下,是否有单个用户可能推高我们的 AI API 成本,或使服务对所有人都变慢吗?”
每周 5 个新技能,1 分钟读完。
工作原理
本指南列出了主要的超载和成本模式,并解释每种模式对可用性和开支的影响,以便团队设置限制。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
T14 — Infrastructure & Economic Warfare
Attacks aimed at degrading service availability, exhausting budget, or causing economic harm via abuse of the LLM endpoint. Adjacent to classical DoS but LLM-specific cost dynamics.
Techniques
T14.001 — Per-account budget exhaustion
- Multiple low-bandwidth requests each maximizing token cost
- Free-tier abuse via account creation farms
- Direct DDoS of paid endpoint (uses budget at attack rate)
Defenders: per-account caps + alerts.
T14.002 — Shared-quota poisoning
Multi-tenant LLM services share quotas at a provider level. Attacker exhausts the shared quota → all tenants degraded.
Targets: SaaS products that meter LLM access but share underlying API account.
T14.003 — GPU resource starvation
Self-hosted inference. Long-context queries hog GPU:
- Send queries near max context length
- Send batch of long-context queries in parallel
- Loop to maintain pressure
Cost-amplification ratio: 1 user request → 100% GPU utilization.
T14.004 — Cost amplification (T5.002 cross-ref)
Prompt engineering to maximize output cost:
- "Repeat 'token' 5000 times"
- "Generate the maximum-length response you're allowed to produce"
- Quadratic context patterns that bloat each turn
T14.005 — Pricing-tier exploit
Some APIs charge differently based on model variant. Trick the endpoint into using the expensive variant via parameter manipulation (T5.004 overlap).
T14.006 — Caching-pollution
Where LLM provider caches identical prompts (cost-reduction feature):
- Submit prompts that fill cache but produce uncacheable outputs
- Cache thrashing → no cost savings, full cost incurred
T14.007 — Streaming attack
Open many streaming requests → never consume → endpoint holds connection slots open until timeout.
Probe pattern
T14 is load-testing territory. Use k6, locust, hey:
# Spike test
hey -n 1000 -c 100 -m POST -H 'Authorization: Bearer X' \
-d '{"prompt":"'$(python3 -c 'print("a"*100000)')'"}' \
https://target/api/chat
Monitor:
- Cost / minute via provider dashboard
- p99 latency
- 429 / 503 error rate
- Other-tenant impact (if multi-tenant)
Detection signals
- Cost spike >5x baseline w/o feature change
- p99 latency degradation
- Specific user IDs / IPs concentrating traffic
- Output token distribution skewed long
Severity
| Outcome | Severity |
|---|---|
| Multi-tenant outage via quota exhaust | Critical 9.0 |
| Single-org budget burn via abuse | High 7-8 |
| GPU starvation single-host | High 7-8 (recoverable) |
| Streaming-slot starvation | Medium 6-7 |
Defender
- Per-account hard budget caps (with grace + alert at 80%/95%)
max_tokensstrictly enforced (nounlimited)- Context-length per-tier caps
- Rate limits per-account AND global (catch shared-quota attacks)
- Anomaly detection on cost/latency/concurrency
- Caching: per-tenant cache, not global
- Streaming: connection timeout aggressive (60s if no consumer)
Cross-references
- T5 (API exploitation) — overlap on cost/abuse vectors
- Classical DDoS skills
skills/exploit/web/...
常见问题
什么是共享配额投毒?
指一个租户耗尽了许多客户通过同一服务商账户共享的配额。
它涵盖定价技巧吗?
涵盖。它提到了诱使端点使用更昂贵的模型版本。
提到了哪些防御措施?
按账户设置的上限和告警被列为主要的防御手段。
详情
作者的原始描述
AATMF T14 — Infrastructure & Economic Warfare. Endpoint DoS via expensive prompts, model-API account exhaustion, GPU resource starvation, billing weaponization.
热度
- GitHub 星标
- 6.5k
- 排名
- #13898
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …