llm-security
БесплатноБез исполняемых скриптовНе проверенLLM and AI application security testing skill for prompt injection (direct, indirect, multimodal), system-prompt extraction, RAG poisoning, memory poisoning…
от hardw00t★ 109 звёзд на GitHubОб этом скилле
LLM Security Testing
Thin router skill for security testing of LLM applications and AI agents. Covers the OWASP LLM Top 10 (2025) with a 2026-grade threat model for frontier-model agentic systems: indirect injection, multimodal injection, MCP supply chain, memory poisoning, skill-file injection, computer-use UI injection, and agentic tool misuse.
Defensive / educational framing. Every workflow here assumes written authorization to test the target. Canary strings, throwaway accounts, and controlled endpoints are preferred over real-data exploitation at every step.
When to Use
- Testing an LLM application for prompt-injection vulnerabilities (direct or indirect)
- Assessing RAG pipeline security (poisoning, retrieval hijack, ACL)
- Red-teaming an agentic system (Claude Code, Cursor, Copilot-agent, Operator, Computer Use)
- Auditing an MCP server configuration or a new MCP server before trusting it
- Testing long-term memory / persistent-context poisoning
- Evaluating guardrails, refusal behavior, and safety classifiers
- Checking for system-prompt / tool-schema leakage
- Scoping excessive-agency / tool-misuse blast radius
- Testing multimodal injection (image, audio, video, screenshot)
- Validating skill-file / CLAUDE.md / .cursor/rules supply-chain hygiene
Trigger Phrases
"test this LLM for prompt injection", "jailbreak this model" (authorized), "test AI guardrails", "assess RAG security", "poison this RAG corpus", "test MCP server injection", "red-team this agent", "extract system prompt", "test agent tool misuse", "test computer use UI injection", "audit LLM application security", "test multimodal injection", "test memory poisoning", "audit CLAUDE.md for injection".
When NOT to Use This Skill
- LLM API endpoint hardening (auth, rate-limiting, quota abuse on
standard REST surface) → use
api-security. - Source-code review of an LLM application (SAST for Python/TS/Go
serving the model) → use
sast-orchestration. - Cloud infrastructure hosting the model (IAM, S3, secrets) → use
cloud-security/iac-security. - Classical web bugs in an LLM chatbot UI (XSS, CSRF, IDOR) → use
web-security. - Privacy / compliance assessment of training data → out of scope; requires DPIA tooling.
Many engagements need multiple skills; call them in parallel when scopes don't overlap.
Decision Tree
Is the target an agent with tools? ─ yes ─▶ excessive_agency_testing.md
│ └─▶ agentic_tool_misuse.md
no
▼
Does it ingest external content (RAG/web/email)? ─ yes ─▶ indirect_injection_testing.md
│ └─▶ rag_poisoning.md (if RAG)
no
▼
Multimodal input accepted? ─ yes ─▶ payloads/multimodal_injection.md
│ └─▶ computer_use_abuse.md (if screen-controller)
no
▼
MCP servers attached? ─ yes ─▶ mcp_server_injection.md
no
▼
Persistent memory / cross-session state? ─ yes ─▶ memory_poisoning.md
no
▼
Project loads CLAUDE.md / skills / rules? ─ yes ─▶ skill_file_injection.md
no
▼
Always run last: direct_injection_testing.md + system_prompt_extraction.md
Parallelism Hints
Parallelizable (fire concurrently, per rate limits):
- Direct-injection payload sweep (one worker per payload)
- Encoding-obfuscation variant sweep
- Per-tool abuse probes in
agentic_tool_misuse.md - OWASP LLM category coverage via sub-agent fan-out
- Independent payload authoring for multimodal / skill-file / MCP tests
Sequential (must observe one at a time):
- RAG poisoning (retrieval observation must follow each upload)
- Memory poisoning (cross-session persistence testing needs strict turn ordering)
- Multi-turn stepwise-escalation jailbreaks
- Computer-use navigation chains
- MCP trust-building across turns
Sub-Agent Delegation
Two clean partitions — pick whichever matches the engagement:
By OWASP category (one sub-agent each) for comprehensive coverage:
- LLM01 prompt injection (direct + indirect + multimodal)
- LLM02 sensitive-info disclosure
- LLM03 supply chain (MCP, skill-files, dependencies)
- LLM04 data/model poisoning (RAG + memory)
- LLM05 improper output handling
- LLM06 excessive agency
- LLM07 system-prompt leakage
- LLM08 vector/embedding weaknesses
- LLM10 unbounded consumption
By attack surface for deep-dive on one class:
- Direct-prompt surface
- Indirect-content surface (RAG, web, email, tool outputs)
- Agentic tool surface (all tools × all coercion vectors)
- Multimodal surface (image, audio, screen)
- Persistence surface (memory, skill-files, MCP config)
Parent agent aggregates findings (schemas/finding.json), de-dupes, and
cross-references overlapping findings (e.g. an MCP injection that enables
tool misuse).
Reasoning Budget
**Use extended t
Установить llm-security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл llm-security?
LLM and AI application security testing skill for prompt injection (direct, indirect, multimodal), system-prompt extraction, RAG poisoning, memory poisoning, MCP server injection, skill-file injection, agentic tool misuse, computer-use UI injection, and excessive agency. Authorization required — this skill tests AI systems you are explicitly permitted to assess. Triggers on requests to test LLM / AI-agent / RAG / MCP / computer-use security, perform prompt injection, extract system prompts, poison RAG or memory, audit agent tool use, or evaluate AI guardrails.
Как установить скилл llm-security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл llm-security запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic