Command Palette

Search for a command to run...

Назад к скиллам
скилл № 41948

llm-api-testing

LLM and agent API security testing over HTTP — prompt injection, system-prompt disclosure, tool-calling SSRF, cross-tenant conversation access, unbounded…

БесплатноБез исполняемых скриптов
VigilOSSот VigilOSS★ 35 звёзд на GitHub

Установить llm-api-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

LLM / Agent API Testing

vigil assess kali audit flags: use --technique RECON --probe-kind fingerprint to map the endpoint shape and provider dialect; --technique PROMPT-INJECTION for injection and system-prompt-extraction payloads; and the sink's OWN class when an injected instruction reaches a downstream sink — SSRF for a tool/retrieval fetch, IDOR for cross-tenant conversation reads, INFO-DISCLOSURE for leaked context.

When to Activate

  • A route matching the llm_api gf-bucket surfaces in the work buffer (/v1/chat/completions, /embeddings, /inference, or a messages / system_prompt / max_tokens / tool_choice parameter). A bare ?prompt= is NOT one of them — OIDC Core §3.1.2.1 defines prompt, so on an authorize route it is an SSO parameter, not an LLM one; judge it by the rest of the request.
  • A response streams text/event-stream chunks whose payload is model output, or carries provider-shaped fields (choices[].delta, content[].type, usage.prompt_tokens).
  • The application exposes a chat widget, a "summarize / draft / explain" action, an agentic workflow that calls tools, or a RAG search over documents the tester can write into.
  • Source or JS analysis reveals a provider SDK (openai, @anthropic-ai/sdk, langchain, llamaindex) or a server-side proxy to a provider host.

The distinction that decides severity

An LLM saying something embarrassing is not a finding. A finding needs a security boundary crossed: another tenant's data read, a request made from the server, a privileged tool invoked, a secret returned, or a bill run up without limit. Establish which boundary the model sits behind before writing anything up — that is the same prove-or-kill discipline agent/rules/hunting.md §2 demands of every class, and it is what separates a real report from "I made the chatbot swear".

Tools

  • vigil assess kali exec -- curl ... — all target-facing requests go through the wrapper.
  • vigil oob mint / vigil oob poll — attribution for tool-calling and retrieval fetches: place the exact minted host in the prompt or the retrieved document, then poll (agent/references/offensive-tactics/frp-tunneling.md "OOB Procedure (mint→poll→correlate)"). A callback shows a fetch happened, not SSRF: a fetch tool fetching a URL is its feature, and the request may come from the provider's tool-execution egress (out of scope, below). SSRF needs the source address to be the target's infrastructure plus internal reach or cross-tenant data (agent/skills/ssrf-testing/SKILL.md).
  • Hand-shaped JSON bodies through curl; the request body is the attack surface here, so work at the JSON level rather than through the app's own UI.

Methodology

1. Fingerprint the endpoint

  • Identify the dialect: OpenAI-compatible (messages[], model, max_tokens), Anthropic (system top-level, content[] blocks), or bespoke ({"prompt": "..."}).
  • Send a malformed body and read the error — provider SDK errors leak the upstream model name, the proxy's own system prompt length, and sometimes the provider API base URL.
  • Note whether model is attacker-selectable. A caller-chosen model is a cost lever and often an authorization gap (a cheap tier's key reaching an expensive model).
  • Record whether the response is streamed; streaming responses frequently bypass the output filter the non-streaming path applies.

2. System-prompt and context disclosure

  • Ask directly, then indirectly (translate, summarize, base64, "repeat the text above").
  • Look for the system prompt echoed in error paths, in usage accounting, or in a debug field.
  • Check whether a client-supplied system / system_prompt parameter is ACCEPTED — a server-side guardrail the client can overwrite is not a guardrail.
  • Probe for retrieved-context bleed: ask for "the documents you were given" and check whether any belongs to another tenant.

3. Prompt injection — direct and indirect

  • Direct: instructions in the user turn that override the system policy.
  • Indirect (the one that matters): plant instructions in content the model will retrieve — an uploaded document, a profile field, a web page the agent fetches, a support-ticket body — and confirm they execute on a request made by a second identity you own (after the side-effect preflight, agent/shared-constraints.md §2d, when the content reaches staff). Indirect injection is the variant with a real victim and the one most often left untested.
  • Confirm the boundary crossed, not merely that the model complied.

4. Tool calling and agent actions

  • Enumerate the tools: ask the model to list them, or read tools / tool_choice off the request schema.
  • For each tool, ask what it would take to invoke it with attacker-chosen arguments. A fetch / browse / webhook tool is SSRF; a dat
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл llm-api-testing?

LLM and agent API security testing over HTTP — prompt injection, system-prompt disclosure, tool-calling SSRF, cross-tenant conversation access, unbounded token spend

Как установить скилл llm-api-testing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл llm-api-testing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить llm-api-testing с