मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी6.5k · #13889

aatmf-t05-api-exploitation

यह क्या करती है

यह गाइड AI मॉडल को ऑनलाइन सेवा की तरह दुरुपयोग करने के तरीके बताती है, जैसे उसका कोटा खत्म करना या अनपेक्षित आउटपुट फ़ॉर्मेट मजबूर करना। यह उन टीमों के लिए है जो AI API चलाती हैं और उसकी सीमाएँ जाँचना चाहती हैं।

कब इस्तेमाल करें

  • ✓जब आप जाँचना चाहें कि AI API के पास पर्याप्त रेट लिमिट और कोटा हैं या नहीं।
  • ✓जब आप देखना चाहें कि बहुत लंबे आउटपुट लागत को बहुत बढ़ा सकते हैं या नहीं।
  • ✓जब आपका ऐप AI आउटपुट पर JSON फ़ॉर्मेट लागू करता हो और आप उस जाँच को परखना चाहें।

Skill का लिंक

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/llm-redteam/t05-api-exploitation/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/llm-redteam/t05-api-exploitation/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप मेरी मदद कर सकते हैं यह जाँचने में कि हमारा AI API बेकाबू उपयोग को सीमित करता है और अपने आउटपुट फ़ॉर्मेट को लागू करता है या नहीं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

गाइड आम दुरुपयोग के पैटर्न सूचीबद्ध करती है, हर एक का जोखिम समझाती है, और बताती है कि क्या जाँचना है, जैसे सीमाएँ और आउटपुट फ़ॉर्मेट का सत्यापन।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

T5 — Model & API Exploitation

Attack the LLM as an API service — its rate limits, billing, schema expectations, version routing. Adjacent to classical API security but LLM-specific.

Techniques

T5.001 — Rate-limit / quota abuse

Standard distributed-request patterns: multiple accounts, IP rotation, free-tier exploitation. Specifically interesting for LLM APIs:

  • Free-tier exhaustion via automation (DDoS of competitor's free tier)
  • Per-user rate limit on multi-user platforms — single attacker exhausts shared quota
  • Burst pattern matching specifically targeting the upstream provider's rate limits (Anthropic, OpenAI) to cause downstream service degradation

T5.002 — Token-cost amplification

Make the model produce expensive outputs to bleed the operator's budget:

  • "Repeat the word 'token' 500 times then continue..."
  • Generate maximum-token responses every time via prompt engineering
  • Exploit streaming endpoints to keep response generation going past cost reasonability
  • Quadratic prompts: "Each turn double the length of the last response"

Variant: prompt-amplification attack — small attacker request triggers massive computation (T5.002 ↔ T14 economic warfare overlap).

T5.003 — Schema bypass via raw text

APIs that wrap LLMs often enforce JSON schemas on outputs (structured output mode). Bypass via:

  • Prompt the model to return raw text where JSON is expected
  • Embed structured markers that the schema validator strips
  • Function-calling endpoints: induce model to NOT call the function
  • Request format that confuses parsing (extra commas, unicode whitespace)

T5.004 — Model-version manipulation

APIs that expose model_id parameter sometimes accept unintended values (cheaper / older / less-aligned models). Probe:

  • model_id=base (pre-RLHF base model)
  • model_id=test, model_id=staging
  • model_id=<provider>/<wrong-prefix>/<actual-model>
  • Wildcard matches: model_id=*

T5.005 — Context window probing

Some endpoints reveal model identity by returning errors specific to context size. Probe with increasingly-long inputs to fingerprint:

  • 128k? 200k? 1M?
  • Failure mode reveals model family

T5.006 — System prompt enumeration via parameter abuse

Some APIs let users set temperature=0 + structured output → model responds deterministically → run the same probe N times to fingerprint the system prompt by output stability.

T5.007 — Function-calling tool abuse

When the LLM has access to tools (web search, code exec, internal functions), inject prompts that make it call wrong tools with attacker- controlled args. Bridge: T1 (prompt injection) → T11 (agentic).

Probe pattern

plugins:
  - id: hijacking
    numTests: 10
  - id: divergent-repetition
    numTests: 5
  - id: rbac
    numTests: 10
strategies:
  - basic

For rate-limit + cost-amplification, use external load-generation tools (k6, locust) since promptfoo isn't a load tester.

Detection signals

  • Per-user cost spikes 10x+ baseline w/o feature change
  • Provider returns 429 in patterns suggesting abuse
  • Schema-validated endpoints suddenly returning raw text
  • Model returning content suggesting wrong model is responding

Severity

Outcome Severity
Free-tier DDoS competitor High 7-8
10x cost-amplification on operator High 7-8 (revenue)
Schema bypass → injected unstructured data flows downstream High 7-8
Model-version manipulation → less-aligned model exposed High 8-9
Tool-call hijack → action on attacker-controlled args Critical 9.0

Defender

  • Per-account budget caps + alerts at 80% / 95% / 100%
  • Output token cap (max_tokens strictly enforced)
  • Schema validation: REJECT (not coerce) malformed outputs
  • Whitelist of allowed model_id values; reject everything else
  • Detect divergent-repetition patterns + truncate
  • Tool-call wrappers: extra confirmation step for destructive ops

Cross-references

  • T11 (agentic exploit) — T5 + tool exposure
  • T14 (infrastructure warfare) — economic warfare via T5.001/002
अक्सर पूछे जाने वाले सवाल

टोकन-लागत एम्प्लिफ़िकेशन क्या है?

यह तब होता है जब एक छोटा अनुरोध मॉडल से बहुत बड़ा और महंगा जवाब बनवा दे।

क्या यह मुफ़्त खातों को कवर करती है?

हाँ। यह मुफ़्त टियर के दुरुपयोग और साझा कोटा का ज़िक्र करती है।

स्कीमा बायपास क्या है?

यह तब होता है जब ऐप संरचित आउटपुट की उम्मीद करता है और AI सादा टेक्स्ट लौटाता है, जो कमज़ोर जाँच से निकल जाता है।

जानकारी

लेखक का मूल विवरण

AATMF T5 — Model & API Exploitation. Rate-limit abuse, token-cost amplification, schema bypass, model-version manipulation.

repo: BitterSecurity/Decepticon

लोकप्रियता

GitHub स्टार
6.5k
रैंकिंग में स्थान
#13889
लाइसेंस
Apache-2.0
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

detector-overview

6.5k

यह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।

कोडिंगसिक्योरिटी

exploiter-overview

6.5k

यह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।

कोडिंगसिक्योरिटी

llm-redteam-overview

6.5k

यह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।

कोडिंगसिक्योरिटी

aatmf-t01-prompt-injection

6.5k

समझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।

कोडिंगसिक्योरिटी

मिलती-जुलती skills